compute_v1alpha

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PortProtocolTcpMemberId = entity.Id("dev.miren.compute/protocol.tcp")
	PortProtocolUdpMemberId = entity.Id("dev.miren.compute/protocol.udp")
)
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")
	SandboxSpecRestartPolicyId       = entity.Id("dev.miren.compute/component.sandbox_spec.restart_policy")
	SandboxSpecRestartPolicyAlwaysId = entity.Id("dev.miren.compute/component.sandbox_spec.restart_policy.always")
	SandboxSpecRestartPolicyNeverId  = entity.Id("dev.miren.compute/component.sandbox_spec.restart_policy.never")
	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 (
	SandboxSpecContainerArgsId            = entity.Id("dev.miren.compute/component.sandbox_spec.container.args")
	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 (
	SandboxSpecVolumeDbFileId       = entity.Id("dev.miren.compute/component.sandbox_spec.volume.db_file")
	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")
	SandboxSpecVolumeSqliteIdId     = entity.Id("dev.miren.compute/component.sandbox_spec.volume.sqlite_id")
)
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")
	SandboxExitId                         = entity.Id("dev.miren.compute/sandbox.exit")
	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")
	SandboxStartupOutcomeId               = entity.Id("dev.miren.compute/sandbox.startup_outcome")
	SandboxStartupOutcomeStartupRunningId = entity.Id("dev.miren.compute/startup_outcome.startup_running")
	SandboxStartupOutcomeStartupFailedId  = entity.Id("dev.miren.compute/startup_outcome.startup_failed")
	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")
	SandboxStopRequestedAtId              = entity.Id("dev.miren.compute/sandbox.stop_requested_at")
	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 = PortProtocolTcpMemberId
	PortProtocolUdpId = PortProtocolUdpMemberId
	PortTypeId        = entity.Id("dev.miren.compute/port.type")
)
View Source
const (
	ExitAtId        = entity.Id("dev.miren.compute/exit.at")
	ExitCodeId      = entity.Id("dev.miren.compute/exit.code")
	ExitContainerId = entity.Id("dev.miren.compute/exit.container")
)
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")
)
View Source
var SandboxSpecContainerPortProtocolToId = map[PortProtocol]entity.Id{PortProtocolTcp: PortProtocolTcpMemberId, PortProtocol("component.sandbox_spec.container.port.protocol.tcp"): PortProtocolTcpMemberId, PortProtocolUdp: PortProtocolUdpMemberId, PortProtocol("component.sandbox_spec.container.port.protocol.udp"): PortProtocolUdpMemberId}

Functions

func AdaptSandboxPools added in v0.18.0

func AdaptSandboxPools(t SandboxPools) *rpc.Interface

func AdaptSandboxes added in v0.15.0

func AdaptSandboxes(t Sandboxes) *rpc.Interface

func Index

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

Types

type BoundPort added in v0.11.0

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.0

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

func (*BoundPort) Empty added in v0.11.0

func (o *BoundPort) Empty() bool

func (*BoundPort) Encode added in v0.11.0

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

func (*BoundPort) InitSchema added in v0.11.0

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 Exit added in v0.14.0

type Exit struct {
	At        time.Time `cbor:"at,omitempty" json:"at"`
	Code      int64     `cbor:"code" json:"code"`
	Container string    `cbor:"container,omitempty" json:"container,omitempty"`
}

func (*Exit) Decode added in v0.14.0

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

func (*Exit) Empty added in v0.14.0

func (o *Exit) Empty() bool

func (*Exit) Encode added in v0.14.0

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

func (*Exit) InitSchema added in v0.14.0

func (o *Exit) 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"`
	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"`
	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.0

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 (
	PortProtocolTcp PortProtocol = "tcp"
	PortProtocolUdp PortProtocol = "udp"
)
const (
	SandboxSpecContainerPortTCP PortProtocol = PortProtocolTcp
	SandboxSpecContainerPortUDP PortProtocol = PortProtocolUdp
)

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"`
	Exit            Exit                  `cbor:"exit,omitempty" json:"exit"`
	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"`
	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"`
	StartupOutcome  SandboxStartupOutcome `cbor:"startup_outcome,omitempty" json:"startup_outcome,omitempty"`
	StaticHost      []StaticHost          `cbor:"static_host,omitempty" json:"static_host,omitempty"`
	Status          SandboxStatus         `cbor:"status,omitempty" json:"status,omitempty"`
	StopRequestedAt time.Time             `cbor:"stop_requested_at,omitempty" json:"stop_requested_at"`
	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 SandboxInfo added in v0.15.0

type SandboxInfo struct {
	// contains filtered or unexported fields
}

func (*SandboxInfo) Address added in v0.15.0

func (v *SandboxInfo) Address() string

func (*SandboxInfo) App added in v0.15.0

func (v *SandboxInfo) App() string

func (*SandboxInfo) CreatedAt added in v0.15.0

func (v *SandboxInfo) CreatedAt() int64

func (*SandboxInfo) HasAddress added in v0.15.0

