coordinator

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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 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 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