inferenceimpl

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaName

func MetaName() string

func NewInference

func NewInference(cli *k8sclient.Client, cfg *Config, k8sConfig k8sclient.Config) (
	inference.Inference, error,
)

Types

type Config

type Config struct {
	OBS            OBSConfig        `json:"obs"              required:"true"`
	CRD            config.CRDConfig `json:"crd"              required:"true"`
	RPCEndpoint    string           `json:"rpc_endpiont"     required:"true"`
	GitlabEndpoint string           `json:"gitlab_endpiont"  required:"true"`
}

func (*Config) SetDefault

func (cfg *Config) SetDefault()

func (*Config) Validate

func (cfg *Config) Validate() error

type OBSConfig

type OBSConfig struct {
	OBSUtilPath string `json:"obsutil_path"  required:"true"`
	AccessKey   string `json:"access_key"    required:"true"`
	SecretKey   string `json:"secret_key"    required:"true"`
	Endpoint    string `json:"endpoint"      required:"true"`
	LFSPath     string `json:"lfs_path"      required:"true"`
	Bucket      string `json:"bucket"        required:"true"`
}

func (*OBSConfig) Validate

func (c *OBSConfig) Validate() error

Jump to

Keyboard shortcuts

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