func (v *SandboxInfo) HasAddress() bool

func (*SandboxInfo) HasApp added in v0.15.0

func (v *SandboxInfo) HasApp() bool

func (*SandboxInfo) HasCreatedAt added in v0.15.0

func (v *SandboxInfo) HasCreatedAt() bool

func (*SandboxInfo) HasId added in v0.15.0

func (v *SandboxInfo) HasId() bool

func (*SandboxInfo) HasPool added in v0.15.0

func (v *SandboxInfo) HasPool() bool

func (*SandboxInfo) HasPoolShortId added in v0.15.0

func (v *SandboxInfo) HasPoolShortId() bool

func (*SandboxInfo) HasRunner added in v0.15.0

func (v *SandboxInfo) HasRunner() bool

func (*SandboxInfo) HasService added in v0.15.0

func (v *SandboxInfo) HasService() bool

func (*SandboxInfo) HasShortId added in v0.15.0

func (v *SandboxInfo) HasShortId() bool

func (*SandboxInfo) HasStatus added in v0.15.0

func (v *SandboxInfo) HasStatus() bool

func (*SandboxInfo) HasUpdatedAt added in v0.15.0

func (v *SandboxInfo) HasUpdatedAt() bool

func (*SandboxInfo) HasVersion added in v0.15.0

func (v *SandboxInfo) HasVersion() bool

func (*SandboxInfo) HasVersionShortId added in v0.15.0

func (v *SandboxInfo) HasVersionShortId() bool

func (*SandboxInfo) Id added in v0.15.0

func (v *SandboxInfo) Id() string

func (*SandboxInfo) MarshalCBOR added in v0.15.0

func (v *SandboxInfo) MarshalCBOR() ([]byte, error)

func (*SandboxInfo) MarshalJSON added in v0.15.0

func (v *SandboxInfo) MarshalJSON() ([]byte, error)

func (*SandboxInfo) Pool added in v0.15.0

func (v *SandboxInfo) Pool() string

func (*SandboxInfo) PoolShortId added in v0.15.0

func (v *SandboxInfo) PoolShortId() string

func (*SandboxInfo) Runner added in v0.15.0

func (v *SandboxInfo) Runner() string

func (*SandboxInfo) Service added in v0.15.0

func (v *SandboxInfo) Service() string

func (*SandboxInfo) SetAddress added in v0.15.0

func (v *SandboxInfo) SetAddress(address string)

func (*SandboxInfo) SetApp added in v0.15.0

func (v *SandboxInfo) SetApp(app string)

func (*SandboxInfo) SetCreatedAt added in v0.15.0

func (v *SandboxInfo) SetCreatedAt(created_at int64)

func (*SandboxInfo) SetId added in v0.15.0

func (v *SandboxInfo) SetId(id string)

func (*SandboxInfo) SetPool added in v0.15.0

func (v *SandboxInfo) SetPool(pool string)

func (*SandboxInfo) SetPoolShortId added in v0.15.0

func (v *SandboxInfo) SetPoolShortId(pool_short_id string)

func (*SandboxInfo) SetRunner added in v0.15.0

func (v *SandboxInfo) SetRunner(runner string)

func (*SandboxInfo) SetService added in v0.15.0

func (v *SandboxInfo) SetService(service string)

func (*SandboxInfo) SetShortId added in v0.15.0

func (v *SandboxInfo) SetShortId(short_id string)

func (*SandboxInfo) SetStatus added in v0.15.0

func (v *SandboxInfo) SetStatus(status string)

func (*SandboxInfo) SetUpdatedAt added in v0.15.0

func (v *SandboxInfo) SetUpdatedAt(updated_at int64)

func (*SandboxInfo) SetVersion added in v0.15.0

func (v *SandboxInfo) SetVersion(version string)

func (*SandboxInfo) SetVersionShortId added in v0.15.0

func (v *SandboxInfo) SetVersionShortId(version_short_id string)

func (*SandboxInfo) ShortId added in v0.15.0

func (v *SandboxInfo) ShortId() string

func (*SandboxInfo) Status added in v0.15.0

func (v *SandboxInfo) Status() string

func (*SandboxInfo) UnmarshalCBOR added in v0.15.0

func (v *SandboxInfo) UnmarshalCBOR(data []byte) error

func (*SandboxInfo) UnmarshalJSON added in v0.15.0

func (v *SandboxInfo) UnmarshalJSON(data []byte) error

func (*SandboxInfo) UpdatedAt added in v0.15.0

func (v *SandboxInfo) UpdatedAt() int64

func (*SandboxInfo) Version added in v0.15.0

func (v *SandboxInfo) Version() string

func (*SandboxInfo) VersionShortId added in v0.15.0

func (v *SandboxInfo) VersionShortId() 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"`
	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"`
	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"`
	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 SandboxPoolInfo added in v0.18.0

type SandboxPoolInfo struct {
	// contains filtered or unexported fields
}

func (*SandboxPoolInfo) App added in v0.18.0

