This section is empty.


This section is empty.


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

      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

            func SecretFromGRPC(s *swarmapi.Secret) swarmtypes.Secret

              SecretFromGRPC converts a grpc Secret to a Secret.

              func SecretReferencesFromGRPC

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

                SecretReferencesFromGRPC converts a slice of grpc SecretReference to SecretReference

                func SecretSpecToGRPC

                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.


                            This section is empty.