convert

package
v1.13.0-rc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func NodeFromGRPC(n swarmapi.Node) types.Node

NodeFromGRPC converts a grpc Node to a Node.

func NodeSpecToGRPC

func NodeSpecToGRPC(s types.NodeSpec) (swarmapi.NodeSpec, error)

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 SecretReferencesFromGRPC added in v1.13.0

func SecretReferencesFromGRPC(s []*swarmapi.SecretReference) []*swarmtypes.SecretReference

SecretReferencesFromGRPC converts a slice of grpc SecretReference to SecretReference

func SecretSpecToGRPC added in v1.13.0

func SecretSpecToGRPC(s swarmtypes.SecretSpec) swarmapi.SecretSpec

SecretSpecToGRPC converts Secret to a grpc Secret.

func ServiceFromGRPC

func ServiceFromGRPC(s swarmapi.Service) types.Service

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

func SwarmFromGRPC(c swarmapi.Cluster) types.Swarm

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.

func TaskFromGRPC

func TaskFromGRPC(t swarmapi.Task) types.Task

TaskFromGRPC converts a grpc Task to a Task.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL