sandboxImage

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (ImageTag) ValidationRule() *validate.Rule
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

type SandboxImageTags = base.Tags

SandboxImageTags aliases base.Tags so the reflection base-type registry resolves it to the shared TagsRule.

Jump to

Keyboard shortcuts

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