config

package
v0.0.0-...-d299574 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string, cfg interface{}) error

func LoadFromYaml

func LoadFromYaml(path string, cfg interface{}) error

Types

type Config

type Config struct {
	Inference inferenceimpl.Config `json:"inference"  required:"true"`
	Cloud     cloudimpl.Config     `json:"cloud"      required:"true"`
	K8sClient k8sclient.Config     `json:"k8s"        required:"true"`
}

func (*Config) SetDefault

func (cfg *Config) SetDefault()

func (*Config) Validate

func (cfg *Config) Validate() error

type ConfigSetDefault

type ConfigSetDefault interface {
	SetDefault()
}

type ConfigValidate

type ConfigValidate interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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