modeldeployments

package
v1.23.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultInitDeplaySeconds = 180
	ModelxInitDeplaySeconds  = 60
)

Variables

This section is empty.

Functions

func HashModelName

func HashModelName(modelname string) string

Types

type APPFunc

type APPFunc func(ctx context.Context, cli client.Client, ref AppRef) (interface{}, error)

type AppRef

type AppRef struct {
	Tenant    string `json:"tenant,omitempty"`
	Project   string `json:"project,omitempty"`
	Env       string `json:"environment,omitempty"`
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"` // namespace of the environment
	Username  string `json:"username,omitempty"`
}

func (*AppRef) FromJson

func (r *AppRef) FromJson(content string)

func (AppRef) Json

func (r AppRef) Json() string

type ModelDeploymentAPI

type ModelDeploymentAPI struct {
	Clientset               *agents.ClientSet
	Database                *database.Database
	SourceRepository        *repository.SourcesRepository
	ModelRepository         *repository.ModelsRepository
	ModelxStorageInitalizer string
}

func NewModelDeploymentAPI

func NewModelDeploymentAPI(clientset *agents.ClientSet, database *database.Database, mondodb *gomongo.Database, modelxInitImage string) *ModelDeploymentAPI

func (*ModelDeploymentAPI) AppRefFunc

func (o *ModelDeploymentAPI) AppRefFunc(req *restful.Request, resp *restful.Response, fun APPFunc)

func (*ModelDeploymentAPI) CreateModelDeployment

func (o *ModelDeploymentAPI) CreateModelDeployment(req *restful.Request, resp *restful.Response)

func (*ModelDeploymentAPI) DeleteModelDeployment

func (o *ModelDeploymentAPI) DeleteModelDeployment(req *restful.Request, resp *restful.Response)

func (*ModelDeploymentAPI) GetModelDeployment

func (o *ModelDeploymentAPI) GetModelDeployment(req *restful.Request, resp *restful.Response)

func (*ModelDeploymentAPI) ListAllModelDeployments

func (o *ModelDeploymentAPI) ListAllModelDeployments(req *restful.Request, resp *restful.Response)

func (*ModelDeploymentAPI) ListModelDeployments

func (o *ModelDeploymentAPI) ListModelDeployments(req *restful.Request, resp *restful.Response)

func (*ModelDeploymentAPI) PatchModelDeployment

func (o *ModelDeploymentAPI) PatchModelDeployment(req *restful.Request, resp *restful.Response)

func (*ModelDeploymentAPI) RegisterRoute

func (o *ModelDeploymentAPI) RegisterRoute(rg *route.Group)

func (*ModelDeploymentAPI) UpdateModelDeployment

func (o *ModelDeploymentAPI) UpdateModelDeployment(req *restful.Request, resp *restful.Response)

type ModelDeploymentOverview

type ModelDeploymentOverview struct {
	AppRef
	Name              string      `json:"name"`
	ModelName         string      `json:"modelName"`
	ModelVersion      string      `json:"modelVersion"`
	URL               string      `json:"url"`
	Cluster           string      `json:"cluster"`
	Namespace         string      `json:"namespace"`
	Creator           string      `json:"creator"`
	Phase             string      `json:"phase"`
	CreationTimestamp metav1.Time `json:"creationTimestamp"`
}

Jump to

Keyboard shortcuts

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