convert

package
v0.0.0-...-dfbecc7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAttributes

func DecodeAttributes(attrs proto.Attributes) map[string]interface{}

DecodeAttributes decodes a `proto.Attributes` to a native Go map.

func DecodeConfigurations

func DecodeConfigurations(configs []proto.Configuration) []api.Configuration

func DecodeContainer

func DecodeContainer(container *proto.Container) *api.Container

DecodeContainer decodes `*proto.Container` to `*api.Container`.

func DecodeHealthCheck

func DecodeHealthCheck(healthCheck *proto.HealthCheck) *api.HealthCheck

func DecodeNode

func DecodeNode(in proto.Node) api.Node

DecodeNode decodes `proto.Node` to `api.Node`.

func DecodeNodes

func DecodeNodes(nodes []proto.Node) []api.Node

DecodeNodes decodes `[]proto.Node` to `[]api.Node`.

func DecodeOperations

func DecodeOperations(operations []proto.Operation) []api.Operation

func DecodePorts

func DecodePorts(ports []proto.Port) []api.Port

DecodePorts decodes `[]proto.Port` to `[]api.Port`.

func DecodeRetry

func DecodeRetry(retry *proto.Retry) *api.Retry

func DecodeRoutingRules

func DecodeRoutingRules(rules proto.RoutingRules) api.RoutingRules

func DecodeServiceInstances

func DecodeServiceInstances(services []proto.ServiceInstance) []api.ServiceInstance

DecodeServiceInstances decodes `[]proto.ServiceInstance` to `[]api.ServiceInstance`.

func DecodeServices

func DecodeServices(services []proto.Service) []api.Service

func DecodeVersion

func DecodeVersion(version *proto.Version) *api.Version

func EncodeAttributes

func EncodeAttributes(md map[string]interface{}) proto.Attributes

EncodeAttributes encodes a native Go map to a `proto.Attributes`.

func EncodeConfigurations

func EncodeConfigurations(configs []api.Configuration) []proto.Configuration

func EncodeContainer

func EncodeContainer(container *api.Container) *proto.Container

func EncodeHealthCheck

func EncodeHealthCheck(healthCheck *api.HealthCheck) *proto.HealthCheck

func EncodeNode

func EncodeNode(in api.Node) proto.Node

func EncodeNodes

func EncodeNodes(nodes []api.Node) []proto.Node

func EncodeOperations

func EncodeOperations(operations []api.Operation) []proto.Operation

func EncodePorts

func EncodePorts(ports []api.Port) []proto.Port

func EncodeRetry

func EncodeRetry(retry *api.Retry) *proto.Retry

func EncodeRoutingRules

func EncodeRoutingRules(rules api.RoutingRules) proto.RoutingRules

func EncodeServiceInstances

func EncodeServiceInstances(services []api.ServiceInstance) []proto.ServiceInstance

func EncodeServices

func EncodeServices(services []api.Service) []proto.Service

func EncodeVersion

func EncodeVersion(version *api.Version) *proto.Version

Types

This section is empty.

Jump to

Keyboard shortcuts

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