Documentation ¶
Index ¶
- Constants
- func BuildDockerImage(service kobject.ServiceConfig, name string, relativePath string) error
- func ConfigAnnotations(service kobject.ServiceConfig) map[string]string
- func ConfigLabels(name string) map[string]string
- func CreateOutFile(out string) (*os.File, error)
- func GetComposeFileDir(inputFiles []string) (string, error)
- func ParseVolume(volume string) (name, host, container, mode string, err error)
- func Print(name, path string, trailing string, data []byte, toStdout, generateJSON bool, ...) (string, error)
- func PushDockerImage(service kobject.ServiceConfig, serviceName string) error
- type EnvSort
- type Transformer
Constants ¶
View Source
const Selector = "io.kompose.service"
Selector used as labels and selector
Variables ¶
This section is empty.
Functions ¶
func BuildDockerImage ¶
func BuildDockerImage(service kobject.ServiceConfig, name string, relativePath string) error
BuildDockerImage builds docker image
func ConfigAnnotations ¶
func ConfigAnnotations(service kobject.ServiceConfig) map[string]string
ConfigAnnotations configures annotations
func CreateOutFile ¶
CreateOutFile creates the file to write to if --out is specified
func GetComposeFileDir ¶
GetComposeFileDir returns compose file directory
func ParseVolume ¶
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 ¶
func PushDockerImage(service kobject.ServiceConfig, serviceName string) error
PushDockerImage pushes docker image
Types ¶
type EnvSort ¶
EnvSort struct
type Transformer ¶
type Transformer interface { // Transform converts KomposeObject to transformer specific objects. Transform(kobject.KomposeObject, kobject.ConvertOptions) ([]runtime.Object, error) // 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
Click to show internal directories.
Click to hide internal directories.