Documentation ¶
Index ¶
- func BasicNetworkCreateToGRPC(create basictypes.NetworkCreateRequest) swarmapi.NetworkSpec
- func BasicNetworkFromGRPC(n swarmapi.Network) basictypes.NetworkResource
- func MergeSwarmSpecToGRPC(s types.Spec, spec swarmapi.ClusterSpec) (swarmapi.ClusterSpec, error)
- func NodeFromGRPC(n swarmapi.Node) types.Node
- func NodeSpecToGRPC(s types.NodeSpec) (swarmapi.NodeSpec, error)
- func SecretFromGRPC(s *swarmapi.Secret) swarmtypes.Secret
- func SecretSpecToGRPC(s swarmtypes.SecretSpec) swarmapi.SecretSpec
- func ServiceFromGRPC(s swarmapi.Service) types.Service
- func ServiceSpecToGRPC(s types.ServiceSpec) (swarmapi.ServiceSpec, error)
- func SwarmFromGRPC(c swarmapi.Cluster) types.Swarm
- func SwarmSpecToGRPC(s types.Spec) (swarmapi.ClusterSpec, error)
- func TaskFromGRPC(t swarmapi.Task) types.Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicNetworkCreateToGRPC ¶
func BasicNetworkCreateToGRPC(create basictypes.NetworkCreateRequest) swarmapi.NetworkSpec
BasicNetworkCreateToGRPC converts a NetworkCreateRequest to a grpc NetworkSpec.
func BasicNetworkFromGRPC ¶
func BasicNetworkFromGRPC(n swarmapi.Network) basictypes.NetworkResource
BasicNetworkFromGRPC converts a grpc Network to a NetworkResource.
func MergeSwarmSpecToGRPC ¶ added in v1.13.0
func MergeSwarmSpecToGRPC(s types.Spec, spec swarmapi.ClusterSpec) (swarmapi.ClusterSpec, error)
MergeSwarmSpecToGRPC merges a Spec with an initial grpc ClusterSpec
func NodeFromGRPC ¶
NodeFromGRPC converts a grpc Node to a Node.
func NodeSpecToGRPC ¶
NodeSpecToGRPC converts a NodeSpec to a grpc NodeSpec.
func SecretFromGRPC ¶ added in v1.13.0
func SecretFromGRPC(s *swarmapi.Secret) swarmtypes.Secret
SecretFromGRPC converts a grpc Secret to a Secret.
func SecretSpecToGRPC ¶ added in v1.13.0
func SecretSpecToGRPC(s swarmtypes.SecretSpec) swarmapi.SecretSpec
SecretSpecToGRPC converts Secret to a grpc Secret.
func ServiceFromGRPC ¶
ServiceFromGRPC converts a grpc Service to a Service.
func ServiceSpecToGRPC ¶
func ServiceSpecToGRPC(s types.ServiceSpec) (swarmapi.ServiceSpec, error)
ServiceSpecToGRPC converts a ServiceSpec to a grpc ServiceSpec.
func SwarmFromGRPC ¶
SwarmFromGRPC converts a grpc Cluster to a Swarm.
func SwarmSpecToGRPC ¶
func SwarmSpecToGRPC(s types.Spec) (swarmapi.ClusterSpec, error)
SwarmSpecToGRPC converts a Spec to a grpc ClusterSpec.
Types ¶
This section is empty.