Documentation ¶
Index ¶
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. This is only used when the config file is remote (https://github...) Returns an error if the app.yaml file already exists Returns path to the app.yaml file.
func CreateKfAppCfgFileWithKfDef ¶
func CreateKfAppCfgFileWithKfDef(d *kfdefsv1alpha1.KfDef) (string, error)
TODO: remove this This is for kfctlServer. We can remove this after kfctlServer uses kfconfig
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) (kftypesv3.KfApp, error)
type KfDefGetterV1beta1 ¶
type KfDefGetterV1beta1 interface {
GetKfDefV1Beta1() *kfdefsv1beta1.KfDef
}
Return a copy of kfdef v1beta1
Click to show internal directories.
Click to hide internal directories.