package
0.0.0-20200321091321-bc8cfc345e21
Repository: https://github.com/wuka1/swarmkit.git
Documentation: pkg.go.dev

# README

Notice

Do not change .pb.go files directly. You need to change the corresponding .proto files and run the following command to regenerate the .pb.go files.

$ make generate

Click here for more information about protobuf.

The api.pb.txt file contains merged descriptors of all defined services and messages. Definitions present here are considered frozen after the release.

At release time, the current api.pb.txt file will be moved into place to freeze the API changes for the minor version. For example, when 1.0.0 is released, api.pb.txt should be moved to 1.0.txt. Notice that we leave off the patch number, since the API will be completely locked down for a given patch series.

We may find that by default, protobuf descriptors are too noisy to lock down API changes. In that case, we may filter out certain fields in the descriptors, possibly regenerating for old versions.

This process is similar to the process used to ensure backwards compatibility in Go.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package naming centralizes the naming of SwarmKit objects.
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ISOLATION_DEFAULT uses whatever default value from the container runtime.
ISOLATION_HYPERV forces Hyper-V isolation.
ISOLATION_PROCESS forces windows container isolation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Certificate issuance failed.
successful completion certificate issuance.
Certificate is pending acceptance.
A new certificate should be issued.
Signals workers to renew their certificate.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Active nodes.
Drained nodes are paused and any task already running on them will be evicted.
Paused nodes won't be considered by the scheduler, preventing any further task to run on them.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Disconnected indicates the node is currently trying to find new manager.
Down indicates the node is down.
Ready indicates the node is ready to accept tasks.
Unknown indicates the node state cannot be resolved.
No description provided by the author
No description provided by the author
No description provided by the author
PublishModeHost exposes the port on just the target host.
PublishModeIngress exposes the port across the cluster on all nodes.
Reachable indicates that the node is healthy and reachable by other members.
Unknown indicates that the manager state cannot be resolved.
Unreachable indicates that the node cannot be contacted by other raft cluster members.
DNSRR resolution mode specifies that the service directly gets resolved to one of the backend IP and the client directly initiates a request towards the actual backend.
VIP resolution mode specifies that the service resolves to a logical IP and the requests are sent to that logical IP.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
V0 is the initial version of the StoreSnapshot message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TaskStateOrphaned is used to free up resources associated with service tasks on unresponsive nodes without having to delete those tasks.
No description provided by the author
No description provided by the author
No description provided by the author
TaskStateRejected means a task never ran, for instance if something about the environment failed (e.g.
TaskStateRemove is used to correctly handle service deletions and scale downs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This is not a rollback.
Roll back the service - get spec from the service's previous_spec.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
Annotations provide useful information to identify API objects.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BlacklistedCertificate is a record for a blacklisted certificate.
No description provided by the author
No description provided by the author
Cluster provides global cluster settings.
No description provided by the author
No description provided by the author
No description provided by the author
ClusterSnapshot stores cluster membership information in snapshots.
ClusterSpec specifies global cluster settings.
Config represents a set of configuration files that should be passed to a container.
No description provided by the author
No description provided by the author
No description provided by the author
ConfigReference is the linkage between a service and a config that it uses.
No description provided by the author
No description provided by the author
ConfigSpec specifies user-provided configuration files.
Container specifies runtime parameters for a container.
DNSConfig specifies DNS related configurations in resolver configuration file (resolv.conf) Detailed documentation is available in: http://man7.org/linux/man-pages/man5/resolv.conf.5.html TODO: domain is not supported yet.
PullOptions allows one to parameterize an image pull.
Container specific status.
CreateConfigRequest specifies a new config (it will not update an existing config) to create.
CreateConfigResponse contains the newly created `Config` corresponding to the name in `CreateConfigRequest`.
CreateExtensionRequest creates a new extension as specified by the provided parameters.
CreateExtensionResponse contains the newly created `Extension` corresponding to the parameters in the CreateExtensionRequest.
No description provided by the author
No description provided by the author
CreateResourceRequest creates a new resource specified by the included resource object.
CreateResourceResponse contains the newly created `Resource` corresponding to the resource in the CreateResourceRequest.
CreateSecretRequest specifies a new secret (it will not update an existing secret) to create.
CreateSecretResponse contains the newly created `Secret` corresponding to the name in `CreateSecretRequest`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DiscreteGenericResource represents a "user defined" resource which is defined as an integer "Kind" is used to describe the Kind of a resource (e.g: "GPU", "FPGA", "SSD", ...) Value is used to count the resource (SSD=5, HDD=3, ...).
No description provided by the author
No description provided by the author
No description provided by the author
DispatcherConfig defines cluster-level dispatcher settings.
Driver is a generic driver type to be used throughout the API.
No description provided by the author
Symmetric keys to encrypt inter-agent communication.
Endpoint specified all the network parameters required to correctly discover and load balance a service.
VirtualIP specifies a set of networks this endpoint will be attached to and the IP addresses the target service will be made available under.
EndpointSpec defines the properties that can be configured to access and loadbalance the service.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Extension declares a type of "resource" object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FileTarget represents a specific target that is backed by a file.
GenericResource represents a "user defined" resource which can be either an integer (e.g: SSD=3) or a string (e.g: SSD=sda1).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetConfigRequest is the request to get a `Config` object given a config id.
GetConfigResponse contains the Config corresponding to the id in `GetConfigRequest`.
GetResourceRequest is the request to get a Extension object given a extension id.
GetExtensionResponse contains the Extension corresponding to the id in `GetExtensionRequest`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetResourceRequest is the request to get a Resource object given a resource id.
GetResourceResponse contains the Resource corresponding to the id in `GetResourceRequest`.
No description provided by the author
No description provided by the author
GetSecretRequest is the request to get a `Secret` object given a secret id.
GetSecretResponse contains the Secret corresponding to the id in `GetSecretRequest`, but the `Secret.Spec.Data` field in each `Secret` object should be nil instead of actually containing the secret bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GlobalService represents global service.
No description provided by the author
No description provided by the author
HealthConfig holds configuration settings for the HEALTHCHECK feature.
HeartbeatRequest provides identifying properties for a single heartbeat.
No description provided by the author
No description provided by the author
No description provided by the author
Contains one of many protobuf encoded objects to replicate over the raft backend with a request ID to track when the action is effectively applied.
IPAMConfig specifies parameters for IP Address Management.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JoinToken contains the join tokens for workers and managers.
KeyRotation tells UpdateCluster what items to rotate.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ListConfigRequest is the request to list all configs in the config store, or all configs filtered by (name or name prefix or id prefix) and labels.
No description provided by the author
ListConfigResponse contains a list of all the configs that match the name or name prefix filters provided in `ListConfigRequest`.
ListenSubscriptionsRequest is a placeholder to begin listening for subscriptions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ListResourcesRequest is the request to list all resources in the raft store, or all resources filtered by (name or name prefix or id prefix), labels and extension.
No description provided by the author
ListResourcesResponse contains a list of all the resources that match the name or name prefix filters provided in `ListResourcesRequest`.
ListSecretRequest is the request to list all non-internal secrets in the secret store, or all secrets filtered by (name or name prefix or id prefix) and labels.
No description provided by the author
ListSecretResponse contains a list of all the secrets that match the name or name prefix filters provided in `ListSecretRequest`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LogAttr is an extra key/value pair that may be have been set by users.
No description provided by the author
No description provided by the author
LogContext marks the context from which a log message was generated.
LogMessage.
No description provided by the author
LogSelector will match logs from ANY of the defined parameters.
No description provided by the author
ManagerStatus provides informations about the state of a manager in the cluster.
No description provided by the author
Meta contains metadata about objects.
Mount describes volume mounts for a container.
BindOptions specifies options that are specific to a bind mount.
No description provided by the author
VolumeOptions contains parameters for mounting the volume.
NamedGenericResource represents a "user defined" resource which is defined as a string.
No description provided by the author
NetworkAttachment specifies the network parameters of attachment to a single network by an object such as task or node.
NetworkAttachmentConfig specifies how a service should be attached to a particular network.
NetworkAttachmentSpec specifies runtime parameters required to attach a container to a network.
No description provided by the author
No description provided by the author
No description provided by the author
NetworkSpec specifies user defined network parameters.
No description provided by the author
Node provides the internal node state as seen by the cluster.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OrchestrationConfig defines cluster-level orchestration settings.
Peer should be used anywhere where we are describing a remote peer.
Placement specifies task distribution constraints.
No description provided by the author
No description provided by the author
No description provided by the author
PluginDescription describes an engine plugin.
PortConfig specifies an exposed port which can be addressed using the given name.
PortStatus specifies the actual allocated runtime state of a list of port configs.
Privileges specifies security configuration/permissions.
CredentialSpec for managed service account (Windows only).
No description provided by the author
No description provided by the author
No description provided by the author
SELinuxContext contains the SELinux labels for the container.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RaftConfig defines raft settings for the cluster.
No description provided by the author
No description provided by the author
RemoveConfigRequest contains the ID of the config that should be removed.
RemoveConfigResponse is an empty object indicating the successful removal of a config.
RemoveExtensionRequest contains the ID of the extension that should be removed.
RemoveExtensionResponse is an empty object indicating the successful removal of an extension.
No description provided by the author
No description provided by the author
RemoveNodeRequest requests to delete the specified node from store.
No description provided by the author
RemoveResourceRequest contains the ID of the resource that should be removed.
RemoveResourceResponse is an empty object indicating the successful removal of a resource.
RemoveSecretRequest contains the ID of the secret that should be removed.
RemoveSecretResponse is an empty object indicating the successful removal of a secret.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReplicatedService sets the reconciliation target to certain number of replicas.
No description provided by the author
No description provided by the author
Resource is a top-level object with externally defined content and indexing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RuntimeTarget represents that this secret is _not_ mounted into the container, but is used for some other purpose by the container runtime.
Secret represents a secret that should be passed to a container or a node, and is immutable.
No description provided by the author
No description provided by the author
No description provided by the author
SecretReference is the linkage between a service and a secret that it uses.
No description provided by the author
SecretSpec specifies a user-provided secret.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FIXME(aaronl): These messages should ideally be embedded in SelectBy, but protoc generates bad code for that.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServiceSpec defines the properties of a service.
No description provided by the author
No description provided by the author
SessionMessage instructs an agent on various actions as part of the current session.
SessionRequest starts a session.
No description provided by the author
No description provided by the author
StoreAction defines a target and operation to apply on the storage system.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StoreSnapshot is used to store snapshots of the store.
Raft message streaming request.
Raft message streaming response.
No description provided by the author
No description provided by the author
SubscriptionMessage instructs the listener to start publishing messages for the stream or end a subscription.
Task specifies the parameters for implementing a Spec.
No description provided by the author
TaskDefaults specifies default values for task creation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdateConfig specifies the rate and policy of updates.
No description provided by the author
No description provided by the author
UpdateNodeRequest requests an update to the specified node.
No description provided by the author
UpdateResourceRequest updates the resource specified by the given resource object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UpdateStatus is the status of an update in progress.
No description provided by the author
No description provided by the author
No description provided by the author
Version tracks the last time an object in the store was updated.
No description provided by the author
WatchMessage is the type of the stream that's returned to the client by Watch.
No description provided by the author
No description provided by the author
No description provided by the author
WeightedPeer should be used anywhere where we are describing a remote peer with a weight.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Event is the type used for events passed over watcher channels, and also the type used to specify filtering in calls to Watch.
No description provided by the author
No description provided by the author
EventCreate is an interface implemented by every creation event type.
EventDelete is an interface implemented by every delete event type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventUpdate is an interface impelemented by every update event type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StoreObject is an abstract object that can be handled by the store.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
AssignmentType specifies whether this assignment message carries the full state, or is an update to an existing state.
No description provided by the author
No description provided by the author
No description provided by the author
Encryption algorithm that can implemented using this key.
ResolutionMode specifies the mode of resolution to use for internal loadbalancing between tasks which are all within the cluster.
No description provided by the author
No description provided by the author
No description provided by the author
AddressFamily specifies the network address family that this IPAMConfig belongs to.
No description provided by the author
LogStream defines the stream from which the log message came.
No description provided by the author
No description provided by the author
Consistency indicates the tolerable level of file system consistency.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO(aluzzardi) These should be using `gogoproto.enumvalue_customname`.
No description provided by the author
PublishMode controls how ports are published on the swarm.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StoreActionKind defines the operation to take on the store for the target of a storage action.
No description provided by the author
Only the manager create a NEW task, and move the task to PENDING and ASSIGNED.
No description provided by the author
UpdateOrder controls the order of operations when rolling out an updated task.
No description provided by the author
No description provided by the author
WatchActionKind distinguishes between creations, updates, and removals.