loaders

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

View Source
const (
	Api = "kfdef.apps.kubeflow.org"
)

Variables

This section is empty.

Functions

func LoadConfigFromURI

func LoadConfigFromURI(configFile string) (*kfconfig.KfConfig, error)

LoadConfigFromURI reads the kfdef from a remote URI or local file, and returns the kfconfig. It will set the AppDir and ConfigFilename in kfconfig:

AppDir = cwd if configFile is remote, or it will be the dir of configFile.
ConfigFilename = the file name of configFile.

func WriteConfigToFile

func WriteConfigToFile(config kfconfig.KfConfig) error

Types

type Loader

type Loader interface {
	LoadKfConfig(kfdef interface{}) (*kfconfig.KfConfig, error)
	LoadKfDef(config kfconfig.KfConfig, out interface{}) error
}

type V1

type V1 struct {
}

Empty struct - used to implement Converter interface.

func (V1) LoadKfConfig

func (v V1) LoadKfConfig(def interface{}) (*kfconfig.KfConfig, error)

func (V1) LoadKfDef

func (v V1) LoadKfDef(config kfconfig.KfConfig, out interface{}) error

Jump to

Keyboard shortcuts

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