transformer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAnnotations

func ConfigAnnotations(service kobject.ServiceConfig) map[string]string

Configure annotations

func ConfigLabels

func ConfigLabels(name string) map[string]string

Configure label

func CreateOutFile

func CreateOutFile(out string) *os.File

Create the file to write to if --out is specified

func ParseVolume

func ParseVolume(volume string) (name, host, container, mode string, err error)

parseVolume parse a given volume, which might be [name:][host:]container[:access_mode]

func Print

func Print(name, trailing string, data []byte, toStdout, generateYaml bool, f *os.File) string

Either print to stdout or to file/s

func RandStringBytes added in v0.1.0

func RandStringBytes(n int) string

RandStringBytes generates randomly n-character string

func TransformData added in v0.1.0

func TransformData(obj runtime.Object, GenerateYaml bool) ([]byte, error)

Transform data to json/yaml

Types

type Transformer

type Transformer interface {
	// Transform converts KomposeObject to transformer specific objects.
	Transform(kobject.KomposeObject, kobject.ConvertOptions) []runtime.Object
	// Deploy deploys KomposeObject to provider
	Deploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) error
	// Undeploy deletes/undeploys KomposeObject from provider
	Undeploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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