compute_v1alpha

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SandboxSpecContainerId       = entity.Id("dev.miren.compute/component.sandbox_spec.container")
	SandboxSpecHostNetworkId     = entity.Id("dev.miren.compute/component.sandbox_spec.hostNetwork")
	SandboxSpecLogAttributeId    = entity.Id("dev.miren.compute/component.sandbox_spec.logAttribute")
	SandboxSpecLogEntityId       = entity.Id("dev.miren.compute/component.sandbox_spec.logEntity")
	SandboxSpecPortWaitTimeoutId = entity.Id("dev.miren.compute/component.sandbox_spec.port_wait_timeout")
	SandboxSpecRouteId           = entity.Id("dev.miren.compute/component.sandbox_spec.route")
	SandboxSpecStaticHostId      = entity.Id("dev.miren.compute/component.sandbox_spec.static_host")
	SandboxSpecVersionId         = entity.Id("dev.miren.compute/component.sandbox_spec.version")
	SandboxSpecVolumeId          = entity.Id("dev.miren.compute/component.sandbox_spec.volume")
)
View Source
const (
	SandboxSpecContainerCommandId         = entity.Id("dev.miren.compute/component.sandbox_spec.container.command")
	SandboxSpecContainerConfigFileId      = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file")
	SandboxSpecContainerDirectoryId       = entity.Id("dev.miren.compute/component.sandbox_spec.container.directory")
	SandboxSpecContainerEnvId             = entity.Id("dev.miren.compute/component.sandbox_spec.container.env")
	SandboxSpecContainerImageId           = entity.Id("dev.miren.compute/component.sandbox_spec.container.image")
	SandboxSpecContainerMountId           = entity.Id("dev.miren.compute/component.sandbox_spec.container.mount")
	SandboxSpecContainerNameId            = entity.Id("dev.miren.compute/component.sandbox_spec.container.name")
	SandboxSpecContainerOomScoreId        = entity.Id("dev.miren.compute/component.sandbox_spec.container.oom_score")
	SandboxSpecContainerPortId            = entity.Id("dev.miren.compute/component.sandbox_spec.container.port")
	SandboxSpecContainerPrivilegedId      = entity.Id("dev.miren.compute/component.sandbox_spec.container.privileged")
	SandboxSpecContainerShutdownTimeoutId = entity.Id("dev.miren.compute/component.sandbox_spec.container.shutdown_timeout")
	SandboxSpecContainerStdinId           = entity.Id("dev.miren.compute/component.sandbox_spec.container.stdin")
	SandboxSpecContainerTtyId             = entity.Id("dev.miren.compute/component.sandbox_spec.container.tty")
)
View Source
const (
	SandboxSpecContainerConfigFileDataId = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file.data")
	SandboxSpecContainerConfigFileModeId = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file.mode")
	SandboxSpecContainerConfigFilePathId = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file.path")
)
View Source
const (
	SandboxSpecContainerMountDestinationId = entity.Id("dev.miren.compute/component.sandbox_spec.container.mount.destination")
	SandboxSpecContainerMountSourceId      = entity.Id("dev.miren.compute/component.sandbox_spec.container.mount.source")
)
View Source
const (
	SandboxSpecContainerPortNameId        = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.name")
	SandboxSpecContainerPortNodePortId    = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.node_port")
	SandboxSpecContainerPortPortId        = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.port")
	SandboxSpecContainerPortProtocolId    = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.protocol")
	SandboxSpecContainerPortProtocolTcpId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.protocol.tcp")
	SandboxSpecContainerPortProtocolUdpId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.protocol.udp")
	SandboxSpecContainerPortTypeId        = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.type")
)
View Source
const (
	SandboxSpecRouteDestinationId = entity.Id("dev.miren.compute/component.sandbox_spec.route.destination")
	SandboxSpecRouteGatewayId     = entity.Id("dev.miren.compute/component.sandbox_spec.route.gateway")
)
View Source
const (
	SandboxSpecStaticHostHostId = entity.Id("dev.miren.compute/component.sandbox_spec.static_host.host")
	SandboxSpecStaticHostIpId   = entity.Id("dev.miren.compute/component.sandbox_spec.static_host.ip")
)
View Source
const (
	SandboxSpecVolumeDiskNameId     = entity.Id("dev.miren.compute/component.sandbox_spec.volume.disk_name")
	SandboxSpecVolumeFilesystemId   = entity.Id("dev.miren.compute/component.sandbox_spec.volume.filesystem")
	SandboxSpecVolumeLabelsId       = entity.Id("dev.miren.compute/component.sandbox_spec.volume.labels")
	SandboxSpecVolumeLeaseTimeoutId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.lease_timeout")
	SandboxSpecVolumeMountPathId    = entity.Id("dev.miren.compute/component.sandbox_spec.volume.mount_path")
	SandboxSpecVolumeNameId         = entity.Id("dev.miren.compute/component.sandbox_spec.volume.name")
	SandboxSpecVolumeOwnerId        = entity.Id("dev.miren.compute/component.sandbox_spec.volume.owner")
	SandboxSpecVolumeProviderId     = entity.Id("dev.miren.compute/component.sandbox_spec.volume.provider")
	SandboxSpecVolumeReadOnlyId     = entity.Id("dev.miren.compute/component.sandbox_spec.volume.read_only")
	SandboxSpecVolumeSizeGbId       = entity.Id("dev.miren.compute/component.sandbox_spec.volume.size_gb")
)
View Source
const (
	LeaseLastHeartbeatId = entity.Id("dev.miren.compute/lease.last_heartbeat")
	LeaseProjectId       = entity.Id("dev.miren.compute/lease.project")
	LeaseSandboxId       = entity.Id("dev.miren.compute/lease.sandbox")
)
View Source
const (
	NodeApiAddressId            = entity.Id("dev.miren.compute/node.api_address")
	NodeConstraintsId           = entity.Id("dev.miren.compute/node.constraints")
	NodeNameId                  = entity.Id("dev.miren.compute/node.name")
	NodeRegisteredAtId          = entity.Id("dev.miren.compute/node.registered_at")
	NodeRunnerIdId              = entity.Id("dev.miren.compute/node.runner_id")
	NodeSchedulingId            = entity.Id("dev.miren.compute/node.scheduling")
	NodeSchedulingSchedulableId = entity.Id("dev.miren.compute/scheduling.schedulable")
	NodeSchedulingCordonedId    = entity.Id("dev.miren.compute/scheduling.cordoned")
	NodeStatusId                = entity.Id("dev.miren.compute/node.status")
	NodeStatusUnknownId         = entity.Id("dev.miren.compute/status.unknown")
	NodeStatusReadyId           = entity.Id("dev.miren.compute/status.ready")
	NodeStatusDisabledId        = entity.Id("dev.miren.compute/status.disabled")
	NodeStatusUnhealthyId       = entity.Id("dev.miren.compute/status.unhealthy")
	NodeVersionId               = entity.Id("dev.miren.compute/node.version")
)
View Source
const (
	SandboxBoundPortId      = entity.Id("dev.miren.compute/sandbox.bound_port")
	SandboxContainerId      = entity.Id("dev.miren.compute/sandbox.container")
	SandboxHostNetworkId    = entity.Id("dev.miren.compute/sandbox.hostNetwork")
	SandboxLabelsId         = entity.Id("dev.miren.compute/sandbox.labels")
	SandboxLastActivityId   = entity.Id("dev.miren.compute/sandbox.last_activity")
	SandboxLogAttributeId   = entity.Id("dev.miren.compute/sandbox.logAttribute")
	SandboxLogEntityId      = entity.Id("dev.miren.compute/sandbox.logEntity")
	SandboxNetworkId        = entity.Id("dev.miren.compute/sandbox.network")
	SandboxRouteId          = entity.Id("dev.miren.compute/sandbox.route")
	SandboxSpecId           = entity.Id("dev.miren.compute/sandbox.spec")
	SandboxStaticHostId     = entity.Id("dev.miren.compute/sandbox.static_host")
	SandboxStatusId         = entity.Id("dev.miren.compute/sandbox.status")
	SandboxStatusPendingId  = entity.Id("dev.miren.compute/status.pending")
	SandboxStatusNotReadyId = entity.Id("dev.miren.compute/status.not_ready")
	SandboxStatusRunningId  = entity.Id("dev.miren.compute/status.running")
	SandboxStatusStoppedId  = entity.Id("dev.miren.compute/status.stopped")
	SandboxStatusDeadId     = entity.Id("dev.miren.compute/status.dead")
	SandboxVolumeId         = entity.Id("dev.miren.compute/sandbox.volume")
)
View Source
const (
	BoundPortAddressId = entity.Id("dev.miren.compute/bound_port.address")
	BoundPortPortId    = entity.Id("dev.miren.compute/bound_port.port")
)
View Source
const (
	ContainerCommandId         = entity.Id("dev.miren.compute/container.command")
	ContainerConfigFileId      = entity.Id("dev.miren.compute/container.config_file")
	ContainerDirectoryId       = entity.Id("dev.miren.compute/container.directory")
	ContainerEnvId             = entity.Id("dev.miren.compute/container.env")
	ContainerImageId           = entity.Id("dev.miren.compute/container.image")
	ContainerMountId           = entity.Id("dev.miren.compute/container.mount")
	ContainerNameId            = entity.Id("dev.miren.compute/container.name")
	ContainerOomScoreId        = entity.Id("dev.miren.compute/container.oom_score")
	ContainerPortId            = entity.Id("dev.miren.compute/container.port")
	ContainerPrivilegedId      = entity.Id("dev.miren.compute/container.privileged")
	ContainerShutdownTimeoutId = entity.Id("dev.miren.compute/container.shutdown_timeout")
	ContainerStdinId           = entity.Id("dev.miren.compute/container.stdin")
	ContainerTtyId             = entity.Id("dev.miren.compute/container.tty")
)
View Source
const (
	ConfigFileDataId = entity.Id("dev.miren.compute/config_file.data")
	ConfigFileModeId = entity.Id("dev.miren.compute/config_file.mode")
	ConfigFilePathId = entity.Id("dev.miren.compute/config_file.path")
)
View Source
const (
	MountDestinationId = entity.Id("dev.miren.compute/mount.destination")
	MountSourceId      = entity.Id("dev.miren.compute/mount.source")
)
View Source
const (
	PortNameId        = entity.Id("dev.miren.compute/port.name")
	PortNodePortId    = entity.Id("dev.miren.compute/port.node_port")
	PortPortId        = entity.Id("dev.miren.compute/port.port")
	PortProtocolId    = entity.Id("dev.miren.compute/port.protocol")
	PortProtocolTcpId = entity.Id("dev.miren.compute/protocol.tcp")
	PortProtocolUdpId = entity.Id("dev.miren.compute/protocol.udp")
	PortTypeId        = entity.Id("dev.miren.compute/port.type")
)
View Source
const (
	NetworkAddressId = entity.Id("dev.miren.compute/network.address")
	NetworkSubnetId  = entity.Id("dev.miren.compute/network.subnet")
)
View Source
const (
	RouteDestinationId = entity.Id("dev.miren.compute/route.destination")
	RouteGatewayId     = entity.Id("dev.miren.compute/route.gateway")
)
View Source
const (
	StaticHostHostId = entity.Id("dev.miren.compute/static_host.host")
	StaticHostIpId   = entity.Id("dev.miren.compute/static_host.ip")
)
View Source
const (
	VolumeLabelsId   = entity.Id("dev.miren.compute/volume.labels")
	VolumeNameId     = entity.Id("dev.miren.compute/volume.name")
	VolumeProviderId = entity.Id("dev.miren.compute/volume.provider")
)
View Source
const (
	SandboxPoolAppId                   = entity.Id("dev.miren.compute/sandbox_pool.app")
	SandboxPoolConsecutiveCrashCountId = entity.Id("dev.miren.compute/sandbox_pool.consecutive_crash_count")
	SandboxPoolCooldownUntilId         = entity.Id("dev.miren.compute/sandbox_pool.cooldown_until")
	SandboxPoolCurrentInstancesId      = entity.Id("dev.miren.compute/sandbox_pool.current_instances")
	SandboxPoolDesiredInstancesId      = entity.Id("dev.miren.compute/sandbox_pool.desired_instances")
	SandboxPoolEphemeralId             = entity.Id("dev.miren.compute/sandbox_pool.ephemeral")
	SandboxPoolLastCrashTimeId         = entity.Id("dev.miren.compute/sandbox_pool.last_crash_time")
	SandboxPoolReadyInstancesId        = entity.Id("dev.miren.compute/sandbox_pool.ready_instances")
	SandboxPoolReferencedByVersionsId  = entity.Id("dev.miren.compute/sandbox_pool.referenced_by_versions")
	SandboxPoolSandboxLabelsId         = entity.Id("dev.miren.compute/sandbox_pool.sandbox_labels")
	SandboxPoolSandboxPrefixId         = entity.Id("dev.miren.compute/sandbox_pool.sandbox_prefix")
	SandboxPoolSandboxSpecId           = entity.Id("dev.miren.compute/sandbox_pool.sandbox_spec")
	SandboxPoolServiceId               = entity.Id("dev.miren.compute/sandbox_pool.service")
)
View Source
const (
	KeyKindId = entity.Id("dev.miren.compute/key.kind")
	KeyNodeId = entity.Id("dev.miren.compute/key.node")
)
View Source
const (
	ScheduleKeyId = entity.Id("dev.miren.compute/schedule.key")
)

