coordinator

package
v3.0.0-...-b53bbfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKfAppCfgFile

func CreateKfAppCfgFile(d *kfconfig.KfConfig) (string, error)

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

func NewLoadKfAppFromURI

func NewLoadKfAppFromURI(configFile string) (kftypesv3.KfApp, error)

This is the entrypoint for commands like build or apply. NewLoadKfAppFromURI takes in a config file and constructs the KfApp used by the build and apply semantics for kfctl

Types

type Builder

type Builder interface {
	LoadKfAppCfgFile(cfgFile string) (kftypesv3.KfApp, error)
}

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

type PluginGetter

type PluginGetter interface {
	GetPlugin(name string) (kftypesv3.KfApp, bool)
}

Get reference to the plugin .

Directories

Path Synopsis
package fake provides a fake implementation of the coordinator for use in tests
package fake provides a fake implementation of the coordinator for use in tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL