Documentation
¶
Overview ¶
Design: docs/architecture/container/runtime.md -- the engine entry, the logger and the command surface Related: register.go -- the registration that names this entry and the command proxy Related: supervise.go -- the supervisor the entry builds and the callbacks reach Related: config.go -- the one rule set the config transaction runs
Package container runs OCI containers inside ze: it describes each container the config holds, starts it through the vendored runtime library, supervises it and removes it. The image store, the container networks and the shell are sibling packages of this plugin and reach it through the seams of storeseam.go and participant.go.
Design: docs/architecture/container/runtime.md -- plugin registration, the config root and the command proxy Related: container.go -- the engine entry and the command this file proxies Related: config.go -- the rule set this file names as the static verifier Related: register_initrole_linux.go -- the early role a container's init takes
Registration is the plugin's whole coupling to ze: an init() that hands the registry a Registration, plus the generated blank imports. A build without the ze_container tag links none of this, so the container keyword, the command and the init role are all absent from it.
Index ¶
- Constants
- func FixFetch(reference string) string
- func FixRegistryCredentials(host string) string
- func RegisterConfigSibling[T any](name string, parse func([]sdk.ConfigSection) (T, error), ...)
- func RegisterEngineClientReceiver(receive func(EngineClient))
- func RegisterParticipant(participant Participant)
- func RegisterSiblingCommand(command SiblingCommand)
- func RegisterSiblingConfigRead(root string)
- func RegisterSiblingDoctorCheck(check SiblingDoctorCheck)
- func SetStoreFactory(factory StoreFactory)
- type Absent
- type AbsentReason
- type ClearAnswer
- type ContainerRow
- type CreatedCall
- type DeleteAnswer
- type DeletedImage
- type EngineClient
- type FetchAnswer
- type FileMount
- type ImageOperations
- type ImageRow
- type ImageState
- type KeptImage
- type LayerRow
- type Participant
- type Ready
- type Resolution
- type ResolveRequest
- type RollbackAnswer
- type SiblingCommand
- type SiblingDoctorCheck
- type State
- type Store
- type StoreChecker
- type StoreFactory
- type StoreNotices
- type StoreTotals
- type UpdateAnswer
- type VolumeDeleteAnswer
- type VolumeFolder
- type VolumeRequest
- type VolumeRow
- type VolumeState
Constants ¶
const ( CodeRegistryUnreachable = codeRegistryUnreachable CodeRegistryAuthRefused = codeRegistryAuthRefused CodeImageNotFound = codeImageNotFound CodeImageDigestMismatch = codeImageDigestMismatch CodeImageRefused = codeImageRefused CodeFetchNoSpace = codeFetchNoSpace // FixDeleteAllImages frees the space a fetch refused for lack of it // needed. FixDeleteAllImages = exampleDeleteAllImages // FixLargestImage raises the bound on the expanded bytes of one image. FixLargestImage = "set container store largest-image SIZE" // FixShowImageList shows the fetches in flight and the ones that failed. FixShowImageList = fixShowImageList // FixShowDoctor reports what keeps the store from working. FixShowDoctor = exampleShowDoctor )
The codes a failed fetch carries, for the image store package: the row of a failed fetch in the image listing names its code, and the fetch's error carries the fix the code's explanation describes. The fixes are built here, from the command words this package declares, so the store repeats none.
const CodeStoreUnwritable = codeStoreUnwritable
CodeStoreUnwritable is the code of a store root that cannot be used, for the image store package: it names the code in the log line it writes when the root could not be prepared at start.
const PluginName = pluginName
PluginName is the plugin's name in the registry. The image store package names it when it grants the plugin its state keys.
Variables ¶
This section is empty.
Functions ¶
func FixRegistryCredentials ¶
FixRegistryCredentials answers the config statement that sets the credentials the registry host is asked with.
func RegisterConfigSibling ¶
func RegisterConfigSibling[T any](name string, parse func([]sdk.ConfigSection) (T, error), apply func(context.Context, T) error)
RegisterConfigSibling adds a sibling to the plugin's config transaction. It MUST be called from a package init function.
parse reads the sibling's own nodes from the sections the plugin receives: the container root, and each root the sibling added with RegisterSiblingConfigRead. It runs after the runtime's own parse accepted the container root, at `ze config validate`, at a reload's verify and at the boot configure, and only when the delivery carries the container root. It MUST NOT change any state. An error refuses the config: it reaches the operator as it is, so it MUST be an opererr.Error.
apply makes cfg the sibling's running config. It is called with the engine reachable, never before the plugin started: for the boot config when the engine reports the plugin started, before any container starts; for a reload, inside the transaction's apply and its rollback. It runs before the supervisor's own apply, so what it makes exists before a container of the new config starts, while the containers of the old config still run: it MUST keep what a running container uses until that container's ended call. It is called at every install, an unchanged sibling config included, so it MUST be idempotent. An error refuses the commit: the siblings that applied before it get their previous config back, the supervisor's apply is not made, and the error reaches the operator as it is. Its context ends after participantCallTimeout.
T MUST be a concrete type, not an interface, and its zero value MUST be the sibling's config with nothing configured: it is applied at the start when no config was delivered, and for a rollback to the config before the first install.
A nil func, an empty name and a name registered twice are Ze defects and panic.
func RegisterEngineClientReceiver ¶
func RegisterEngineClientReceiver(receive func(EngineClient))
RegisterEngineClientReceiver asks for the plugin's engine client. receive is called once for each run of the engine entry, on the engine entry's goroutine, before the start-up sweep makes any ended call and before any other call of this seam. The client refuses every request until the engine reports the plugin started, so an ended call of the sweep that uses it gets a refusal at once, never a hang. receive MUST only store the client. It MUST be called from a package init function; a nil receive is a Ze defect and panics.
func RegisterParticipant ¶
func RegisterParticipant(participant Participant)
RegisterParticipant adds a participant to every container's start and end. It MUST be called from a package init function. A nil participant, an empty name and a name registered twice are Ze defects and panic.
func RegisterSiblingCommand ¶
func RegisterSiblingCommand(command SiblingCommand)
RegisterSiblingCommand adds a command to the plugin's declarations and dispatch, and registers its proxy. It MUST be called from a package init function. A field left empty and a command another registration already answers are Ze defects and panic.
func RegisterSiblingConfigRead ¶
func RegisterSiblingConfigRead(root string)
RegisterSiblingConfigRead makes the plugin receive the config root root beside its own, so a sibling's parse reads it: the network package reads the interface and firewall roots. A read root never loads the plugin. It MUST be called from a package init function. A refusal of the registry is a Ze defect and panics.
func RegisterSiblingDoctorCheck ¶
func RegisterSiblingDoctorCheck(check SiblingDoctorCheck)
RegisterSiblingDoctorCheck adds a doctor check to the plugin's declarations and its doctor answer. It MUST be called from a package init function. A check with no name, no code or no answer, and a name another check of the plugin holds, are Ze defects and panic.
func SetStoreFactory ¶
func SetStoreFactory(factory StoreFactory)
SetStoreFactory installs the image store of this build. The store package MUST call it from a package init function, once: a nil factory and a second call are Ze defects and panic.
Types ¶
type Absent ¶
type Absent struct {
// Reference is the whole reference the config's name completed to. The
// store names the same reference when it later reports the image present.
Reference string
Reason AbsentReason
// Detail is why the last fetch failed, for AbsentFetchFailed, and the
// digest with the fetch that brings it back, for AbsentImageLost.
Detail string
}
Absent is the answer for an image the store does not hold. It is never an empty value: it names the reference and the reason.
type AbsentReason ¶
type AbsentReason uint8
AbsentReason says why the store does not hold an image. Zero is AbsentUnspecified, which no answer carries.
const ( AbsentUnspecified AbsentReason = iota // AbsentNeverFetched is an image no fetch was asked for. AbsentNeverFetched // AbsentFetchRunning is an image whose fetch has not ended. AbsentFetchRunning // AbsentFetchFailed is an image whose last fetch failed. Absent.Detail // says why. AbsentFetchFailed // AbsentImageLost is an image a binding or a generation record names, // whose folder the store no longer holds whole. Absent.Detail names the // digest and the fetch that brings it back. AbsentImageLost )
type ClearAnswer ¶
type ClearAnswer struct {
Name string `json:"name"`
Cleared bool `json:"cleared"`
Restarted bool `json:"restarted"`
}
ClearAnswer is the answer of clear container layer name.
type ContainerRow ¶
type ContainerRow struct {
Name string `json:"name"`
State string `json:"state"`
// Reason is one sentence in the operator's terms: why a container waits
// for its image, why it failed, or that no start of it has ended yet.
Reason string `json:"reason,omitempty"`
// Image is the whole reference the container's image leaf completes to.
Image string `json:"image"`
// Digest and Since are the image a running container runs and when its
// entrypoint was released. No other state carries them.
Digest string `json:"digest,omitempty"`
Since time.Time `json:"since,omitzero"`
}
ContainerRow is one row of show container list: one configured container.
type CreatedCall ¶
type CreatedCall struct {
// Instance is the container's name.
Instance string
// InitProcessID is the process id of the container's init, on the host.
InitProcessID int
// NetworkNamespacePath names the container's own network namespace.
NetworkNamespacePath string
}
CreatedCall is what a participant learns at the created call. It carries a process id and a path, never an open descriptor into the container.
type DeleteAnswer ¶
type DeleteAnswer struct {
Deleted []DeletedImage `json:"deleted"`
Kept []KeptImage `json:"kept"`
}
DeleteAnswer is the answer of delete container image digest and delete container image all: what was removed, and what the delete rule kept.
type DeletedImage ¶
DeletedImage is one image a delete removed. Size is bytes.
type EngineClient ¶
type EngineClient interface {
// OwnedBridgesReplace replaces the plugin's complete set of owned bridges.
OwnedBridgesReplace(ctx context.Context, input *rpc.OwnedBridgesReplaceInput) (*rpc.OwnedBridgesReplaceOutput, error)
// OwnedLinkCreate creates one link from an owned bridge into the network
// namespace of a process, and answers the host end's name.
OwnedLinkCreate(ctx context.Context, input *rpc.OwnedLinkCreateInput) (*rpc.OwnedLinkCreateOutput, error)
// OwnedLinkRemove removes every link recorded under one key.
OwnedLinkRemove(ctx context.Context, input *rpc.OwnedLinkRemoveInput) (*rpc.OwnedLinkRemoveOutput, error)
// FirewallTablesReplace replaces the plugin's complete set of firewall
// tables.
FirewallTablesReplace(ctx context.Context, input *rpc.FirewallTablesReplaceInput) (*rpc.FirewallTablesReplaceOutput, error)
// StateGet reads a granted key. An absent key answers false and no error.
StateGet(ctx context.Context, key string) ([]byte, bool, error)
// StatePut writes a granted key and waits for the durable acknowledgement.
StatePut(ctx context.Context, key string, data []byte) error
// EmitEvent publishes one event on the engine's event bus and answers how
// many subscribers it reached. The sysctl plugin's handler of a default or
// a clear runs before it returns, internal and forked alike.
EmitEvent(ctx context.Context, namespace, eventType, direction, peerAddress, event string) (int, error)
}
EngineClient is the part of the engine a sibling reaches: the owned interface devices, the firewall tables, the state of the keys the sibling granted the plugin with statestore.RegisterPluginKeys, and the event bus, which carries a sibling's sysctl defaults to the sysctl plugin. Each call is a request over the plugin's one engine connection, the same for an internal and a forked plugin, so a sibling never imports the interface or the firewall component. A sibling's test fakes this interface.
Safe for concurrent use. Each call blocks until the engine answers or ctx ends. A refusal of the engine (a device name the sibling did not reserve, an interface or firewall component the config does not load) is the error.
type FetchAnswer ¶
type FetchAnswer struct {
// Reference is the whole reference the operator's name completed to.
Reference string `json:"reference"`
Digest string `json:"digest"`
Size uint64 `json:"size"`
// Created is false when the digest was already in the store.
Created bool `json:"created"`
// Started names the containers that waited for this image and started.
Started []string `json:"started"`
}
FetchAnswer is the answer of create container image reference. Sizes are bytes.
type FileMount ¶
type FileMount struct {
// HostPath is the absolute path of the file on the host.
HostPath string
// ContainerPath is the absolute path of the file inside the container.
ContainerPath string
}
FileMount is a read-only file a participant contributes to a container's description. The participant owns the file and its directory: the runtime mounts it read-only and removes nothing it did not create.
type ImageOperations ¶
type ImageOperations interface {
// FetchImage fetches reference and answers once: at the end of the
// fetch, or, for a fetch that outlasts the store's answer wait, with an
// operator error saying it goes on, so the answer comes before the
// plugin command's 30-second cut.
FetchImage(ctx context.Context, reference string) (FetchAnswer, error)
// ListImages answers one row for each image, each fetch in flight and
// each failed fetch.
ListImages(ctx context.Context) ([]ImageRow, error)
// StoreTotals answers the store's place, its space and its layers.
StoreTotals(ctx context.Context) (StoreTotals, error)
// ListVolumes answers one row for each stored volume.
ListVolumes(ctx context.Context) ([]VolumeRow, error)
// UpdateImage resolves the reference instance's config names again,
// fetches it, and moves the container to it when the digest changed.
UpdateImage(ctx context.Context, instance string) (UpdateAnswer, error)
// RollbackImage swaps the current and the previous generation of
// instance, and restarts it.
RollbackImage(ctx context.Context, instance string) (RollbackAnswer, error)
// DeleteImage deletes the one image digest names, unless a configured
// container holds it.
DeleteImage(ctx context.Context, digest string) (DeleteAnswer, error)
// DeleteAllImages deletes every image no configured container holds, and
// the leftover blobs.
DeleteAllImages(ctx context.Context) (DeleteAnswer, error)
// DeleteVolume deletes the volume of instance, unless the config still
// declares it.
DeleteVolume(ctx context.Context, instance, volume string) (VolumeDeleteAnswer, error)
// ClearLayer empties the writable layer of instance, configured or not.
ClearLayer(ctx context.Context, instance string) (ClearAnswer, error)
}
ImageOperations is what the image commands ask of the store. A Store the factory built MAY also be an ImageOperations: the runtime's seam stays Resolve and Hold, so a store that answers no image command still runs containers. The image commands refuse, naming the reason, when the store of this build is not one. An implementation MUST be safe for concurrent use: the commands arrive from every surface at once.
Every operation takes the command's context first. A plugin command runs under the plugin's run context (handleCommand), so a fetch and an update run under it stop when the plugin stops, not when a caller goes away. Each answers a typed value or an error, never both, and an error is an operator error that names what is wrong, why, and the command that fixes it.
type ImageRow ¶
type ImageRow struct {
Reference string `json:"reference"`
Digest string `json:"digest,omitempty"`
Size uint64 `json:"size"`
Fetched time.Time `json:"fetched,omitzero"`
State ImageState `json:"state"`
// Received is the bytes a fetch in flight received so far.
Received uint64 `json:"received"`
// UsedBy names the containers that hold the image.
UsedBy []string `json:"used-by"`
// Error and Code say why a failed fetch failed, and its doctor code.
Error string `json:"error,omitempty"`
Code string `json:"code,omitempty"`
}
ImageRow is one row of show container image list.
type ImageState ¶
type ImageState uint8
ImageState is the state of one row of the image listing. Zero is ImageStateUnspecified, which no row carries.
const ( ImageStateUnspecified ImageState = iota // ImageStatePresent is an image in the store, bound to its reference. ImageStatePresent // ImageStateFetching is a fetch that has not ended. ImageStateFetching // ImageStateFailed is the last fetch of a reference, which failed. ImageStateFailed // ImageStatePrevious is an image a container holds as its previous // generation. ImageStatePrevious )
func (ImageState) MarshalText ¶
func (s ImageState) MarshalText() ([]byte, error)
MarshalText answers the word the listing shows.
type KeptImage ¶
KeptImage is one image the delete rule kept, and the container and generation that hold it.
type LayerRow ¶
type LayerRow struct {
Instance string `json:"instance"`
Digest string `json:"digest"`
Size uint64 `json:"size"`
Used uint64 `json:"used"`
}
LayerRow is one writable layer of the store: its cap and its use.
type Participant ¶
type Participant interface {
// Name is the participant's name in a container's state when one of its
// calls fails.
Name() string
// Contribute answers the read-only file mounts this participant adds to
// the container's description, before the container is created. It may
// contribute mounts and nothing else.
Contribute(ctx context.Context, instance string) ([]FileMount, error)
// Created is called once, after the container is created and before its
// entrypoint runs. The start continues only when it returns nil: an error
// destroys the container and is recorded with Name in its state. It is
// not called for a container that shares the host's network namespace,
// which has no network namespace of its own to attach. It MUST return
// when ctx ends.
Created(ctx context.Context, call CreatedCall) error
// Ended is called once for every container the runtime created, after
// its processes are gone, and for each leftover the start-up sweep
// removes. It is called whether or not Created was.
Ended(ctx context.Context, instance string)
}
Participant takes part in the start and the end of every container. An implementation MUST be safe for concurrent use: containers start and end on their own supervisor workers.
type Ready ¶
type Ready struct {
// Digest is the image digest the container runs.
Digest string
// ImageFolder is the unpacked image, the read-only lower layer of the
// container's root. An absolute path.
ImageFolder string
// WritableFolder is the one directory of this container and this digest,
// holding the upper and work directories of the overlay. An absolute path.
WritableFolder string
// Volumes holds one folder for each volume of the request.
Volumes []VolumeFolder
// Entrypoint is the image's entrypoint.
Entrypoint []string
// Command is the image's default command. It is a list of its own, never
// joined to Entrypoint.
Command []string
// Environment holds the variables the image declares, each "NAME=value".
Environment []string
// WorkingDirectory is the directory the entrypoint starts in.
WorkingDirectory string
// User is the image's user as written: a name, a number, either with a
// group, or empty.
User string
// StopSignal is the signal the image declares for a stop, empty when it
// declares none.
StopSignal string
// ExposedPorts holds the ports the image declares, for display only.
ExposedPorts []string
// DeclaredVolumes holds the paths the image declares as volumes. The store
// makes no folder for them.
DeclaredVolumes []string
}
Ready is the answer for an image the store holds. It carries the image's configuration as fetched: the store resolves nothing, and the runtime merges it with the container's config.
type Resolution ¶
type Resolution interface {
// contains filtered or unexported methods
}
Resolution is the store's answer to a ResolveRequest: Ready or Absent, and nothing else. A consumer switches on the two types with no default.
type ResolveRequest ¶
type ResolveRequest struct {
// Instance is the container's name.
Instance string
// Reference is the image reference the config names, as written.
Reference string
// StorageMebibytes is the cap of the container's writable layer.
StorageMebibytes uint32
// Volumes holds one entry for each volume the config declares.
Volumes []VolumeRequest
}
ResolveRequest asks the store to resolve one container: the image it runs and the folders it writes to.
type RollbackAnswer ¶
type RollbackAnswer struct {
Name string `json:"name"`
PreviousDigest string `json:"previous-digest"`
Digest string `json:"digest"`
Restarted bool `json:"restarted"`
}
RollbackAnswer is the answer of update container image rollback name.
type SiblingCommand ¶
type SiblingCommand struct {
// Decl is the command's declaration, sent at Stage 1 with the plugin's own.
Decl sdk.CommandDecl
// WireMethod is the method the command's YANG node binds with
// ze:command. The plugin registers its proxy, which forwards the command
// to the plugin's process, internal or forked.
WireMethod string
// Handle answers the command. It runs on the SDK's command goroutine, one
// command at a time, and its error reaches the operator as it is, so it
// MUST be an opererr.Error. It MUST return when ctx ends.
Handle func(ctx context.Context, args []string) (any, error)
}
SiblingCommand is one command a sibling answers in the plugin's process.
type SiblingDoctorCheck ¶
type SiblingDoctorCheck struct {
// Decl is the check's declaration, sent at Stage 1 with the runtime's
// checks. Each code it names MUST be registered with diagnostic.Register
// from the sibling's own init, before this registration.
Decl rpc.DoctorCheckDecl
// Answer answers show doctor's request for the check: one finding, with
// its fix, for each problem the sibling holds. It runs on the SDK's
// doctor goroutine, only reads, and MUST NOT block: it makes no engine
// call.
Answer func() ([]rpc.DoctorCheckDiagnostic, error)
}
SiblingDoctorCheck is one doctor check a sibling answers from its own records.
type State ¶
type State uint8
State is a container's state as an operator sees it. The six named values are the only ones a listing shows. Zero is StateUnspecified, which no container holds.
const ( StateUnspecified State = iota // StateWaitingImage: the store answered that the image is absent. StateWaitingImage // StateRunning: the entrypoint was released. StateRunning // StateRestarting: the entrypoint ended, the policy restarts it, and the // delay is running. StateRestarting // StateStopped: the entrypoint ended and the policy keeps it stopped. StateStopped // StateDisabled: the config's enabled leaf is false. StateDisabled // StateFailed: a start step failed five times in a row. StateFailed )
type Store ¶
type Store interface {
// Resolve answers Ready or Absent for one container. An error is a
// failure to answer, never an absent image.
Resolve(ctx context.Context, request ResolveRequest) (Resolution, error)
// Hold keeps the image and the folders of a Ready answer in place: the
// store refuses to remove what is held. The caller MUST call the returned
// release once, after the container's cleanup ended.
Hold(instance string, resolved Ready) (release func())
}
Store is the image store's side of the seam: what the runtime asks of it. An implementation MUST be safe for concurrent use, because each container is resolved by its own supervisor worker.
type StoreChecker ¶
type StoreChecker interface {
// CheckStore answers nil when the store root can be used now, and an
// operator error that names the folder, why it matters and the command
// that fixes it when it cannot. It MUST change nothing, because doctor
// only reads. Safe for concurrent use.
CheckStore() error
}
StoreChecker is what the doctor check container-store asks of the store. A Store the factory built MAY also be one: a store with no folder of its own has nothing for the check to find.
type StoreFactory ¶
type StoreFactory func(notices StoreNotices) Store
StoreFactory builds the store for one run of the plugin. It receives the notices the store sends, and it MUST start nothing: the plugin calls it from its engine entry, never from a declaration query.
type StoreNotices ¶
type StoreNotices interface {
// ImagePresent reports that the image of reference is now in the store.
// The runtime starts each container that waited for it and answers their
// names.
ImagePresent(ctx context.Context, reference string) (started []string)
// RestartOnNewGeneration stops the container, resolves it again and
// starts it. It answers when the container runs, or why it does not.
RestartOnNewGeneration(ctx context.Context, instance string) error
// StopThenStart stops the container, then starts it again, for the
// store's clear command. It answers as RestartOnNewGeneration does.
StopThenStart(ctx context.Context, instance string) error
}
StoreNotices is the runtime's side of the seam: what the store tells it. The supervisor implements it, and the store receives it when it is built.
type StoreTotals ¶
type StoreTotals struct {
Path string `json:"path"`
Total uint64 `json:"total"`
Free uint64 `json:"free"`
Reserve uint64 `json:"reserve"`
// CapsEnforced says whether the kernel enforces the size caps of the
// layers and the volumes on the store's filesystem.
CapsEnforced bool `json:"caps-enforced"`
Layers []LayerRow `json:"layers"`
}
StoreTotals is the answer of show container store. Sizes are bytes.
type UpdateAnswer ¶
type UpdateAnswer struct {
Name string `json:"name"`
PreviousDigest string `json:"previous-digest"`
Digest string `json:"digest"`
// Changed is false when the reference resolved to the current digest.
Changed bool `json:"changed"`
Restarted bool `json:"restarted"`
}
UpdateAnswer is the answer of update container image name.
type VolumeDeleteAnswer ¶
type VolumeDeleteAnswer struct {
Instance string `json:"instance"`
Name string `json:"name"`
Size uint64 `json:"size"`
}
VolumeDeleteAnswer is the answer of delete container volume name. Size is bytes.
type VolumeFolder ¶
type VolumeFolder struct {
Name string
Destination string
// Folder is the absolute path of the volume on the host.
Folder string
}
VolumeFolder is one volume of a resolved container: the folder the store created and capped for it.
type VolumeRequest ¶
type VolumeRequest struct {
// Name is the volume's name in the container's config.
Name string
// Destination is the absolute path the volume is mounted at inside the
// container.
Destination string
// SizeMebibytes is the cap of the volume.
SizeMebibytes uint32
}
VolumeRequest is one volume the config declares for a container.
type VolumeRow ¶
type VolumeRow struct {
Instance string `json:"instance"`
Name string `json:"name"`
Size uint64 `json:"size"`
Used uint64 `json:"used"`
State VolumeState `json:"state"`
}
VolumeRow is one row of show container volume list. Sizes are bytes.
type VolumeState ¶
type VolumeState uint8
VolumeState is the state of one row of the volume listing. Zero is VolumeStateUnspecified, which no row carries.
const ( VolumeStateUnspecified VolumeState = iota // VolumeStateInUse is a volume the config declares. VolumeStateInUse // VolumeStateOrphan is a volume of a container or a volume the config no // longer holds. VolumeStateOrphan )
func (VolumeState) MarshalText ¶
func (s VolumeState) MarshalText() ([]byte, error)
MarshalText answers the word the listing shows.
Source Files
¶
- config.go
- container.go
- describe_linux.go
- doctor.go
- doctor_store.go
- filemount.go
- image_cmd.go
- initrole_linux.go
- kernelcap_linux.go
- library_linux.go
- list_cmd.go
- output.go
- output_linux.go
- participant.go
- register.go
- register_initrole_linux.go
- register_kernelcap_linux.go
- rootfs_linux.go
- sibling.go
- sibling_engine.go
- sibling_install.go
- stop.go
- storeseam.go
- storeseam_engine.go
- storeseam_operations.go
- supervise.go
- sweep_linux.go
- tunables.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Design: docs/architecture/container/image-store.md -- how the store reaches the plugin Related: store.go -- the store the factory builds Related: registry_list.go -- the config sibling registered here
|
Design: docs/architecture/container/image-store.md -- how the store reaches the plugin Related: store.go -- the store the factory builds Related: registry_list.go -- the config sibling registered here |
|
Design: docs/architecture/container/network.md -- how the network package takes part in the container plugin Related: register_tables.go -- the firewall table reservation Related: verify.go -- the parse registered here Related: apply.go -- the apply registered here Related: attach.go -- the participant registered here
|
Design: docs/architecture/container/network.md -- how the network package takes part in the container plugin Related: register_tables.go -- the firewall table reservation Related: verify.go -- the parse registered here Related: apply.go -- the apply registered here Related: attach.go -- the participant registered here |
|
Package registry is the pull-only client of a container registry: it completes an image reference, resolves it to the manifest of the running platform, and fetches the manifest, the image configuration and the layer blobs, each checked against its digest and its size as the bytes arrive.
|
Package registry is the pull-only client of a container registry: it completes an image reference, resolves it to the manifest of the running platform, and fetches the manifest, the image configuration and the layer blobs, each checked against its digest and its size as the bytes arrive. |
|
Package seccomp is the system-call filter of a container: Go code in Ze's own tree, where it is linted and tested, behind the registration seam the patched runtime library exposes.
|
Package seccomp is the system-call filter of a container: Go code in Ze's own tree, where it is linted and tested, behind the registration seam the patched runtime library exposes. |