Documentation
¶
Index ¶
- Constants
- Variables
- func AdaptSandboxes(t Sandboxes) *rpc.Interface
- func Index(kind, node entity.Id) entity.Attr
- type BoundPort
- type ConfigFile
- type Container
- type Exit
- type Key
- type Lease
- func (o *Lease) Decode(e entity.AttrGetter)
- func (o *Lease) Empty() bool
- func (o *Lease) Encode() (attrs []entity.Attr)
- func (o *Lease) EntityId() entity.Id
- func (o *Lease) InitSchema(sb *schema.SchemaBuilder)
- func (o *Lease) Is(e entity.AttrGetter) bool
- func (o *Lease) Kind() entity.Id
- func (o *Lease) ShortKind() string
- type Mount
- type Network
- type Node
- func (o *Node) Decode(e entity.AttrGetter)
- func (o *Node) Empty() bool
- func (o *Node) Encode() (attrs []entity.Attr)
- func (o *Node) EntityId() entity.Id
- func (o *Node) InitSchema(sb *schema.SchemaBuilder)
- func (o *Node) Is(e entity.AttrGetter) bool
- func (o *Node) Kind() entity.Id
- func (o *Node) ShortKind() string
- type NodeId
- type NodeScheduling
- type NodeStatus
- type Port
- type PortProtocol
- type Route
- type Sandbox
- func (o *Sandbox) Decode(e entity.AttrGetter)
- func (o *Sandbox) Empty() bool
- func (o *Sandbox) Encode() (attrs []entity.Attr)
- func (o *Sandbox) EntityId() entity.Id
- func (o *Sandbox) InitSchema(sb *schema.SchemaBuilder)
- func (o *Sandbox) Is(e entity.AttrGetter) bool
- func (o *Sandbox) Kind() entity.Id
- func (o *Sandbox) ShortKind() string
- type SandboxInfo
- func (v *SandboxInfo) Address() string
- func (v *SandboxInfo) App() string
- func (v *SandboxInfo) CreatedAt() int64
- func (v *SandboxInfo) HasAddress() bool
- func (v *SandboxInfo) HasApp() bool
- func (v *SandboxInfo) HasCreatedAt() bool
- func (v *SandboxInfo) HasId() bool
- func (v *SandboxInfo) HasPool() bool
- func (v *SandboxInfo) HasPoolShortId() bool
- func (v *SandboxInfo) HasRunner() bool
- func (v *SandboxInfo) HasService() bool
- func (v *SandboxInfo) HasShortId() bool
- func (v *SandboxInfo) HasStatus() bool
- func (v *SandboxInfo) HasUpdatedAt() bool
- func (v *SandboxInfo) HasVersion() bool
- func (v *SandboxInfo) HasVersionShortId() bool
- func (v *SandboxInfo) Id() string
- func (v *SandboxInfo) MarshalCBOR() ([]byte, error)
- func (v *SandboxInfo) MarshalJSON() ([]byte, error)
- func (v *SandboxInfo) Pool() string
- func (v *SandboxInfo) PoolShortId() string
- func (v *SandboxInfo) Runner() string
- func (v *SandboxInfo) Service() string
- func (v *SandboxInfo) SetAddress(address string)
- func (v *SandboxInfo) SetApp(app string)
- func (v *SandboxInfo) SetCreatedAt(created_at int64)
- func (v *SandboxInfo) SetId(id string)
- func (v *SandboxInfo) SetPool(pool string)
- func (v *SandboxInfo) SetPoolShortId(pool_short_id string)
- func (v *SandboxInfo) SetRunner(runner string)
- func (v *SandboxInfo) SetService(service string)
- func (v *SandboxInfo) SetShortId(short_id string)
- func (v *SandboxInfo) SetStatus(status string)
- func (v *SandboxInfo) SetUpdatedAt(updated_at int64)
- func (v *SandboxInfo) SetVersion(version string)
- func (v *SandboxInfo) SetVersionShortId(version_short_id string)
- func (v *SandboxInfo) ShortId() string
- func (v *SandboxInfo) Status() string
- func (v *SandboxInfo) UnmarshalCBOR(data []byte) error
- func (v *SandboxInfo) UnmarshalJSON(data []byte) error
- func (v *SandboxInfo) UpdatedAt() int64
- func (v *SandboxInfo) Version() string
- func (v *SandboxInfo) VersionShortId() string
- type SandboxPool
- func (o *SandboxPool) Decode(e entity.AttrGetter)
- func (o *SandboxPool) Empty() bool
- func (o *SandboxPool) Encode() (attrs []entity.Attr)
- func (o *SandboxPool) EntityId() entity.Id
- func (o *SandboxPool) InitSchema(sb *schema.SchemaBuilder)
- func (o *SandboxPool) Is(e entity.AttrGetter) bool
- func (o *SandboxPool) Kind() entity.Id
- func (o *SandboxPool) ShortKind() string
- type SandboxSpec
- type SandboxSpecContainer
- type SandboxSpecContainerConfigFile
- type SandboxSpecContainerMount
- type SandboxSpecContainerPort
- type SandboxSpecContainerPortProtocol
- type SandboxSpecRestartPolicy
- type SandboxSpecRoute
- type SandboxSpecStaticHost
- type SandboxSpecVolume
- type SandboxStatus
- type Sandboxes
- type SandboxesClient
- type SandboxesClientListResults
- type SandboxesList
- type SandboxesListArgs
- type SandboxesListResults
- func (v *SandboxesListResults) MarshalCBOR() ([]byte, error)
- func (v *SandboxesListResults) MarshalJSON() ([]byte, error)
- func (v *SandboxesListResults) SetSandboxes(sandboxes []*SandboxInfo)
- func (v *SandboxesListResults) UnmarshalCBOR(data []byte) error
- func (v *SandboxesListResults) UnmarshalJSON(data []byte) error
- type Schedule
- func (o *Schedule) Decode(e entity.AttrGetter)
- func (o *Schedule) Empty() bool
- func (o *Schedule) Encode() (attrs []entity.Attr)
- func (o *Schedule) EntityId() entity.Id
- func (o *Schedule) InitSchema(sb *schema.SchemaBuilder)
- func (o *Schedule) Is(e entity.AttrGetter) bool
- func (o *Schedule) Kind() entity.Id
- func (o *Schedule) ShortKind() string
- type StaticHost
- type Volume
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") 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") 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 ( 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 PortprotocolFromId = map[entity.Id]PortProtocol{PortProtocolTcpId: TCP, PortProtocolUdpId: UDP}
View Source
var PortprotocolToId = map[PortProtocol]entity.Id{TCP: PortProtocolTcpId, UDP: PortProtocolUdpId}
View Source
var SandboxSpecContainerPortprotocolFromId = map[entity.Id]SandboxSpecContainerPortProtocol{SandboxSpecContainerPortProtocolTcpId: SandboxSpecContainerPortTCP, SandboxSpecContainerPortProtocolUdpId: SandboxSpecContainerPortUDP}
View Source
var SandboxSpecContainerPortprotocolToId = map[SandboxSpecContainerPortProtocol]entity.Id{SandboxSpecContainerPortTCP: SandboxSpecContainerPortProtocolTcpId, SandboxSpecContainerPortUDP: SandboxSpecContainerPortProtocolUdpId}
Functions ¶
func AdaptSandboxes ¶ added in v0.15.0
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) 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) 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) 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) 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) InitSchema ¶
func (o *Lease) InitSchema(sb *schema.SchemaBuilder)
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) 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) 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) InitSchema ¶
func (o *Node) InitSchema(sb *schema.SchemaBuilder)
type NodeId ¶ added in v0.12.1
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
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
Id returns the node id as a plain entity.Id, for use with the entity store and any API that speaks entity.Id.
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) 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) 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"`
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) InitSchema ¶
func (o *Sandbox) InitSchema(sb *schema.SchemaBuilder)
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 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 (o *SandboxSpecContainerConfigFile) Decode(e entity.AttrGetter)
func (*SandboxSpecContainerConfigFile) Empty ¶
func (o *SandboxSpecContainerConfigFile) Empty() bool
func (*SandboxSpecContainerConfigFile) Encode ¶
func (o *SandboxSpecContainerConfigFile) Encode() (attrs []entity.Attr)
func (*SandboxSpecContainerConfigFile) InitSchema ¶
func (o *SandboxSpecContainerConfigFile) InitSchema(sb *schema.SchemaBuilder)
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 (o *SandboxSpecContainerMount) Decode(e entity.AttrGetter)
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 (o *SandboxSpecContainerPort) Decode(e entity.AttrGetter)
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 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 (o *SandboxSpecStaticHost) Decode(e entity.AttrGetter)
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 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
}
type SandboxesClient ¶ added in v0.15.0
func NewSandboxesClient ¶ added in v0.15.0
func NewSandboxesClient(client rpc.Client) *SandboxesClient
func (SandboxesClient) Export ¶ added in v0.15.0
func (c SandboxesClient) Export() Sandboxes
func (SandboxesClient) List ¶ added in v0.15.0
func (v SandboxesClient) List(ctx context.Context) (*SandboxesClientListResults, error)
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 SandboxesList ¶ added in v0.15.0
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 Schedule ¶
func (*Schedule) Decode ¶
func (o *Schedule) Decode(e entity.AttrGetter)
func (*Schedule) InitSchema ¶
func (o *Schedule) InitSchema(sb *schema.SchemaBuilder)
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) InitSchema ¶
func (o *Volume) InitSchema(sb *schema.SchemaBuilder)
Click to show internal directories.
Click to hide internal directories.