func (v *SandboxPoolInfo) App() string

func (*SandboxPoolInfo) CreatedAt added in v0.18.0

func (v *SandboxPoolInfo) CreatedAt() int64

func (*SandboxPoolInfo) CurrentInstances added in v0.18.0

func (v *SandboxPoolInfo) CurrentInstances() int64

func (*SandboxPoolInfo) DesiredInstances added in v0.18.0

func (v *SandboxPoolInfo) DesiredInstances() int64

func (*SandboxPoolInfo) HasApp added in v0.18.0

func (v *SandboxPoolInfo) HasApp() bool

func (*SandboxPoolInfo) HasCreatedAt added in v0.18.0

func (v *SandboxPoolInfo) HasCreatedAt() bool

func (*SandboxPoolInfo) HasCurrentInstances added in v0.18.0

func (v *SandboxPoolInfo) HasCurrentInstances() bool

func (*SandboxPoolInfo) HasDesiredInstances added in v0.18.0

func (v *SandboxPoolInfo) HasDesiredInstances() bool

func (*SandboxPoolInfo) HasId added in v0.18.0

func (v *SandboxPoolInfo) HasId() bool

func (*SandboxPoolInfo) HasReadyInstances added in v0.18.0

func (v *SandboxPoolInfo) HasReadyInstances() bool

func (*SandboxPoolInfo) HasRevision added in v0.18.0

func (v *SandboxPoolInfo) HasRevision() bool

func (*SandboxPoolInfo) HasScalingMode added in v0.18.0

func (v *SandboxPoolInfo) HasScalingMode() bool

func (*SandboxPoolInfo) HasService added in v0.18.0

func (v *SandboxPoolInfo) HasService() bool

func (*SandboxPoolInfo) HasShortId added in v0.18.0

func (v *SandboxPoolInfo) HasShortId() bool

func (*SandboxPoolInfo) HasUpdatedAt added in v0.18.0

func (v *SandboxPoolInfo) HasUpdatedAt() bool

func (*SandboxPoolInfo) HasVersion added in v0.18.0

func (v *SandboxPoolInfo) HasVersion() bool

func (*SandboxPoolInfo) HasVersionShortId added in v0.18.0

func (v *SandboxPoolInfo) HasVersionShortId() bool

func (*SandboxPoolInfo) Id added in v0.18.0

func (v *SandboxPoolInfo) Id() string

func (*SandboxPoolInfo) MarshalCBOR added in v0.18.0

func (v *SandboxPoolInfo) MarshalCBOR() ([]byte, error)

func (*SandboxPoolInfo) MarshalJSON added in v0.18.0

func (v *SandboxPoolInfo) MarshalJSON() ([]byte, error)

func (*SandboxPoolInfo) ReadyInstances added in v0.18.0

func (v *SandboxPoolInfo) ReadyInstances() int64

func (*SandboxPoolInfo) Revision added in v0.18.0

func (v *SandboxPoolInfo) Revision() int64

func (*SandboxPoolInfo) ScalingMode added in v0.18.0

func (v *SandboxPoolInfo) ScalingMode() string

func (*SandboxPoolInfo) Service added in v0.18.0

func (v *SandboxPoolInfo) Service() string

func (*SandboxPoolInfo) SetApp added in v0.18.0

func (v *SandboxPoolInfo) SetApp(app string)

func (*SandboxPoolInfo) SetCreatedAt added in v0.18.0

func (v *SandboxPoolInfo) SetCreatedAt(created_at int64)

func (*SandboxPoolInfo) SetCurrentInstances added in v0.18.0

func (v *SandboxPoolInfo) SetCurrentInstances(current_instances int64)

func (*SandboxPoolInfo) SetDesiredInstances added in v0.18.0

func (v *SandboxPoolInfo) SetDesiredInstances(desired_instances int64)

func (*SandboxPoolInfo) SetId added in v0.18.0

func (v *SandboxPoolInfo) SetId(id string)

func (*SandboxPoolInfo) SetReadyInstances added in v0.18.0

func (v *SandboxPoolInfo) SetReadyInstances(ready_instances int64)

func (*SandboxPoolInfo) SetRevision added in v0.18.0

func (v *SandboxPoolInfo) SetRevision(revision int64)

func (*SandboxPoolInfo) SetScalingMode added in v0.18.0

func (v *SandboxPoolInfo) SetScalingMode(scaling_mode string)

func (*SandboxPoolInfo) SetService added in v0.18.0

func (v *SandboxPoolInfo) SetService(service string)

func (*SandboxPoolInfo) SetShortId added in v0.18.0

func (v *SandboxPoolInfo) SetShortId(short_id string)

func (*SandboxPoolInfo) SetUpdatedAt added in v0.18.0

func (v *SandboxPoolInfo) SetUpdatedAt(updated_at int64)

func (*SandboxPoolInfo) SetVersion added in v0.18.0

func (v *SandboxPoolInfo) SetVersion(version string)

func (*SandboxPoolInfo) SetVersionShortId added in v0.18.0