Variables

View Source
var (
	KindLease       = entity.Id("dev.miren.compute/kind.lease")
	KindNode        = entity.Id("dev.miren.compute/kind.node")
	KindSandbox     = entity.Id("dev.miren.compute/kind.sandbox")
	KindSandboxPool = entity.Id("dev.miren.compute/kind.sandbox_pool")
	KindSchedule    = entity.Id("dev.miren.compute/kind.schedule")
	Schema          = entity.Id("dev.miren.compute/schema.v1alpha")
)

Functions

func Index

func Index(kind, node entity.Id) entity.Attr

Types

type BoundPort added in v0.11.1

type BoundPort struct {
	Address string `cbor:"address,omitempty" json:"address,omitempty"`
	Port    int64  `cbor:"port,omitempty" json:"port,omitempty"`
}

func (*BoundPort) Decode added in v0.11.1

func (o *BoundPort) Decode(e entity.AttrGetter)

func (*BoundPort) Empty added in v0.11.1

func (o *BoundPort) Empty() bool

func (*BoundPort) Encode added in v0.11.1

func (o *BoundPort) Encode() (attrs []entity.Attr)

func (*BoundPort) InitSchema added in v0.11.1

func (o *BoundPort) InitSchema(sb *schema.SchemaBuilder)

type ConfigFile

