Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageTag ¶
type ImageTag string
ImageTag ports `Joi.string().regex(/^[a-zA-Z0-9_][a-zA-Z0-9_\-.]*$/).max(128)` — the tag of the built image, an OCI tag without the leading separator classes.
func (ImageTag) ValidationRule ¶
type OrgImageLink ¶
type OrgImageLink string
OrgImageLink ports `LocalLink.custom(toKind('image'))`: the org image the latest successful build produced.
func (OrgImageLink) ValidationRule ¶
func (OrgImageLink) ValidationRule() *validate.Rule
type SandboxImage ¶
type SandboxImage struct {
Id string `json:"id,omitzero" validate:"uuid,readOnly"`
Name base.Name `json:"name,omitzero"`
Kind base.Kind `json:"kind,omitzero"`
Version *float64 `json:"version,omitzero" validate:"positive,integer,readOnly"`
Description string `json:"description,omitzero" validate:"trim,max=250,allow="`
Tags SandboxImageTags `json:"tags,omitzero" validate:"default={}"`
Created string `json:"created,omitzero" validate:"date,readOnly"`
LastModified string `json:"lastModified,omitzero" validate:"date,readOnly"`
Links base.Links `json:"links,omitzero" validate:"readOnly"`
Spec SandboxImageSpec `json:"spec" validate:"required"`
Status *SandboxImageStatus `json:"status,omitzero"`
}
func (SandboxImage) ValidationRule ¶
func (SandboxImage) ValidationRule() *validate.Rule
ValidationRule reflects SandboxImage.
type SandboxImageSpec ¶
type SandboxImageSpec struct {
Base *SandboxImageSpecBase `json:"base,omitzero" validate:"optional"`
Tag ImageTag `json:"tag,omitzero" validate:"default=latest"`
Type SandboxImageSpecType `json:"type,omitzero" validate:"default=dev"`
}
type SandboxImageSpecBase ¶
type SandboxImageSpecBase struct {
Image base.ImageLink `json:"image,omitzero" validate:"optional"`
}
SandboxImageSpecBase carries the sole tenant-controlled build input. `base` is itself optional — omitting it supplements the standard sandbox base.
type SandboxImageSpecType ¶
type SandboxImageSpecType string
SandboxImageSpecType: dev builds the base plus the sandbox layer; agent copies the base alone.
func (SandboxImageSpecType) EnumValues ¶
func (SandboxImageSpecType) EnumValues() []string
type SandboxImageStatus ¶
type SandboxImageStatus struct {
Phase SandboxImageStatusPhase `json:"phase,omitzero"`
ImageLink OrgImageLink `json:"imageLink,omitzero" validate:"optional"`
ImageRef string `json:"imageRef,omitzero" validate:"optional"`
BuildId string `json:"buildId,omitzero" validate:"optional"`
BuiltFingerprint string `json:"builtFingerprint,omitzero" validate:"optional"`
Error string `json:"error,omitzero" validate:"allow=,optional"`
BuildDuration *float64 `json:"buildDuration,omitzero" validate:"optional"`
LastBuildAt string `json:"lastBuildAt,omitzero" validate:"date,optional"`
}
type SandboxImageStatusPhase ¶
type SandboxImageStatusPhase string
const ( SandboxImageStatusPhasePending SandboxImageStatusPhase = "pending" SandboxImageStatusPhaseQueued SandboxImageStatusPhase = "queued" SandboxImageStatusPhaseBuilding SandboxImageStatusPhase = "building" SandboxImageStatusPhaseReady SandboxImageStatusPhase = "ready" SandboxImageStatusPhaseFailed SandboxImageStatusPhase = "failed" )
func (SandboxImageStatusPhase) EnumValues ¶
func (SandboxImageStatusPhase) EnumValues() []string
type SandboxImageTags ¶
SandboxImageTags aliases base.Tags so the reflection base-type registry resolves it to the shared TagsRule.