func (v *SandboxPoolInfo) SetVersionShortId(version_short_id string)

func (*SandboxPoolInfo) ShortId added in v0.18.0

func (v *SandboxPoolInfo) ShortId() string

func (*SandboxPoolInfo) UnmarshalCBOR added in v0.18.0

func (v *SandboxPoolInfo) UnmarshalCBOR(data []byte) error

func (*SandboxPoolInfo) UnmarshalJSON added in v0.18.0

func (v *SandboxPoolInfo) UnmarshalJSON(data []byte) error

func (*SandboxPoolInfo) UpdatedAt added in v0.18.0

func (v *SandboxPoolInfo) UpdatedAt() int64

func (*SandboxPoolInfo) Version added in v0.18.0

func (v *SandboxPoolInfo) Version() string

func (*SandboxPoolInfo) VersionShortId added in v0.18.0

func (v *SandboxPoolInfo) VersionShortId() string

type SandboxPools added in v0.18.0

type SandboxPools interface {
	List(ctx context.Context, state *SandboxPoolsList) error
	SetDesired(ctx context.Context, state *SandboxPoolsSetDesired) error
}

type SandboxPoolsClient added in v0.18.0

type SandboxPoolsClient struct {
	rpc.Client
}

func NewSandboxPoolsClient added in v0.18.0

func NewSandboxPoolsClient(client rpc.Client) *SandboxPoolsClient

func (SandboxPoolsClient) Export added in v0.18.0

func (c SandboxPoolsClient) Export() SandboxPools

func (SandboxPoolsClient) List added in v0.18.0

func (SandboxPoolsClient) SetDesired added in v0.18.0

func (v SandboxPoolsClient) SetDesired(ctx context.Context, pool string, count int64, relative bool, revision int64, raw_id bool) (*SandboxPoolsClientSetDesiredResults, error)

type SandboxPoolsClientListResults added in v0.18.0

type SandboxPoolsClientListResults struct {
	// contains filtered or unexported fields
}

func (*SandboxPoolsClientListResults) HasPools added in v0.18.0

func (v *SandboxPoolsClientListResults) HasPools() bool

func (*SandboxPoolsClientListResults) Pools added in v0.18.0

type SandboxPoolsClientSetDesiredResults added in v0.18.0

type SandboxPoolsClientSetDesiredResults struct {
	// contains filtered or unexported fields
}

func (*SandboxPoolsClientSetDesiredResults) Changed added in v0.18.0

func (*SandboxPoolsClientSetDesiredResults) CurrentInstances added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) CurrentInstances() int64

func (*SandboxPoolsClientSetDesiredResults) Desired added in v0.18.0

func (*SandboxPoolsClientSetDesiredResults) HasChanged added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasChanged() bool

func (*SandboxPoolsClientSetDesiredResults) HasCurrentInstances added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasCurrentInstances() bool

func (*SandboxPoolsClientSetDesiredResults) HasDesired added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasDesired() bool

func (*SandboxPoolsClientSetDesiredResults) HasPoolId added in v0.18.0

func (*SandboxPoolsClientSetDesiredResults) HasPoolShortId added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasPoolShortId() bool

func (*SandboxPoolsClientSetDesiredResults) HasPreviousDesired added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasPreviousDesired() bool

func (*SandboxPoolsClientSetDesiredResults) HasReadyInstances added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasReadyInstances() bool

func (*SandboxPoolsClientSetDesiredResults) HasRevision added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasRevision() bool

func (*SandboxPoolsClientSetDesiredResults) HasService added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) HasService() bool

func (*SandboxPoolsClientSetDesiredResults) PoolId added in v0.18.0

func (*SandboxPoolsClientSetDesiredResults) PoolShortId added in v0.18.0

func (*SandboxPoolsClientSetDesiredResults) PreviousDesired added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) PreviousDesired() int64

func (*SandboxPoolsClientSetDesiredResults) ReadyInstances added in v0.18.0

func (v *SandboxPoolsClientSetDesiredResults) ReadyInstances() int64

func (*SandboxPoolsClientSetDesiredResults) Revision added in v0.18.0

func (*SandboxPoolsClientSetDesiredResults) Service added in v0.18.0

type SandboxPoolsList added in v0.18.0

type SandboxPoolsList struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*SandboxPoolsList) Args added in v0.18.0

func (*SandboxPoolsList) Results added in v0.18.0

type SandboxPoolsListArgs added in v0.18.0

type SandboxPoolsListArgs struct {
	// contains filtered or unexported fields
}

func (*SandboxPoolsListArgs) App added in v0.18.0

func (v *SandboxPoolsListArgs) App() string

func (*SandboxPoolsListArgs) HasApp added in v0.18.0

func (v *SandboxPoolsListArgs) HasApp() bool

func (*SandboxPoolsListArgs) MarshalCBOR added in v0.18.0

func (v *SandboxPoolsListArgs) MarshalCBOR() ([]byte, error)

