kobject

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: Apache-2.0 Imports: 3 Imported by: 64

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUnsupportedKey

func CheckUnsupportedKey(service interface{})

Types

type ConvertOptions

type ConvertOptions struct {
	ToStdout               bool
	CreateD                bool
	CreateRC               bool
	CreateDS               bool
	CreateDeploymentConfig bool
	CreateChart            bool
	GenerateYaml           bool
	Replicas               int
	InputFile              string
	OutFile                string
}

type EnvVar

type EnvVar struct {
	Name  string
	Value string
}

EnvVar holds the environment variable struct of a container

type KomposeObject

type KomposeObject struct {
	ServiceConfigs map[string]ServiceConfig
}

KomposeObject holds the generic struct of Kompose transformation

type Ports

type Ports struct {
	HostPort      int32
	ContainerPort int32
	Protocol      api.Protocol
}

Ports holds the ports struct of a container

type ServiceConfig

type ServiceConfig struct {
	ContainerName string
	Image         string
	Environment   []EnvVar
	Port          []Ports
	Command       []string
	WorkingDir    string
	Args          []string
	Volumes       []string
	Network       []string
	Labels        map[string]string
	Annotations   map[string]string
	CPUSet        string
	CPUShares     int64
	CPUQuota      int64
	CapAdd        []string
	CapDrop       []string
	Expose        []string
	Privileged    bool
	Restart       string
	User          string
}

ServiceConfig holds the basic struct of a container

Jump to

Keyboard shortcuts

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