service

package
v0.0.0-...-db4604a Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportModelValid

func ReportModelValid(ctx context.Context, content []byte) (err error)

func ReportThresh

func ReportThresh(ctx context.Context, content []byte) (err error)

Types

type DeleteServiceResponse

type DeleteServiceResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

func DeleteService

func DeleteService(ctx context.Context, serviceName string) (response *DeleteServiceResponse, err error)

type HpaModel

type HpaModel struct {
	Name        *string `json:"name"`
	TrainScript *string `json:"train_script"`
	InferScript *string `json:"infer_script"`
}

func FindHpaModel

func FindHpaModel(ctx context.Context, modelName string) (response *HpaModel, err error)

type HpaService

type HpaService struct {
	Name      *string           `json:"name"`
	Tags      map[string]string `json:"tags"`
	ThreshQPS *uint             `json:"thresh_qps"`
	ModelName *string           `json:"model_name"`
}

func FindHpaService

func FindHpaService(ctx context.Context, serviceName string) (response *HpaService, err error)

type ListHpaModelsResponse

type ListHpaModelsResponse struct {
	HpaModels []HpaModel `json:"hpa_models"`
}

func ListHpaModels

func ListHpaModels(ctx context.Context) (response *ListHpaModelsResponse, err error)

type ListHpaServicesResponse

type ListHpaServicesResponse struct {
	HpaServices []HpaService `json:"hpa_services"`
}

func ListHpaServices

func ListHpaServices(ctx context.Context) (response *ListHpaServicesResponse, err error)

type QueryModelResultResponse

type QueryModelResultResponse struct {
	Status    string `json:"status"`
	ErrorInfo string `json:"error_info"`
}

func QueryModelResult

func QueryModelResult(ctx context.Context, modelName string) (response *QueryModelResultResponse, err error)

type QueryRegisterResultResponse

type QueryRegisterResultResponse struct {
	Status    string `json:"status"`
	ErrorInfo string `json:"error_info"`
}

func QueryRegisterResult

func QueryRegisterResult(ctx context.Context, serviceName string) (response *QueryRegisterResultResponse, err error)

type RegisterModelRequest

type RegisterModelRequest struct {
	Name        string `json:"name"`
	TrainScript string `json:"train_script"`
	InferScript string `json:"infer_script"`
}

type RegisterModelResponse

type RegisterModelResponse struct {
	Accepted bool   `json:"accepted"`
	Message  string `json:"message"`
}

func RegisterModel

func RegisterModel(ctx context.Context, content []byte) (response *RegisterModelResponse, err error)

type RegisterServiceRequest

type RegisterServiceRequest struct {
	Name      string            `json:"name"`
	Tags      map[string]string `json:"tags"`
	ModelName string            `json:"model_name"`
}

type RegisterServiceResponse

type RegisterServiceResponse struct {
	Accepted bool   `json:"accepted"`
	Message  string `json:"message"`
}

func RegisterService

func RegisterService(ctx context.Context, content []byte) (response *RegisterServiceResponse, err error)

type ReportModelValidRequest

type ReportModelValidRequest struct {
	ModelName string `json:"model_name"`
	Ok        bool   `json:"ok"`
	ErrorInfo string `json:"error_info"`
}

type ReportThreshRequest

type ReportThreshRequest struct {
	ServiceName string `json:"service_name"`
	OK          bool   `json:"ok"`
	ErrorInfo   string `json:"error_info"`
	ThreshQPS   uint   `json:"thresh_qps"`
}

Jump to

Keyboard shortcuts

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