Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegisterBuildData ¶
type RegisterBuildData struct {
ReplacesTemplateID string
Public bool
ClusterID uuid.UUID
TemplateID api.TemplateID
UserID *uuid.UUID
Team *types.Team
Dockerfile string
Alias *string
Tags []string
StartCmd *string
ReadyCmd *string
CpuCount *int32
MemoryMB *int32
Version string
// The requested minimum free space after build steps, or nil for the team's default.
// Zero disables requested growth and reaches the row as zero.
MinFreeDiskMb *int32
// TODO(ENG-3852): Remove once the template manager resolves the kernel and firecracker versions itself.
//
// Deprecated: Template manager should use its own.
KernelVersion string
// Deprecated: Template manager should use its own.
FirecrackerVersion string
}
type RegisterBuildResponse ¶
type RegisterBuildResponse struct {
Public bool
TemplateID string
BuildID string
Aliases []string
Names []string
Tags []string
}
func RegisterBuild ¶
func RegisterBuild( ctx context.Context, templateCache *templatecache.TemplateCache, db *sqlcdb.Client, data RegisterBuildData, ) (*RegisterBuildResponse, *api.APIError)
Click to show internal directories.
Click to hide internal directories.