app

package
v1.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdToCreateApp added in v1.5.0

type CmdToCreateApp struct {
	SpaceId  domain.Identity
	CommitId string
}

type InferenceCreateCmd

type InferenceCreateCmd struct {
	ProjectId     string
	ProjectName   domain.ResourceName
	ProjectOwner  domain.Account
	ResourceLevel string

	InferenceDir domain.Directory
	BootFile     domain.FilePath
}

func (*InferenceCreateCmd) Validate

func (cmd *InferenceCreateCmd) Validate() error

type InferenceDTO

type InferenceDTO struct {
	Error      string `json:"error"`
	AccessURL  string `json:"access_url"`
	InstanceId string `json:"inference_id"`
	// contains filtered or unexported fields
}

type InferenceDetail

type InferenceDetail = spaceappdomain.InferenceDetail

type InferenceIndex

type InferenceIndex = spaceappdomain.InferenceIndex

type InferenceInternalService

type InferenceInternalService interface {
	UpdateDetail(*InferenceIndex, *InferenceDetail) error
}

func NewInferenceInternalService

func NewInferenceInternalService(repo spaceapprepo.Inference) InferenceInternalService

type InferenceMessageService

type InferenceMessageService interface {
	CreateInferenceInstance(*spaceappdomain.InferenceInfo) error
	ExtendSurvivalTime(*message.InferenceExtendInfo) error
}

func NewInferenceMessageService

func NewInferenceMessageService(
	repo spaceapprepo.Inference,
	user userrepo.User,
	manager inference.Inference,
) InferenceMessageService

type InferenceService

type InferenceService interface {
	Create(string, *app.UserInfo, *InferenceCreateCmd) (InferenceDTO, string, error)
	Get(info *InferenceIndex) (InferenceDTO, error)
	CreateSpaceApp(CmdToCreateApp) error
}

func NewInferenceService

func NewInferenceService(
	p platform.RepoFile,
	repo spaceapprepo.Inference,
	sender message.Sender,
	minSurvivalTime int,
	spacesender spacemesage.SpaceAppMessageProducer,
) InferenceService

type UnavailableRepoFileError

type UnavailableRepoFileError struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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