Documentation ¶
Index ¶
- func BasicNetworkCreateToGRPC(create basictypes.NetworkCreateRequest) swarmapi.NetworkSpec
- func BasicNetworkFromGRPC(n swarmapi.Network) basictypes.NetworkResource
- func NodeFromGRPC(n swarmapi.Node) types.Node
- func NodeSpecToGRPC(s types.NodeSpec) (swarmapi.NodeSpec, error)
- 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 NodeFromGRPC ¶
NodeFromGRPC converts a grpc Node to a Node.
func NodeSpecToGRPC ¶
NodeSpecToGRPC converts a NodeSpec to a grpc NodeSpec.
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.
Click to show internal directories.
Click to hide internal directories.