type ConfigFile struct {
	Data string `cbor:"data,omitempty" json:"data,omitempty"`
	Mode string `cbor:"mode,omitempty" json:"mode,omitempty"`
	Path string `cbor:"path,omitempty" json:"path,omitempty"`
}

func (*ConfigFile) Decode

func (o *ConfigFile) Decode(e entity.AttrGetter)

func (*ConfigFile) Empty

func (o *ConfigFile) Empty() bool

func (*ConfigFile) Encode

func (o *ConfigFile) Encode() (attrs []entity.Attr)

func (*ConfigFile) InitSchema

func (o *ConfigFile) InitSchema(sb *schema.SchemaBuilder)

type Container

type Container struct {
	Command         string       `cbor:"command,omitempty" json:"command,omitempty"`
	ConfigFile      []ConfigFile `cbor:"config_file,omitempty" json:"config_file,omitempty"`
	Directory       string       `cbor:"directory,omitempty" json:"directory,omitempty"`
	Env             []string     `cbor:"env,omitempty" json:"env,omitempty"`
	Image           string       `cbor:"image" json:"image"`
	Mount           []Mount      `cbor:"mount,omitempty" json:"mount,omitempty"`
	Name            string       `cbor:"name,omitempty" json:"name,omitempty"`
	OomScore        int64        `cbor:"oom_score,omitempty" json:"oom_score,omitempty"`
	Port            []Port       `cbor:"port,omitempty" json:"port,omitempty"`
	Privileged      bool         `cbor:"privileged,omitempty" json:"privileged,omitempty"`
	ShutdownTimeout string       `cbor:"shutdown_timeout,omitempty" json:"shutdown_timeout,omitempty"`
	Stdin           bool         `cbor:"stdin,omitempty" json:"stdin,omitempty"`
	Tty             bool         `cbor:"tty,omitempty" json:"tty,omitempty"`
}