func (*SandboxPoolsListArgs) MarshalJSON added in v0.18.0

func (v *SandboxPoolsListArgs) MarshalJSON() ([]byte, error)

func (*SandboxPoolsListArgs) UnmarshalCBOR added in v0.18.0

func (v *SandboxPoolsListArgs) UnmarshalCBOR(data []byte) error

func (*SandboxPoolsListArgs) UnmarshalJSON added in v0.18.0

func (v *SandboxPoolsListArgs) UnmarshalJSON(data []byte) error

type SandboxPoolsListResults added in v0.18.0

type SandboxPoolsListResults struct {
	// contains filtered or unexported fields
}

func (*SandboxPoolsListResults) MarshalCBOR added in v0.18.0

func (v *SandboxPoolsListResults) MarshalCBOR() ([]byte, error)

func (*SandboxPoolsListResults) MarshalJSON added in v0.18.0

func (v *SandboxPoolsListResults) MarshalJSON() ([]byte, error)

func (*SandboxPoolsListResults) SetPools added in v0.18.0

func (v *SandboxPoolsListResults) SetPools(pools []*SandboxPoolInfo)

func (*SandboxPoolsListResults) UnmarshalCBOR added in v0.18.0

func (v *SandboxPoolsListResults) UnmarshalCBOR(data []byte) error

func (*SandboxPoolsListResults) UnmarshalJSON added in v0.18.0

func (v *SandboxPoolsListResults) UnmarshalJSON(data []byte) error

type SandboxPoolsSetDesired added in v0.18.0

type SandboxPoolsSetDesired struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*SandboxPoolsSetDesired) Args added in v0.18.0

func (*SandboxPoolsSetDesired) Results added in v0.18.0

type SandboxPoolsSetDesiredArgs added in v0.18.0

type SandboxPoolsSetDesiredArgs struct {
	// contains filtered or unexported fields
}

func (*SandboxPoolsSetDesiredArgs) Count added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) Count() int64

func (*SandboxPoolsSetDesiredArgs) HasCount added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) HasCount() bool

func (*SandboxPoolsSetDesiredArgs) HasPool added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) HasPool() bool

func (*SandboxPoolsSetDesiredArgs) HasRawId added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) HasRawId() bool

func (*SandboxPoolsSetDesiredArgs) HasRelative added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) HasRelative() bool

func (*SandboxPoolsSetDesiredArgs) HasRevision added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) HasRevision() bool

func (*SandboxPoolsSetDesiredArgs) MarshalCBOR added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) MarshalCBOR() ([]byte, error)

func (*SandboxPoolsSetDesiredArgs) MarshalJSON added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) MarshalJSON() ([]byte, error)

func (*SandboxPoolsSetDesiredArgs) Pool added in v0.18.0

func (*SandboxPoolsSetDesiredArgs) RawId added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) RawId() bool

func (*SandboxPoolsSetDesiredArgs) Relative added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) Relative() bool

func (*SandboxPoolsSetDesiredArgs) Revision added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) Revision() int64

func (*SandboxPoolsSetDesiredArgs) UnmarshalCBOR added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) UnmarshalCBOR(data []byte) error

func (*SandboxPoolsSetDesiredArgs) UnmarshalJSON added in v0.18.0

func (v *SandboxPoolsSetDesiredArgs) UnmarshalJSON(data []byte) error

type SandboxPoolsSetDesiredResults added in v0.18.0

type SandboxPoolsSetDesiredResults struct {
	// contains filtered or unexported fields
}

func (*SandboxPoolsSetDesiredResults) MarshalCBOR added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) MarshalCBOR() ([]byte, error)

func (*SandboxPoolsSetDesiredResults) MarshalJSON added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) MarshalJSON() ([]byte, error)

func (*SandboxPoolsSetDesiredResults) SetChanged added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetChanged(changed bool)

func (*SandboxPoolsSetDesiredResults) SetCurrentInstances added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetCurrentInstances(current_instances int64)

func (*SandboxPoolsSetDesiredResults) SetDesired added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetDesired(desired int64)

func (*SandboxPoolsSetDesiredResults) SetPoolId added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetPoolId(pool_id string)

func (*SandboxPoolsSetDesiredResults) SetPoolShortId added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetPoolShortId(pool_short_id string)

func (*SandboxPoolsSetDesiredResults) SetPreviousDesired added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetPreviousDesired(previous_desired int64)

func (*SandboxPoolsSetDesiredResults) SetReadyInstances added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetReadyInstances(ready_instances int64)

func (*SandboxPoolsSetDesiredResults) SetRevision added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetRevision(revision int64)

func (*SandboxPoolsSetDesiredResults) SetService added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) SetService(service string)

func (*SandboxPoolsSetDesiredResults) UnmarshalCBOR added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) UnmarshalCBOR(data []byte) error

func (*SandboxPoolsSetDesiredResults) UnmarshalJSON added in v0.18.0

func (v *SandboxPoolsSetDesiredResults) UnmarshalJSON(data []byte) error

