convert

package
v0.0.0-...-ed2495a Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertUlimits

func ConvertUlimits(ulimits []v3.Ulimit) []*units.Ulimit

func InterfaceToString

func InterfaceToString(v interface{}) string

func RancherToDockerConfigs

func RancherToDockerConfigs(containerSpec v3.Container, reference Reference) (container.Config, container.HostConfig)

RancherToDockerConfigs take a v3.Container and a list of metadata referenced by itself, returns docker.Config and docker.HostConfig

func ToMapString

func ToMapString(m map[string]interface{}) map[string]string

func Unmarshalling

func Unmarshalling(data interface{}, v interface{}) error

Types

type Reference

type Reference struct {
	VolumeFromContainers map[string]v3.Container
	DockerRoot           string
}

Jump to

Keyboard shortcuts

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