func (*Container) Decode

func (o *Container) Decode(e entity.AttrGetter)

func (*Container) Empty

func (o *Container) Empty() bool

func (*Container) Encode

func (o *Container) Encode() (attrs []entity.Attr)

func (*Container) InitSchema

func (o *Container) InitSchema(sb *schema.SchemaBuilder)

type Key

type Key struct {
	Kind entity.Id `cbor:"kind,omitempty" json:"kind,omitempty"`
	Node entity.Id `cbor:"node,omitempty" json:"node,omitempty"`
}

func (*Key) Decode

func (o *Key) Decode(e entity.AttrGetter)

func (*Key) Empty

func (o *Key) Empty() bool

func (*Key) Encode

func (o *Key) Encode() (attrs []entity.Attr)

func (*Key) InitSchema

func (o *Key) InitSchema(sb *schema.SchemaBuilder)

type Lease

type Lease struct {
	ID            entity.Id `json:"id"`
	LastHeartbeat time.Time `cbor:"last_heartbeat,omitempty" json:"last_heartbeat,omitempty"`
	Project       entity.Id `cbor:"project,omitempty" json:"project,omitempty"`
	Sandbox       entity.Id `cbor:"sandbox,omitempty" json:"sandbox,omitempty"`
}

func (*Lease) Decode

func (o *Lease) Decode(e entity.AttrGetter)

func (*Lease) Empty

func (o *Lease) Empty() bool

func (*Lease) Encode

func (o *Lease) Encode() (attrs []entity.Attr)

func (*Lease) EntityId

func (o *Lease) EntityId() entity.Id

func (*Lease) InitSchema

func (o *Lease) InitSchema(sb *schema.SchemaBuilder)

func (*Lease) Is

func (o *Lease) Is(e entity.AttrGetter) bool

func (*Lease) Kind

func (o *Lease) Kind() entity.Id

func (*Lease) ShortKind

func (o *Lease) ShortKind() string

type Mount

type Mount struct {
	Destination string `cbor:"destination,omitempty" json:"destination,omitempty"`
	Source      string `cbor:"source,omitempty" json:"source,omitempty"`
}

func (*Mount) Decode

func (o *Mount) Decode(e entity.AttrGetter)

func (*Mount) Empty

func (o *Mount) Empty() bool

func (*Mount) Encode

func (o *Mount) Encode() (attrs []entity.Attr)

func (*Mount) InitSchema

func (o *Mount) InitSchema(sb *schema.SchemaBuilder)

type Network

type Network struct {
	Address string `cbor:"address,omitempty" json:"address,omitempty"`
	Subnet  string `cbor:"subnet,omitempty" json:"subnet,omitempty"`
}

func (*Network) Decode

func (o *Network) Decode(e entity.AttrGetter)

func (*Network) Empty

func (o *Network) Empty() bool

func (*Network) Encode

func (o *Network) Encode() (attrs []entity.Attr)

func (*Network) InitSchema

func (o *Network) InitSchema(sb *schema.SchemaBuilder)

type Node

