Documentation
¶
Index ¶
- Constants
- Variables
- func Index(kind, node entity.Id) entity.Attr
- type ConfigFile
- type Container
- 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 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 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 SandboxSpecRoute
- type SandboxSpecStaticHost
- type SandboxSpecVolume
- type SandboxStatus
- 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") SandboxSpecRouteId = entity.Id("dev.miren.compute/component.sandbox_spec.route") SandboxSpecStaticHostId = entity.Id("dev.miren.compute/component.sandbox_spec.static_host") SandboxSpecVersionId = entity.Id("dev.miren.compute/component.sandbox_spec.version") SandboxSpecVolumeId = entity.Id("dev.miren.compute/component.sandbox_spec.volume") )
View Source
const ( SandboxSpecContainerCommandId = entity.Id("dev.miren.compute/component.sandbox_spec.container.command") SandboxSpecContainerConfigFileId = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file") SandboxSpecContainerDirectoryId = entity.Id("dev.miren.compute/component.sandbox_spec.container.directory") SandboxSpecContainerEnvId = entity.Id("dev.miren.compute/component.sandbox_spec.container.env") SandboxSpecContainerImageId = entity.Id("dev.miren.compute/component.sandbox_spec.container.image") SandboxSpecContainerMountId = entity.Id("dev.miren.compute/component.sandbox_spec.container.mount") SandboxSpecContainerNameId = entity.Id("dev.miren.compute/component.sandbox_spec.container.name") SandboxSpecContainerOomScoreId = entity.Id("dev.miren.compute/component.sandbox_spec.container.oom_score") SandboxSpecContainerPortId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port") SandboxSpecContainerPrivilegedId = entity.Id("dev.miren.compute/component.sandbox_spec.container.privileged") SandboxSpecContainerShutdownTimeoutId = entity.Id("dev.miren.compute/component.sandbox_spec.container.shutdown_timeout") SandboxSpecContainerStdinId = entity.Id("dev.miren.compute/component.sandbox_spec.container.stdin") SandboxSpecContainerTtyId = entity.Id("dev.miren.compute/component.sandbox_spec.container.tty") )
View Source
const ( SandboxSpecContainerConfigFileDataId = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file.data") SandboxSpecContainerConfigFileModeId = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file.mode") SandboxSpecContainerConfigFilePathId = entity.Id("dev.miren.compute/component.sandbox_spec.container.config_file.path") )
View Source
const ( SandboxSpecContainerMountDestinationId = entity.Id("dev.miren.compute/component.sandbox_spec.container.mount.destination") SandboxSpecContainerMountSourceId = entity.Id("dev.miren.compute/component.sandbox_spec.container.mount.source") )
View Source
const ( SandboxSpecContainerPortNameId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.name") SandboxSpecContainerPortNodePortId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.node_port") SandboxSpecContainerPortPortId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.port") SandboxSpecContainerPortProtocolId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.protocol") SandboxSpecContainerPortProtocolTcpId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.protocol.tcp") SandboxSpecContainerPortProtocolUdpId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.protocol.udp") SandboxSpecContainerPortTypeId = entity.Id("dev.miren.compute/component.sandbox_spec.container.port.type") )
View Source
const ( SandboxSpecRouteDestinationId = entity.Id("dev.miren.compute/component.sandbox_spec.route.destination") SandboxSpecRouteGatewayId = entity.Id("dev.miren.compute/component.sandbox_spec.route.gateway") )
View Source
const ( SandboxSpecStaticHostHostId = entity.Id("dev.miren.compute/component.sandbox_spec.static_host.host") SandboxSpecStaticHostIpId = entity.Id("dev.miren.compute/component.sandbox_spec.static_host.ip") )
View Source
const ( SandboxSpecVolumeDiskNameId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.disk_name") SandboxSpecVolumeFilesystemId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.filesystem") SandboxSpecVolumeLabelsId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.labels") SandboxSpecVolumeLeaseTimeoutId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.lease_timeout") SandboxSpecVolumeMountPathId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.mount_path") SandboxSpecVolumeNameId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.name") SandboxSpecVolumeProviderId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.provider") SandboxSpecVolumeReadOnlyId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.read_only") SandboxSpecVolumeSizeGbId = entity.Id("dev.miren.compute/component.sandbox_spec.volume.size_gb") )
View Source
const ( LeaseLastHeartbeatId = entity.Id("dev.miren.compute/lease.last_heartbeat") LeaseProjectId = entity.Id("dev.miren.compute/lease.project") LeaseSandboxId = entity.Id("dev.miren.compute/lease.sandbox") )
View Source
const ( NodeApiAddressId = entity.Id("dev.miren.compute/node.api_address") NodeConstraintsId = entity.Id("dev.miren.compute/node.constraints") NodeRegisteredAtId = entity.Id("dev.miren.compute/node.registered_at") NodeRunnerIdId = entity.Id("dev.miren.compute/node.runner_id") 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 ( SandboxContainerId = entity.Id("dev.miren.compute/sandbox.container") SandboxHostNetworkId = entity.Id("dev.miren.compute/sandbox.hostNetwork") SandboxLabelsId = entity.Id("dev.miren.compute/sandbox.labels") SandboxLastActivityId = entity.Id("dev.miren.compute/sandbox.last_activity") SandboxLogAttributeId = entity.Id("dev.miren.compute/sandbox.logAttribute") SandboxLogEntityId = entity.Id("dev.miren.compute/sandbox.logEntity") SandboxNetworkId = entity.Id("dev.miren.compute/sandbox.network") SandboxRouteId = entity.Id("dev.miren.compute/sandbox.route") SandboxSpecId = entity.Id("dev.miren.compute/sandbox.spec") SandboxStaticHostId = entity.Id("dev.miren.compute/sandbox.static_host") SandboxStatusId = entity.Id("dev.miren.compute/sandbox.status") SandboxStatusPendingId = entity.Id("dev.miren.compute/status.pending") SandboxStatusNotReadyId = entity.Id("dev.miren.compute/status.not_ready") SandboxStatusRunningId = entity.Id("dev.miren.compute/status.running") SandboxStatusStoppedId = entity.Id("dev.miren.compute/status.stopped") SandboxStatusDeadId = entity.Id("dev.miren.compute/status.dead") SandboxVolumeId = entity.Id("dev.miren.compute/sandbox.volume") )
View Source
const ( ContainerCommandId = entity.Id("dev.miren.compute/container.command") ContainerConfigFileId = entity.Id("dev.miren.compute/container.config_file") ContainerDirectoryId = entity.Id("dev.miren.compute/container.directory") ContainerEnvId = entity.Id("dev.miren.compute/container.env") ContainerImageId = entity.Id("dev.miren.compute/container.image") ContainerMountId = entity.Id("dev.miren.compute/container.mount") ContainerNameId = entity.Id("dev.miren.compute/container.name") ContainerOomScoreId = entity.Id("dev.miren.compute/container.oom_score") ContainerPortId = entity.Id("dev.miren.compute/container.port") ContainerPrivilegedId = entity.Id("dev.miren.compute/container.privileged") ContainerShutdownTimeoutId = entity.Id("dev.miren.compute/container.shutdown_timeout") ContainerStdinId = entity.Id("dev.miren.compute/container.stdin") ContainerTtyId = entity.Id("dev.miren.compute/container.tty") )
View Source
const ( ConfigFileDataId = entity.Id("dev.miren.compute/config_file.data") ConfigFileModeId = entity.Id("dev.miren.compute/config_file.mode") ConfigFilePathId = entity.Id("dev.miren.compute/config_file.path") )
View Source
const ( MountDestinationId = entity.Id("dev.miren.compute/mount.destination") MountSourceId = entity.Id("dev.miren.compute/mount.source") )
View Source
const ( PortNameId = entity.Id("dev.miren.compute/port.name") PortNodePortId = entity.Id("dev.miren.compute/port.node_port") PortPortId = entity.Id("dev.miren.compute/port.port") PortProtocolId = entity.Id("dev.miren.compute/port.protocol") PortProtocolTcpId = entity.Id("dev.miren.compute/protocol.tcp") PortProtocolUdpId = entity.Id("dev.miren.compute/protocol.udp") PortTypeId = entity.Id("dev.miren.compute/port.type") )
View Source
const ( NetworkAddressId = entity.Id("dev.miren.compute/network.address") NetworkSubnetId = entity.Id("dev.miren.compute/network.subnet") )
View Source
const ( RouteDestinationId = entity.Id("dev.miren.compute/route.destination") RouteGatewayId = entity.Id("dev.miren.compute/route.gateway") )
View Source
const ( StaticHostHostId = entity.Id("dev.miren.compute/static_host.host") StaticHostIpId = entity.Id("dev.miren.compute/static_host.ip") )
View Source
const ( VolumeLabelsId = entity.Id("dev.miren.compute/volume.labels") VolumeNameId = entity.Id("dev.miren.compute/volume.name") VolumeProviderId = entity.Id("dev.miren.compute/volume.provider") )
View Source
const ( SandboxPoolAppId = entity.Id("dev.miren.compute/sandbox_pool.app") SandboxPoolConsecutiveCrashCountId = entity.Id("dev.miren.compute/sandbox_pool.consecutive_crash_count") SandboxPoolCooldownUntilId = entity.Id("dev.miren.compute/sandbox_pool.cooldown_until") SandboxPoolCurrentInstancesId = entity.Id("dev.miren.compute/sandbox_pool.current_instances") SandboxPoolDesiredInstancesId = entity.Id("dev.miren.compute/sandbox_pool.desired_instances") 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 ¶
Types ¶
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 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,omitempty"`
Project entity.Id `cbor:"project,omitempty" json:"project,omitempty"`
Sandbox entity.Id `cbor:"sandbox,omitempty" json:"sandbox,omitempty"`
}
func (*Lease) Decode ¶
func (o *Lease) Decode(e entity.AttrGetter)
func (*Lease) 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"`
RegisteredAt time.Time `cbor:"registered_at,omitempty" json:"registered_at,omitempty"`
RunnerId string `cbor:"runner_id,omitempty" json:"runner_id,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 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"`
Container []Container `cbor:"container" json:"container"`
HostNetwork bool `cbor:"hostNetwork,omitempty" json:"hostNetwork,omitempty"`
Labels []string `cbor:"labels,omitempty" json:"labels,omitempty"`
LastActivity time.Time `cbor:"last_activity,omitempty" json:"last_activity,omitempty"`
LogAttribute types.Labels `cbor:"logAttribute,omitempty" json:"logAttribute,omitempty"`
LogEntity string `cbor:"logEntity,omitempty" json:"logEntity,omitempty"`
Network []Network `cbor:"network,omitempty" json:"network,omitempty"`
Route []Route `cbor:"route,omitempty" json:"route,omitempty"`
Spec SandboxSpec `cbor:"spec,omitempty" json:"spec,omitempty"`
StaticHost []StaticHost `cbor:"static_host,omitempty" json:"static_host,omitempty"`
Status SandboxStatus `cbor:"status,omitempty" json:"status,omitempty"`
Volume []Volume `cbor:"volume,omitempty" json:"volume,omitempty"`
}
func (*Sandbox) Decode ¶
func (o *Sandbox) Decode(e entity.AttrGetter)
func (*Sandbox) InitSchema ¶
func (o *Sandbox) InitSchema(sb *schema.SchemaBuilder)
type SandboxPool ¶
type SandboxPool struct {
ID entity.Id `json:"id"`
App entity.Id `cbor:"app,omitempty" json:"app,omitempty"`
ConsecutiveCrashCount int64 `cbor:"consecutive_crash_count,omitempty" json:"consecutive_crash_count,omitempty"`
CooldownUntil time.Time `cbor:"cooldown_until,omitempty" json:"cooldown_until,omitempty"`
CurrentInstances int64 `cbor:"current_instances,omitempty" json:"current_instances,omitempty"`
DesiredInstances int64 `cbor:"desired_instances,omitempty" json:"desired_instances,omitempty"`
LastCrashTime time.Time `cbor:"last_crash_time,omitempty" json:"last_crash_time,omitempty"`
ReadyInstances int64 `cbor:"ready_instances,omitempty" json:"ready_instances,omitempty"`
ReferencedByVersions []entity.Id `cbor:"referenced_by_versions,omitempty" json:"referenced_by_versions,omitempty"`
SandboxLabels types.Labels `cbor:"sandbox_labels,omitempty" json:"sandbox_labels,omitempty"`
SandboxPrefix string `cbor:"sandbox_prefix,omitempty" json:"sandbox_prefix,omitempty"`
SandboxSpec SandboxSpec `cbor:"sandbox_spec,omitempty" json:"sandbox_spec,omitempty"`
Service string `cbor:"service,omitempty" json:"service,omitempty"`
}
func (*SandboxPool) Decode ¶
func (o *SandboxPool) Decode(e entity.AttrGetter)
func (*SandboxPool) Empty ¶
func (o *SandboxPool) Empty() bool
func (*SandboxPool) Encode ¶
func (o *SandboxPool) Encode() (attrs []entity.Attr)
func (*SandboxPool) EntityId ¶
func (o *SandboxPool) EntityId() entity.Id
func (*SandboxPool) InitSchema ¶
func (o *SandboxPool) InitSchema(sb *schema.SchemaBuilder)
func (*SandboxPool) Is ¶
func (o *SandboxPool) Is(e entity.AttrGetter) bool
func (*SandboxPool) Kind ¶
func (o *SandboxPool) Kind() entity.Id
func (*SandboxPool) ShortKind ¶
func (o *SandboxPool) ShortKind() string
type SandboxSpec ¶
type SandboxSpec struct {
Container []SandboxSpecContainer `cbor:"container" json:"container"`
HostNetwork bool `cbor:"hostNetwork,omitempty" json:"hostNetwork,omitempty"`
LogAttribute types.Labels `cbor:"logAttribute,omitempty" json:"logAttribute,omitempty"`
LogEntity string `cbor:"logEntity,omitempty" json:"logEntity,omitempty"`
Route []SandboxSpecRoute `cbor:"route,omitempty" json:"route,omitempty"`
StaticHost []SandboxSpecStaticHost `cbor:"static_host,omitempty" json:"static_host,omitempty"`
Version entity.Id `cbor:"version,omitempty" json:"version,omitempty"`
Volume []SandboxSpecVolume `cbor:"volume,omitempty" json:"volume,omitempty"`
}
func (*SandboxSpec) Decode ¶
func (o *SandboxSpec) Decode(e entity.AttrGetter)
func (*SandboxSpec) Empty ¶
func (o *SandboxSpec) Empty() bool
func (*SandboxSpec) Encode ¶
func (o *SandboxSpec) Encode() (attrs []entity.Attr)
func (*SandboxSpec) InitSchema ¶
func (o *SandboxSpec) InitSchema(sb *schema.SchemaBuilder)
type SandboxSpecContainer ¶
type SandboxSpecContainer struct {
Command string `cbor:"command,omitempty" json:"command,omitempty"`
ConfigFile []SandboxSpecContainerConfigFile `cbor:"config_file,omitempty" json:"config_file,omitempty"`
Directory string `cbor:"directory,omitempty" json:"directory,omitempty"`
Env []string `cbor:"env,omitempty" json:"env,omitempty"`
Image string `cbor:"image" json:"image"`
Mount []SandboxSpecContainerMount `cbor:"mount,omitempty" json:"mount,omitempty"`
Name string `cbor:"name,omitempty" json:"name,omitempty"`
OomScore int64 `cbor:"oom_score,omitempty" json:"oom_score,omitempty"`
Port []SandboxSpecContainerPort `cbor:"port,omitempty" json:"port,omitempty"`
Privileged bool `cbor:"privileged,omitempty" json:"privileged,omitempty"`
ShutdownTimeout string `cbor:"shutdown_timeout,omitempty" json:"shutdown_timeout,omitempty"`
Stdin bool `cbor:"stdin,omitempty" json:"stdin,omitempty"`
Tty bool `cbor:"tty,omitempty" json:"tty,omitempty"`
}
func (*SandboxSpecContainer) Decode ¶
func (o *SandboxSpecContainer) Decode(e entity.AttrGetter)
func (*SandboxSpecContainer) Empty ¶
func (o *SandboxSpecContainer) Empty() bool
func (*SandboxSpecContainer) Encode ¶
func (o *SandboxSpecContainer) Encode() (attrs []entity.Attr)
func (*SandboxSpecContainer) InitSchema ¶
func (o *SandboxSpecContainer) InitSchema(sb *schema.SchemaBuilder)
type SandboxSpecContainerConfigFile ¶
type SandboxSpecContainerConfigFile struct {
Data string `cbor:"data,omitempty" json:"data,omitempty"`
Mode string `cbor:"mode,omitempty" json:"mode,omitempty"`
Path string `cbor:"path,omitempty" json:"path,omitempty"`
}
func (*SandboxSpecContainerConfigFile) Decode ¶
func (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 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 {
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"`
Provider string `cbor:"provider,omitempty" json:"provider,omitempty"`
ReadOnly bool `cbor:"read_only,omitempty" json:"read_only,omitempty"`
SizeGb int64 `cbor:"size_gb,omitempty" json:"size_gb,omitempty"`
}
func (*SandboxSpecVolume) Decode ¶
func (o *SandboxSpecVolume) Decode(e entity.AttrGetter)
func (*SandboxSpecVolume) Empty ¶
func (o *SandboxSpecVolume) Empty() bool
func (*SandboxSpecVolume) Encode ¶
func (o *SandboxSpecVolume) Encode() (attrs []entity.Attr)
func (*SandboxSpecVolume) InitSchema ¶
func (o *SandboxSpecVolume) InitSchema(sb *schema.SchemaBuilder)
type SandboxStatus ¶
type SandboxStatus string
const ( PENDING SandboxStatus = "status.pending" NOT_READY SandboxStatus = "status.not_ready" RUNNING SandboxStatus = "status.running" STOPPED SandboxStatus = "status.stopped" DEAD SandboxStatus = "status.dead" )
type Schedule ¶
type Schedule struct {
ID entity.Id `json:"id"`
Key Key `cbor:"key,omitempty" json:"key,omitempty"`
}
func (*Schedule) Decode ¶
func (o *Schedule) Decode(e entity.AttrGetter)
func (*Schedule) 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.