Documentation ¶
Index ¶
- func CreateKfAppCfgFile(d *kfdefsv2.KfDef) (string, error)
- func CreateKfDefFromOptions(options map[string]interface{}) (*kfdefsv2.KfDef, error)
- func LoadKfApp(options map[string]interface{}) (kftypes.KfApp, error)
- func LoadKfAppCfgFile(cfgfile string) (kftypes.KfApp, error)
- func NewKfApp(options map[string]interface{}) (kftypes.KfApp, error)
- type Builder
- type DefaultBuilder
- type KfDefGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKfAppCfgFile ¶
CreateKfAppCfgFile will create the application directory and persist the KfDef to it as app.yaml. Returns an error if the app.yaml file already exists Returns path to the app.yaml file.
func CreateKfDefFromOptions ¶
CreateKfDefFromOptions creates a KfDef from the supplied options.
func LoadKfApp ¶
LoadKfApp is called from subcommands Apply, Delete, Generate and assumes the existence of an app.yaml file which was created by the Init subcommand. It sets options needed by these subcommands
TODO(jlewi): This method is deprecated. It is providing backwards compatibility with existing call sites. New callers should use LoadKfAppCfgFile to load it from a file. If callers need to modify KfDef they should modify it and then serialize to disk.
func LoadKfAppCfgFile ¶
LoadKfAppCfgFile constructs a KfApp by loading the provided app.yaml file.
Types ¶
type Builder ¶
Builder defines the methods used to create KfApps. Primary purpose is to allow injecting a fake for use in testing.
type DefaultBuilder ¶
type DefaultBuilder struct { }
func (*DefaultBuilder) LoadKfAppCfgFile ¶
func (b *DefaultBuilder) LoadKfAppCfgFile(cfgFile string) (kftypes.KfApp, error)