type SandboxSelection added in v0.18.0

type SandboxSelection struct {
	// contains filtered or unexported fields
}

func (*SandboxSelection) CandidateCount added in v0.18.0

func (v *SandboxSelection) CandidateCount() int32

func (*SandboxSelection) HasCandidateCount added in v0.18.0

func (v *SandboxSelection) HasCandidateCount() bool

func (*SandboxSelection) HasId added in v0.18.0

func (v *SandboxSelection) HasId() bool

func (*SandboxSelection) HasService added in v0.18.0

func (v *SandboxSelection) HasService() bool

func (*SandboxSelection) HasShortId added in v0.18.0

func (v *SandboxSelection) HasShortId() bool

func (*SandboxSelection) HasVersion added in v0.18.0

func (v *SandboxSelection) HasVersion() bool

func (*SandboxSelection) Id added in v0.18.0

func (v *SandboxSelection) Id() string

func (*SandboxSelection) MarshalCBOR added in v0.18.0

func (v *SandboxSelection) MarshalCBOR() ([]byte, error)

func (*SandboxSelection) MarshalJSON added in v0.18.0

func (v *SandboxSelection) MarshalJSON() ([]byte, error)

func (*SandboxSelection) Service added in v0.18.0

func (v *SandboxSelection) Service() string

func (*SandboxSelection) SetCandidateCount added in v0.18.0

func (v *SandboxSelection) SetCandidateCount(candidate_count int32)

func (*SandboxSelection) SetId added in v0.18.0

func (v *SandboxSelection) SetId(id string)

func (*SandboxSelection) SetService added in v0.18.0

func (v *SandboxSelection) SetService(service string)

func (*SandboxSelection) SetShortId added in v0.18.0

func (v *SandboxSelection) SetShortId(short_id string)

func (*SandboxSelection) SetVersion added in v0.18.0

func (v *SandboxSelection) SetVersion(version string)

func (*SandboxSelection) ShortId added in v0.18.0

func (v *SandboxSelection) ShortId() string

func (*SandboxSelection) UnmarshalCBOR added in v0.18.0

func (v *SandboxSelection) UnmarshalCBOR(data []byte) error

func (*SandboxSelection) UnmarshalJSON added in v0.18.0

func (v *SandboxSelection) UnmarshalJSON(data []byte) error

func (*SandboxSelection) Version added in v0.18.0

func (v *SandboxSelection) Version() 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"`
	RestartPolicy   SandboxSpecRestartPolicy `cbor:"restart_policy,omitempty" json:"restart_policy,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 {
	Args            []string                         `cbor:"args,omitempty" json:"args,omitempty"`
	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 PortProtocol `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 = PortProtocol

type SandboxSpecRestartPolicy added in v0.14.0

