Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// ErrChartNotExist is returned when no chart/ directory exists during "draft up."
ErrChartNotExist = errors.New("chart/ does not exist. Please create it using 'draft create' before calling 'draft up'")
// ErrDockerfileNotExist is returned when no Dockerfile exists during "draft up."
ErrDockerfileNotExist = errors.New("Dockerfile does not exist. Please create it using 'draft create' before calling 'draft up'")
)
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
Env *manifest.Environment
EnvName string
AppDir string
Chart *chart.Chart
Values *chart.Config
SrcName string
Archive []byte
}
Context contains information about the application and the environment
that will be pushed up to the server
func LoadWithEnv ¶
func LoadWithEnv(appdir, whichenv string) (*Context, error)
LoadWithEnv takes the directory of the application and the environment the application
will be pushed to and returns a Context object with a merge of environment and app information
Click to show internal directories.
Click to hide internal directories.