transformer

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigAnnotations

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

ConfigAnnotations configures annotations

func ConfigLabels

func ConfigLabels(name string) map[string]string

ConfigLabels configures label

func CreateOutFile

func CreateOutFile(out string) *os.File

CreateOutFile creates the file to write to if --out is specified

func ParseVolume

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

ParseVolume parses a given volume, which might be [name:][host:]container[:access_mode]

func Print

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

Print either prints to stdout or to file/s

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes generates randomly n-character string

func TransformData

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

TransformData transforms 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
}

Transformer interface defines transformer that is converting kobject to other resources

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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