Documentation ¶
Index ¶
- func ConfigAnnotations(service kobject.ServiceConfig) map[string]string
- func ConfigLabels(name string) map[string]string
- func CreateOutFile(out string) *os.File
- func ParseVolume(volume string) (name, host, container, mode string, err error)
- func Print(name, trailing string, data []byte, toStdout, generateYaml bool, f *os.File) string
- func RandStringBytes(n int) string
- func TransformData(obj runtime.Object, GenerateYaml bool) ([]byte, error)
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigAnnotations ¶
func ConfigAnnotations(service kobject.ServiceConfig) map[string]string
Configure annotations
func CreateOutFile ¶
Create the file to write to if --out is specified
func ParseVolume ¶
parseVolume parse a given volume, which might be [name:][host:]container[:access_mode]
func RandStringBytes ¶
RandStringBytes generates randomly n-character string
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 }
Click to show internal directories.
Click to hide internal directories.