type SandboxSpecRestartPolicy string
const (
	SandboxSpecALWAYS SandboxSpecRestartPolicy = "component.sandbox_spec.restart_policy.always"
	SandboxSpecNEVER  SandboxSpecRestartPolicy = "component.sandbox_spec.restart_policy.never"
)

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 {
	DbFile       string       `cbor:"db_file,omitempty" json:"db_file,omitempty"`
	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"`
	SqliteId     string       `cbor:"sqlite_id,omitempty" json:"sqlite_id,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 SandboxStartupOutcome added in v0.17.0

type SandboxStartupOutcome string
const (
	STARTUP_RUNNING SandboxStartupOutcome = "startup_outcome.startup_running"
	STARTUP_FAILED  SandboxStartupOutcome = "startup_outcome.startup_failed"
)

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 Sandboxes added in v0.15.0

type Sandboxes interface {
	List(ctx context.Context, state *SandboxesList) error
	Stop(ctx context.Context, state *SandboxesStop) error
	Delete(ctx context.Context, state *SandboxesDelete) error
	SelectForApp(ctx context.Context, state *SandboxesSelectForApp) error
}

type SandboxesClient added in v0.15.0

type SandboxesClient struct {
	rpc.Client
}

func NewSandboxesClient added in v0.15.0

func NewSandboxesClient(client rpc.Client) *SandboxesClient

func (SandboxesClient) Delete added in v0.18.0

func (SandboxesClient) Export added in v0.15.0

func (c SandboxesClient) Export() Sandboxes

func (SandboxesClient) List added in v0.15.0

func (SandboxesClient) SelectForApp added in v0.18.0

func (SandboxesClient) Stop added in v0.18.0

type SandboxesClientDeleteResults added in v0.18.0

type SandboxesClientDeleteResults struct {
	// contains filtered or unexported fields
}

type SandboxesClientListResults added in v0.15.0

type SandboxesClientListResults struct {
	// contains filtered or unexported fields
}

func (*SandboxesClientListResults) HasSandboxes added in v0.15.0

func (v *SandboxesClientListResults) HasSandboxes() bool

func (*SandboxesClientListResults) Sandboxes added in v0.15.0

func (v *SandboxesClientListResults) Sandboxes() []*SandboxInfo

type SandboxesClientSelectForAppResults added in v0.18.0

type SandboxesClientSelectForAppResults struct {
	// contains filtered or unexported fields
}

func (*SandboxesClientSelectForAppResults) Failure added in v0.18.0

func (*SandboxesClientSelectForAppResults) HasFailure added in v0.18.0

func (v *SandboxesClientSelectForAppResults) HasFailure() bool

func (*SandboxesClientSelectForAppResults) HasSelection added in v0.18.0

func (v *SandboxesClientSelectForAppResults) HasSelection() bool

func (*SandboxesClientSelectForAppResults) HasServices added in v0.18.0

func (v *SandboxesClientSelectForAppResults) HasServices() bool

func (*SandboxesClientSelectForAppResults) Selection added in v0.18.0

func (*SandboxesClientSelectForAppResults) Services added in v0.18.0

type SandboxesClientStopResults added in v0.18.0

type SandboxesClientStopResults struct {
	// contains filtered or unexported fields
}

type SandboxesDelete added in v0.18.0

type SandboxesDelete struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*SandboxesDelete) Args added in v0.18.0

func (*SandboxesDelete) Results added in v0.18.0

type SandboxesDeleteArgs added in v0.18.0

type SandboxesDeleteArgs struct {
	// contains filtered or unexported fields
}

func (*SandboxesDeleteArgs) HasSandbox added in v0.18.0

func (v *SandboxesDeleteArgs) HasSandbox() bool

func (*SandboxesDeleteArgs) MarshalCBOR added in v0.18.0

func (v *SandboxesDeleteArgs) MarshalCBOR() ([]byte, error)

func (*SandboxesDeleteArgs) MarshalJSON added in v0.18.0

func (v *SandboxesDeleteArgs) MarshalJSON() ([]byte, error)

func (*SandboxesDeleteArgs) Sandbox added in v0.18.0

func (v *SandboxesDeleteArgs) Sandbox() string

func (*SandboxesDeleteArgs) UnmarshalCBOR added in v0.18.0

func (v *SandboxesDeleteArgs) UnmarshalCBOR(data []byte) error

func (*SandboxesDeleteArgs) UnmarshalJSON added in v0.18.0

func (v *SandboxesDeleteArgs) UnmarshalJSON(data []byte) error

type SandboxesDeleteResults added in v0.18.0

type SandboxesDeleteResults struct {
	// contains filtered or unexported fields
}

func (*SandboxesDeleteResults) MarshalCBOR added in v0.18.0

func (v *SandboxesDeleteResults) MarshalCBOR() ([]byte, error)

func (*SandboxesDeleteResults) MarshalJSON added in v0.18.0

func (v *SandboxesDeleteResults) MarshalJSON() ([]byte, error)

func (*SandboxesDeleteResults) UnmarshalCBOR added in v0.18.0

func (v *SandboxesDeleteResults) UnmarshalCBOR(data []byte) error

func (*SandboxesDeleteResults) UnmarshalJSON added in v0.18.0

func (v *SandboxesDeleteResults) UnmarshalJSON(data []byte) error

type SandboxesList added in v0.15.0

type SandboxesList struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*SandboxesList) Args added in v0.15.0

func (t *SandboxesList) Args() *SandboxesListArgs

func (*SandboxesList) Results added in v0.15.0

func (t *SandboxesList) Results() *SandboxesListResults

type SandboxesListArgs added in v0.15.0

type SandboxesListArgs struct {
	// contains filtered or unexported fields
}

func (*SandboxesListArgs) MarshalCBOR added in v0.15.0

func (v *SandboxesListArgs) MarshalCBOR() ([]byte, error)

func (*SandboxesListArgs) MarshalJSON added in v0.15.0

func (v *SandboxesListArgs) MarshalJSON() ([]byte, error)

func (*SandboxesListArgs) UnmarshalCBOR added in v0.15.0

func (v *SandboxesListArgs) UnmarshalCBOR(data []byte) error

func (*SandboxesListArgs) UnmarshalJSON added in v0.15.0

func (v *SandboxesListArgs) UnmarshalJSON(data []byte) error

type SandboxesListResults added in v0.15.0

type SandboxesListResults struct {
	// contains filtered or unexported fields
}

func (*SandboxesListResults) MarshalCBOR added in v0.15.0

func (v *SandboxesListResults) MarshalCBOR() ([]byte, error)

func (*SandboxesListResults) MarshalJSON added in v0.15.0

func (v *SandboxesListResults) MarshalJSON() ([]byte, error)

func (*SandboxesListResults) SetSandboxes added in v0.15.0

func (v *SandboxesListResults) SetSandboxes(sandboxes []*SandboxInfo)

func (*SandboxesListResults) UnmarshalCBOR added in v0.15.0

func (v *SandboxesListResults) UnmarshalCBOR(data []byte) error

func (*SandboxesListResults) UnmarshalJSON added in v0.15.0

func (v *SandboxesListResults) UnmarshalJSON(data []byte) error

type SandboxesSelectForApp added in v0.18.0

type SandboxesSelectForApp struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*SandboxesSelectForApp) Args added in v0.18.0

func (*SandboxesSelectForApp) Results added in v0.18.0

type SandboxesSelectForAppArgs added in v0.18.0

type SandboxesSelectForAppArgs struct {
	// contains filtered or unexported fields
}

func (*SandboxesSelectForAppArgs) App added in v0.18.0

func (*SandboxesSelectForAppArgs) HasApp added in v0.18.0

func (v *SandboxesSelectForAppArgs) HasApp() bool

func (*SandboxesSelectForAppArgs) HasService added in v0.18.0

func (v *SandboxesSelectForAppArgs) HasService() bool

func (*SandboxesSelectForAppArgs) MarshalCBOR added in v0.18.0

func (v *SandboxesSelectForAppArgs) MarshalCBOR() ([]byte, error)

func (*SandboxesSelectForAppArgs) MarshalJSON added in v0.18.0

func (v *SandboxesSelectForAppArgs) MarshalJSON() ([]byte, error)

func (*SandboxesSelectForAppArgs) Service added in v0.18.0

func (v *SandboxesSelectForAppArgs) Service() string

func (*SandboxesSelectForAppArgs) UnmarshalCBOR added in v0.18.0

func (v *SandboxesSelectForAppArgs) UnmarshalCBOR(data []byte) error

func (*SandboxesSelectForAppArgs) UnmarshalJSON added in v0.18.0

func (v *SandboxesSelectForAppArgs) UnmarshalJSON(data []byte) error

type SandboxesSelectForAppResults added in v0.18.0

type SandboxesSelectForAppResults struct {
	// contains filtered or unexported fields
}

func (*SandboxesSelectForAppResults) MarshalCBOR added in v0.18.0

func (v *SandboxesSelectForAppResults) MarshalCBOR() ([]byte, error)

func (*SandboxesSelectForAppResults) MarshalJSON added in v0.18.0

func (v *SandboxesSelectForAppResults) MarshalJSON() ([]byte, error)

func (*SandboxesSelectForAppResults) SetFailure added in v0.18.0

func (v *SandboxesSelectForAppResults) SetFailure(failure string)

func (*SandboxesSelectForAppResults) SetSelection added in v0.18.0

func (v *SandboxesSelectForAppResults) SetSelection(selection *SandboxSelection)

func (*SandboxesSelectForAppResults) SetServices added in v0.18.0

func (v *SandboxesSelectForAppResults) SetServices(services []string)

func (*SandboxesSelectForAppResults) UnmarshalCBOR added in v0.18.0

func (v *SandboxesSelectForAppResults) UnmarshalCBOR(data []byte) error

func (*SandboxesSelectForAppResults) UnmarshalJSON added in v0.18.0

func (v *SandboxesSelectForAppResults) UnmarshalJSON(data []byte) error

type SandboxesStop added in v0.18.0

type SandboxesStop struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*SandboxesStop) Args added in v0.18.0

func (t *SandboxesStop) Args() *SandboxesStopArgs

func (*SandboxesStop) Results added in v0.18.0

func (t *SandboxesStop) Results() *SandboxesStopResults

type SandboxesStopArgs added in v0.18.0

type SandboxesStopArgs struct {
	// contains filtered or unexported fields
}

func (*SandboxesStopArgs) HasSandbox added in v0.18.0

func (v *SandboxesStopArgs) HasSandbox() bool

func (*SandboxesStopArgs) MarshalCBOR added in v0.18.0

func (v *SandboxesStopArgs) MarshalCBOR() ([]byte, error)

func (*SandboxesStopArgs) MarshalJSON added in v0.18.0

func (v *SandboxesStopArgs) MarshalJSON() ([]byte, error)

func (*SandboxesStopArgs) Sandbox added in v0.18.0

func (v *SandboxesStopArgs) Sandbox() string

func (*SandboxesStopArgs) UnmarshalCBOR added in v0.18.0

func (v *SandboxesStopArgs) UnmarshalCBOR(data []byte) error

func (*SandboxesStopArgs) UnmarshalJSON added in v0.18.0

func (v *SandboxesStopArgs) UnmarshalJSON(data []byte) error

type SandboxesStopResults added in v0.18.0

type SandboxesStopResults struct {
	// contains filtered or unexported fields
}

func (*SandboxesStopResults) MarshalCBOR added in v0.18.0

func (v *SandboxesStopResults) MarshalCBOR() ([]byte, error)

func (*SandboxesStopResults) MarshalJSON added in v0.18.0

func (v *SandboxesStopResults) MarshalJSON() ([]byte, error)

func (*SandboxesStopResults) UnmarshalCBOR added in v0.18.0

func (v *SandboxesStopResults) UnmarshalCBOR(data []byte) error

func (*SandboxesStopResults) UnmarshalJSON added in v0.18.0

func (v *SandboxesStopResults) UnmarshalJSON(data []byte) error

type Schedule

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

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