type Node struct {
	ID           entity.Id      `json:"id"`
	ApiAddress   string         `cbor:"api_address,omitempty" json:"api_address,omitempty"`
	Constraints  types.Labels   `cbor:"constraints,omitempty" json:"constraints,omitempty"`
	Name         string         `cbor:"name,omitempty" json:"name,omitempty"`
	RegisteredAt time.Time      `cbor:"registered_at,omitempty" json:"registered_at,omitempty"`
	RunnerId     string         `cbor:"runner_id,omitempty" json:"runner_id,omitempty"`
	Scheduling   NodeScheduling `cbor:"scheduling,omitempty" json:"scheduling,omitempty"`
	Status       NodeStatus     `cbor:"status,omitempty" json:"status,omitempty"`
	Version      string         `cbor:"version,omitempty" json:"version,omitempty"`
}

func (*Node) Decode

func (o *Node) Decode(e entity.AttrGetter)

func (*Node) Empty

func (o *Node) Empty() bool

func (*Node) Encode

func (o *Node) Encode() (attrs []entity.Attr)

func (*Node) EntityId

func (o *Node) EntityId() entity.Id

func (*Node) InitSchema

func (o *Node) InitSchema(sb *schema.SchemaBuilder)

func (*Node) Is

func (o *Node) Is(e entity.AttrGetter) bool

func (*Node) Kind

func (o *Node) Kind() entity.Id

func (*Node) ShortKind

func (o *Node) ShortKind() string

type NodeId added in v0.12.1

type NodeId entity.Id

NodeId is the entity ID of a compute node, always in canonical "node/<raw>" form. Construct one only via NewNodeId, which is the single sanctioned way to apply the "node/" prefix; that discipline is what keeps a raw identifier from ever being mistaken for a prefixed one. Convert back to a plain entity.Id with Id() when handing it to the entity store.

func NewNodeId added in v0.12.1

func NewNodeId(raw string) NodeId

NewNodeId builds a NodeId from a raw node identifier (a UUID, or "miren" for the primary node), normalizing so the "node/" prefix is present exactly once regardless of whether the input already carried it.

func (NodeId) Id added in v0.12.1

func (n NodeId) Id() entity.Id

Id returns the node id as a plain entity.Id, for use with the entity store and any API that speaks entity.Id.

func (NodeId) Matches added in v0.12.1

func (n NodeId) Matches(id entity.Id) bool

