Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capacity ¶
type Capacity struct {
Count *int `validate:"omitempty,gte=0"`
CPUCores *int `validate:"omitempty,gte=0"`
RamGB *float64 `validate:"omitempty,gte=0"` // nolint
DiskGB *float64 `validate:"omitempty,gte=0"`
GPUCapacity *GPUCapacity
}
Capacity ...
type DeleteCommand ¶
type DeleteCommand struct {
ID string `validate:"required"`
}
DeleteCommand ...
type DeleteHandler ¶
type DeleteHandler interface {
Handle(ctx context.Context, cmd *DeleteCommand) error
}
DeleteHandler ...
func NewDeleteHandler ¶
func NewDeleteHandler(svc domain.Service) DeleteHandler
NewDeleteHandler ...
type GPUCapacity ¶
GPUCapacity ...
type Limits ¶
type Limits struct {
CPUCores *int `validate:"omitempty,gte=0"`
RamGB *float64 `validate:"omitempty,gte=0"` // nolint
GPULimit *GPULimit
}
Limits ...
type PutCommand ¶
PutCommand ...
type PutHandler ¶
type PutHandler interface {
Handle(ctx context.Context, cmd *PutCommand) error
}
PutHandler ...
Click to show internal directories.
Click to hide internal directories.