transformer

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 30

Documentation

Index

Constants

View Source
const Selector = "io.kompose.service"

Selector used as labels and selector

Variables

This section is empty.

Functions

func BuildDockerImage added in v1.0.0

func BuildDockerImage(service kobject.ServiceConfig, name string) error

BuildDockerImage builds docker image

func ConfigAllLabels added in v1.21.0

func ConfigAllLabels(name string, service *kobject.ServiceConfig) map[string]string

ConfigAllLabels creates labels with service nam and deploy labels

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 name alone

func ConfigLabelsWithNetwork added in v1.20.0

func ConfigLabelsWithNetwork(name string, net []string) map[string]string

ConfigLabelsWithNetwork configures label and add Network Information in labels

func CreateOutFile

func CreateOutFile(out string) (*os.File, error)

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

func GetComposeFileDir added in v1.0.0

func GetComposeFileDir(inputFiles []string) (string, error)

GetComposeFileDir returns compose file directory

func ParseIngressPath added in v1.21.0

func ParseIngressPath(url string) (string, string)

ParseIngressPath parse path for ingress. eg. example.com/org -> example.com org

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, provider string) (string, error)

Print either prints to stdout or to file/s

func PushDockerImage added in v1.0.0

func PushDockerImage(service kobject.ServiceConfig, serviceName string) error

PushDockerImage pushes docker image

Types

type EnvSort added in v1.0.0

type EnvSort []api.EnvVar

EnvSort struct

func (EnvSort) Len added in v1.0.0

func (env EnvSort) Len() int

Len returns the number of elements in the collection.

func (EnvSort) Less added in v1.0.0

func (env EnvSort) Less(i, j int) bool

Less returns whether the element with index i should sort before the element with index j.

func (EnvSort) Swap added in v1.0.0

func (env EnvSort) Swap(i, j int)

swaps the elements with indexes i and j.

type Transformer

type Transformer interface {
	// Transform converts KomposeObject to transformer specific objects.
	Transform(kobject.KomposeObject, kobject.ConvertOptions) ([]runtime.Object, 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