Matches reports whether id refers to this node. Use it to compare a NodeId against a bare entity.Id read from an entity field (e.g. a disk volume's NodeId) without re-prefixing either side.

func (NodeId) String added in v0.12.1

func (n NodeId) String() string

String returns the canonical string form, e.g. "node/abc123".

type NodeScheduling added in v0.11.1

type NodeScheduling string
const (
	SCHEDULABLE NodeScheduling = "scheduling.schedulable"
	CORDONED    NodeScheduling = "scheduling.cordoned"
)

type NodeStatus

type NodeStatus string
const (
	UNKNOWN   NodeStatus = "status.unknown"
	READY     NodeStatus = "status.ready"
	DISABLED  NodeStatus = "status.disabled"
	UNHEALTHY NodeStatus = "status.unhealthy"
)

type Port

type Port struct {
	Name     string       `cbor:"name" json:"name"`
	NodePort int64        `cbor:"node_port,omitempty" json:"node_port,omitempty"`
	Port     int64        `cbor:"port" json:"port"`
	Protocol PortProtocol `cbor:"protocol,omitempty" json:"protocol,omitempty"`
	Type     string       `cbor:"type,omitempty" json:"type,omitempty"`
}

func (*Port) Decode

func (o *Port) Decode(e entity.AttrGetter)

func (*Port) Empty

func (o *Port) Empty() bool

func (*Port) Encode

func (o *Port) Encode() (attrs []entity.Attr)

func (*Port) InitSchema

func (o *Port) InitSchema(sb *schema.SchemaBuilder)

type PortProtocol

type PortProtocol string
const (
	TCP PortProtocol = "protocol.tcp"
	UDP PortProtocol = "protocol.udp"
)

type Route

type Route struct {
	Destination string `cbor:"destination,omitempty" json:"destination,omitempty"`
	Gateway     string `cbor:"gateway,omitempty" json:"gateway,omitempty"`
}

func (*Route) Decode

func (o *Route) Decode(e entity.AttrGetter)

func (*Route) Empty

func (o *Route) Empty() bool

func (*Route) Encode

func (o *Route) Encode() (attrs []entity.Attr)

func (*Route) InitSchema

func (o *Route) InitSchema(sb *schema.SchemaBuilder)

type Sandbox

type Sandbox struct {
	ID           entity.Id     `json:"id"`
	BoundPort    []BoundPort   `cbor:"bound_port,omitempty" json:"bound_port,omitempty"`
	Container    []Container   `cbor:"container" json:"container"`
	HostNetwork  bool          `cbor:"hostNetwork,omitempty" json:"hostNetwork,omitempty"`
	Labels       []string      `cbor:"labels,omitempty" json:"labels,omitempty"`
	LastActivity time.Time     `cbor:"last_activity,omitempty" json:"last_activity,omitempty"`
	LogAttribute types.Labels  `cbor:"logAttribute,omitempty" json:"logAttribute,omitempty"`
	LogEntity    string        `cbor:"logEntity,omitempty" json:"logEntity,omitempty"`
	Network      []Network     `cbor:"network,omitempty" json:"network,omitempty"`
	Route        []Route       `cbor:"route,omitempty" json:"route,omitempty"`
	Spec         SandboxSpec   `cbor:"spec,omitempty" json:"spec,omitempty"`
	StaticHost   []StaticHost  `cbor:"static_host,omitempty" json:"static_host,omitempty"`
	Status       SandboxStatus `cbor:"status,omitempty" json:"status,omitempty"`
	Volume       []Volume      `cbor:"volume,omitempty" json:"volume,omitempty"`
}

func (*Sandbox) Decode

func (o *Sandbox) Decode(e entity.AttrGetter)

func (*Sandbox) Empty

func (o *Sandbox) Empty() bool

func (*Sandbox) Encode

func (o *Sandbox) Encode() (attrs []entity.Attr)

func (*Sandbox) EntityId

func (o *Sandbox) EntityId() entity.Id

func (*Sandbox) InitSchema

func (o *Sandbox) InitSchema(sb *schema.SchemaBuilder)

func (*Sandbox) Is

func (o *Sandbox) Is(e entity.AttrGetter) bool

func (*Sandbox) Kind

func (o *Sandbox) Kind() entity.Id

func (*Sandbox) ShortKind

func (o *Sandbox) ShortKind() string

type SandboxPool

type SandboxPool struct {
	ID                    entity.Id    `json:"id"`
	App                   entity.Id    `cbor:"app,omitempty" json:"app,omitempty"`
	ConsecutiveCrashCount int64        `cbor:"consecutive_crash_count,omitempty" json:"consecutive_crash_count,omitempty"`
	CooldownUntil         time.Time    `cbor:"cooldown_until,omitempty" json:"cooldown_until,omitempty"`
	CurrentInstances      int64        `cbor:"current_instances,omitempty" json:"current_instances,omitempty"`
	DesiredInstances      int64        `cbor:"desired_instances,omitempty" json:"desired_instances,omitempty"`
	Ephemeral             bool         `cbor:"ephemeral,omitempty" json:"ephemeral,omitempty"`
	LastCrashTime         time.Time    `cbor:"last_crash_time,omitempty" json:"last_crash_time,omitempty"`
	ReadyInstances        int64        `cbor:"ready_instances,omitempty" json:"ready_instances,omitempty"`
	ReferencedByVersions  []entity.Id  `cbor:"referenced_by_versions,omitempty" json:"referenced_by_versions,omitempty"`
	SandboxLabels         types.Labels `cbor:"sandbox_labels,omitempty" json:"sandbox_labels,omitempty"`
	SandboxPrefix         string       `cbor:"sandbox_prefix,omitempty" json:"sandbox_prefix,omitempty"`
	SandboxSpec           SandboxSpec  `cbor:"sandbox_spec,omitempty" json:"sandbox_spec,omitempty"`
	Service               string       `cbor:"service,omitempty" json:"service,omitempty"`
}

func (*SandboxPool) Decode

func (o *SandboxPool) Decode(e entity.AttrGetter)

func (*SandboxPool) Empty

func (o *SandboxPool) Empty() bool

func (*SandboxPool) Encode

func (o *SandboxPool) Encode() (attrs []entity.Attr)

func (*SandboxPool) EntityId

func (o *SandboxPool) EntityId() entity.Id

func (*SandboxPool) InitSchema

func (o *SandboxPool) InitSchema(sb *schema.SchemaBuilder)

func (*SandboxPool) Is

func (o *SandboxPool) Is(e entity.AttrGetter) bool

func (*SandboxPool) Kind

func (o *SandboxPool) Kind() entity.Id

func (*SandboxPool) ShortKind

func (o *SandboxPool) ShortKind() string

type SandboxSpec

type SandboxSpec struct {
	Container       []SandboxSpecContainer  `cbor:"container" json:"container"`
	HostNetwork     bool                    `cbor:"hostNetwork,omitempty" json:"hostNetwork,omitempty"`
	LogAttribute    types.Labels            `cbor:"logAttribute,omitempty" json:"logAttribute,omitempty"`
	LogEntity       string                  `cbor:"logEntity,omitempty" json:"logEntity,omitempty"`
	PortWaitTimeout string                  `cbor:"port_wait_timeout,omitempty" json:"port_wait_timeout,omitempty"`
	Route           []SandboxSpecRoute      `cbor:"route,omitempty" json:"route,omitempty"`
	StaticHost      []SandboxSpecStaticHost `cbor:"static_host,omitempty" json:"static_host,omitempty"`
	Version         entity.Id               `cbor:"version,omitempty" json:"version,omitempty"`
	Volume          []SandboxSpecVolume     `cbor:"volume,omitempty" json:"volume,omitempty"`
}

func (*SandboxSpec) Decode

func (o *SandboxSpec) Decode(e entity.AttrGetter)

func (*SandboxSpec) Empty

func (o *SandboxSpec) Empty() bool

func (*SandboxSpec) Encode

func (o *SandboxSpec) Encode() (attrs []entity.Attr)

func (*SandboxSpec) InitSchema

func (o *SandboxSpec) InitSchema(sb *schema.SchemaBuilder)

type SandboxSpecContainer

type SandboxSpecContainer struct {
	Command         string                           `cbor:"command,omitempty" json:"command,omitempty"`
	ConfigFile      []SandboxSpecContainerConfigFile `cbor:"config_file,omitempty" json:"config_file,omitempty"`
	Directory       string                           `cbor:"directory,omitempty" json:"directory,omitempty"`
	Env             []string                         `cbor:"env,omitempty" json:"env,omitempty"`
	Image           string                           `cbor:"image" json:"image"`
	Mount           []SandboxSpecContainerMount      `cbor:"mount,omitempty" json:"mount,omitempty"`
	Name            string                           `cbor:"name,omitempty" json:"name,omitempty"`
	OomScore        int64                            `cbor:"oom_score,omitempty" json:"oom_score,omitempty"`
	Port            []SandboxSpecContainerPort       `cbor:"port,omitempty" json:"port,omitempty"`
	Privileged      bool                             `cbor:"privileged,omitempty" json:"privileged,omitempty"`
	ShutdownTimeout string                           `cbor:"shutdown_timeout,omitempty" json:"shutdown_timeout,omitempty"`
	Stdin           bool                             `cbor:"stdin,omitempty" json:"stdin,omitempty"`
	Tty             bool                             `cbor:"tty,omitempty" json:"tty,omitempty"`
}

func (*SandboxSpecContainer) Decode

func (o *SandboxSpecContainer) Decode(e entity.AttrGetter)

func (*SandboxSpecContainer) Empty

func (o *SandboxSpecContainer) Empty() bool

func (*SandboxSpecContainer) Encode

func (o *SandboxSpecContainer) Encode() (attrs []entity.Attr)

func (*SandboxSpecContainer) InitSchema

func (o *SandboxSpecContainer) InitSchema(sb *schema.SchemaBuilder)

type SandboxSpecContainerConfigFile

type SandboxSpecContainerConfigFile struct {
	Data string `cbor:"data,omitempty" json:"data,omitempty"`
	Mode string `cbor:"mode,omitempty" json:"mode,omitempty"`
	Path string `cbor:"path,omitempty" json:"path,omitempty"`
}

func (*SandboxSpecContainerConfigFile) Decode

func (*SandboxSpecContainerConfigFile) Empty

func (*SandboxSpecContainerConfigFile) Encode

func (o *SandboxSpecContainerConfigFile) Encode() (attrs []entity.Attr)

func (*SandboxSpecContainerConfigFile) InitSchema

type SandboxSpecContainerMount

type SandboxSpecContainerMount struct {
	Destination string `cbor:"destination,omitempty" json:"destination,omitempty"`
	Source      string `cbor:"source,omitempty" json:"source,omitempty"`
}

func (*SandboxSpecContainerMount) Decode

func (*SandboxSpecContainerMount) Empty

func (o *SandboxSpecContainerMount) Empty() bool

func (*SandboxSpecContainerMount) Encode

func (o *SandboxSpecContainerMount) Encode() (attrs []entity.Attr)

func (*SandboxSpecContainerMount) InitSchema

func (o *SandboxSpecContainerMount) InitSchema(sb *schema.SchemaBuilder)

type SandboxSpecContainerPort

type SandboxSpecContainerPort struct {
	Name     string                           `cbor:"name" json:"name"`
	NodePort int64                            `cbor:"node_port,omitempty" json:"node_port,omitempty"`
	Port     int64                            `cbor:"port" json:"port"`
	Protocol SandboxSpecContainerPortProtocol `cbor:"protocol,omitempty" json:"protocol,omitempty"`
	Type     string                           `cbor:"type,omitempty" json:"type,omitempty"`
}

func (*SandboxSpecContainerPort) Decode

func (*SandboxSpecContainerPort) Empty

func (o *SandboxSpecContainerPort) Empty() bool

func (*SandboxSpecContainerPort) Encode

func (o *SandboxSpecContainerPort) Encode() (attrs []entity.Attr)

func (*SandboxSpecContainerPort) InitSchema

func (o *SandboxSpecContainerPort) InitSchema(sb *schema.SchemaBuilder)

type SandboxSpecContainerPortProtocol

type SandboxSpecContainerPortProtocol string
const (
	SandboxSpecContainerPortTCP SandboxSpecContainerPortProtocol = "component.sandbox_spec.container.port.protocol.tcp"
	SandboxSpecContainerPortUDP SandboxSpecContainerPortProtocol = "component.sandbox_spec.container.port.protocol.udp"
)

type SandboxSpecRoute

type SandboxSpecRoute struct {
	Destination string `cbor:"destination,omitempty" json:"destination,omitempty"`
	Gateway     string `cbor:"gateway,omitempty" json:"gateway,omitempty"`
}

func (*SandboxSpecRoute) Decode

func (o *SandboxSpecRoute) Decode(e entity.AttrGetter)

func (*SandboxSpecRoute) Empty

func (o *SandboxSpecRoute) Empty() bool

func (*SandboxSpecRoute) Encode

func (o *SandboxSpecRoute) Encode() (attrs []entity.Attr)

func (*SandboxSpecRoute) InitSchema

func (o *SandboxSpecRoute) InitSchema(sb *schema.SchemaBuilder)

type SandboxSpecStaticHost

type SandboxSpecStaticHost struct {
	Host string `cbor:"host,omitempty" json:"host,omitempty"`
	Ip   string `cbor:"ip,omitempty" json:"ip,omitempty"`
}

func (*SandboxSpecStaticHost) Decode

func (*SandboxSpecStaticHost) Empty

func (o *SandboxSpecStaticHost) Empty() bool

func (*SandboxSpecStaticHost) Encode

func (o *SandboxSpecStaticHost) Encode() (attrs []entity.Attr)

func (*SandboxSpecStaticHost) InitSchema

func (o *SandboxSpecStaticHost) InitSchema(sb *schema.SchemaBuilder)

type SandboxSpecVolume

type SandboxSpecVolume struct {
	DiskName     string       `cbor:"disk_name,omitempty" json:"disk_name,omitempty"`
	Filesystem   string       `cbor:"filesystem,omitempty" json:"filesystem,omitempty"`
	Labels       types.Labels `cbor:"labels,omitempty" json:"labels,omitempty"`
	LeaseTimeout string       `cbor:"lease_timeout,omitempty" json:"lease_timeout,omitempty"`
	MountPath    string       `cbor:"mount_path,omitempty" json:"mount_path,omitempty"`
	Name         string       `cbor:"name,omitempty" json:"name,omitempty"`
	Owner        string       `cbor:"owner,omitempty" json:"owner,omitempty"`
	Provider     string       `cbor:"provider,omitempty" json:"provider,omitempty"`
	ReadOnly     bool         `cbor:"read_only,omitempty" json:"read_only,omitempty"`
	SizeGb       int64        `cbor:"size_gb,omitempty" json:"size_gb,omitempty"`
}

func (*SandboxSpecVolume) Decode

func (o *SandboxSpecVolume) Decode(e entity.AttrGetter)

func (*SandboxSpecVolume) Empty

func (o *SandboxSpecVolume) Empty() bool

func (*SandboxSpecVolume) Encode

func (o *SandboxSpecVolume) Encode() (attrs []entity.Attr)

func (*SandboxSpecVolume) InitSchema

func (o *SandboxSpecVolume) InitSchema(sb *schema.SchemaBuilder)

type SandboxStatus

type SandboxStatus string
const (
	PENDING   SandboxStatus = "status.pending"
	NOT_READY SandboxStatus = "status.not_ready"
	RUNNING   SandboxStatus = "status.running"
	STOPPED   SandboxStatus = "status.stopped"
	DEAD      SandboxStatus = "status.dead"
)

type Schedule

type Schedule struct {
	ID  entity.Id `json:"id"`
	Key Key       `cbor:"key,omitempty" json:"key,omitempty"`
}

func (*Schedule) Decode

func (o *Schedule) Decode(e entity.AttrGetter)

func (*Schedule) Empty

func (o *Schedule) Empty() bool

func (*Schedule) Encode

func (o *Schedule) Encode() (attrs []entity.Attr)

func (*Schedule) EntityId

func (o *Schedule) EntityId() entity.Id

func (*Schedule) InitSchema

func (o *Schedule) InitSchema(sb *schema.SchemaBuilder)

func (*Schedule) Is

func (o *Schedule) Is(e entity.AttrGetter) bool

func (*Schedule) Kind

func (o *Schedule) Kind() entity.Id

func (*Schedule) ShortKind

func (o *Schedule) ShortKind() string

type StaticHost

type StaticHost struct {
	Host string `cbor:"host,omitempty" json:"host,omitempty"`
	Ip   string `cbor:"ip,omitempty" json:"ip,omitempty"`
}

func (*StaticHost) Decode

func (o *StaticHost) Decode(e entity.AttrGetter)

func (*StaticHost) Empty

func (o *StaticHost) Empty() bool

func (*StaticHost) Encode

func (o *StaticHost) Encode() (attrs []entity.Attr)

func (*StaticHost) InitSchema

func (o *StaticHost) InitSchema(sb *schema.SchemaBuilder)

type Volume

type Volume struct {
	Labels   types.Labels `cbor:"labels,omitempty" json:"labels,omitempty"`
	Name     string       `cbor:"name,omitempty" json:"name,omitempty"`
	Provider string       `cbor:"provider,omitempty" json:"provider,omitempty"`
}

func (*Volume) Decode

func (o *Volume) Decode(e entity.AttrGetter)

func (*Volume) Empty

func (o *Volume) Empty() bool

func (*Volume) Encode

func (o *Volume) Encode() (attrs []entity.Attr)

func (*Volume) InitSchema

func (o *Volume) InitSchema(sb *schema.SchemaBuilder)

Jump to

Keyboard shortcuts

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