compose

package
v0.0.1-aliyun Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// LabelServiceType defines the type of service to be created
	LabelServiceType = "kompose.service.type"
	// LabelServiceExpose defines if the service needs to be made accessible from outside the cluster or not
	LabelServiceExpose = "kompose.service.expose"
	// LabelServiceExposeTLSSecret  provides the name of the TLS secret to use with the Kubernetes ingress controller
	LabelServiceExposeTLSSecret = "kompose.service.expose.tls-secret"
	// LabelControllerType defines the type of controller to be created
	LabelControllerType = "kompose.controller.type"

	// ServiceTypeHeadless ...
	ServiceTypeHeadless = "Headless"
)
View Source
const ANNOTATION_LOADBALANCER_ID = ANNOTATION_LOADBALANCER_PREFIX + "id"
View Source
const ANNOTATION_LOADBALANCER_PREFIX = "service.beta.kubernetes.io/alicloud-loadbalancer-"
View Source
const ANNOTATION_LOADBALANCER_PROTOCOL_PORT = ANNOTATION_LOADBALANCER_PREFIX + "protocol-port"
View Source
const DEFAULT_ROOT_DOMAIN = "alicontainer.com"
View Source
const EXT_LABEL_PREFIX = "aliyun"

Support Aliyun Extension Labels

View Source
const LABEL_AUTO_SCALING_MAX_CPU = LABEL_AUTO_SCALING_PREFIX + ".max_cpu"
View Source
const LABEL_AUTO_SCALING_MAX_INSTANCES = LABEL_AUTO_SCALING_PREFIX + ".max_instances"
View Source
const LABEL_AUTO_SCALING_MAX_INTERNET_INRATE = LABEL_AUTO_SCALING_PREFIX + ".max_internetInRate"
View Source
const LABEL_AUTO_SCALING_MAX_INTERNET_OUTRATE = LABEL_AUTO_SCALING_PREFIX + ".max_internetOutRate"
View Source
const LABEL_AUTO_SCALING_MAX_MEMORY = LABEL_AUTO_SCALING_PREFIX + ".max_memory"
View Source
const LABEL_AUTO_SCALING_MIN_CPU = LABEL_AUTO_SCALING_PREFIX + ".min_cpu"
View Source
const LABEL_AUTO_SCALING_MIN_INSTANCES = LABEL_AUTO_SCALING_PREFIX + ".min_instances"
View Source
const LABEL_AUTO_SCALING_MIN_INTERNET_INRATE = LABEL_AUTO_SCALING_PREFIX + ".min_internetInRate"
View Source
const LABEL_AUTO_SCALING_MIN_INTERNET_OUTRATE = LABEL_AUTO_SCALING_PREFIX + ".min_internetOutRate"
View Source
const LABEL_AUTO_SCALING_MIN_MEMORY = LABEL_AUTO_SCALING_PREFIX + ".min_memory"
View Source
const LABEL_AUTO_SCALING_PERIOD = LABEL_AUTO_SCALING_PREFIX + ".period"
View Source
const LABEL_AUTO_SCALING_PREFIX = EXT_LABEL_PREFIX + ".auto_scaling"

auto-scaling labels

View Source
const LABEL_AUTO_SCALING_STEP = LABEL_AUTO_SCALING_PREFIX + ".step"
View Source
const LABEL_GPU = EXT_LABEL_PREFIX + ".gpu"

gpu labels

View Source
const LABEL_MONITORING_ADDON_INFLUXDB = LABEL_MONITORING_ADDON_PREFIX + ".influxdb"
View Source
const LABEL_MONITORING_ADDON_INFLUXDB_RETENTION_POLICY = LABEL_MONITORING_ADDON_PREFIX + ".influxdb_retention_policy"
View Source
const LABEL_MONITORING_ADDON_PREFIX = LABEL_MONITORING_PREFIX + ".addon"
View Source
const LABEL_MONITORING_ADDON_PROMETHEUS = LABEL_MONITORING_ADDON_PREFIX + ".prometheus"
View Source
const LABEL_MONITORING_CONF = LABEL_MONITORING_PREFIX + ".conf"
View Source
const LABEL_MONITORING_FORMAT = LABEL_MONITORING_PREFIX + ".format"
View Source
const LABEL_MONITORING_HTTP = LABEL_MONITORING_PREFIX + ".http"
View Source
const LABEL_MONITORING_INTERVAL = LABEL_MONITORING_PREFIX + ".interval"
View Source
const LABEL_MONITORING_PREFIX = EXT_LABEL_PREFIX + ".monitoring"

monitoring labels

View Source
const LABEL_MONITORING_RELOAD = LABEL_MONITORING_PREFIX + ".reload"
View Source
const LABEL_MONITORING_SCRIPT = LABEL_MONITORING_PREFIX + ".script"
View Source
const LABEL_MONITORING_TAGS = LABEL_MONITORING_PREFIX + ".tags"
View Source
const LABEL_SERVICE_DEPENDS = EXT_LABEL_PREFIX + ".depends"
View Source
const LABEL_SERVICE_GLOBAL = EXT_LABEL_PREFIX + ".global"
View Source
const LABEL_SERVICE_LB_PORT_PREFIX = EXT_LABEL_PREFIX + ".lb.port_"
View Source
const LABEL_SERVICE_LOGS = EXT_LABEL_PREFIX + ".logs"
View Source
const LABEL_SERVICE_PROBE_CMD = EXT_LABEL_PREFIX + ".probe.cmd"
View Source
const LABEL_SERVICE_PROBE_INIT_DELAY_SECONDS = EXT_LABEL_PREFIX + ".probe.initial_delay_seconds"
View Source
const LABEL_SERVICE_PROBE_TIMEOUT_SECONDS = EXT_LABEL_PREFIX + ".probe.timeout_seconds"
View Source
const LABEL_SERVICE_PROBE_URL = EXT_LABEL_PREFIX + ".probe.url"

Probe Labels

View Source
const LABEL_SERVICE_ROUTING_EXTRA_SETTINGS = LABEL_SERVICE_ROUTING_PREFIX + ".extra_setting"
View Source
const LABEL_SERVICE_ROUTING_PORT_PREFIX = LABEL_SERVICE_ROUTING_PREFIX + ".port_"
View Source
const LABEL_SERVICE_ROUTING_PREFIX = EXT_LABEL_PREFIX + ".routing"
View Source
const LABEL_SERVICE_ROUTING_SEPARATOR = ","
View Source
const LABEL_SERVICE_ROUTING_SESSION = LABEL_SERVICE_ROUTING_PREFIX + ".session_sticky"
View Source
const LABEL_SERVICE_ROUTING_SSL_CERTS = LABEL_SERVICE_ROUTING_PREFIX + ".ssl_cert"
View Source
const LABEL_SERVICE_ROUTING_TIMEOUT_SETTINGS = LABEL_SERVICE_ROUTING_PREFIX + ".timeout_setting"
View Source
const LABEL_SERVICE_ROUTING_WEIGHT = LABEL_SERVICE_ROUTING_PREFIX + ".weight"
View Source
const LABEL_SERVICE_ROUTING_WORKER_NUMBER = LABEL_SERVICE_ROUTING_PREFIX + ".worker"
View Source
const LABEL_SERVICE_SCALE = EXT_LABEL_PREFIX + ".scale"
View Source
const LABEL_SERVICE_VIP_PORT_PREFIX = EXT_LABEL_PREFIX + ".vip.port_"
View Source
const LABEL_SLS_PREFIX = EXT_LABEL_PREFIX + ".log_store_"

sls labels

View Source
const LABEL_SLS_PROJECT = EXT_LABEL_PREFIX + ".log_project"
View Source
const LABEL_SLS_TTL_PATTERN = EXT_LABEL_PREFIX + ".log_ttl_%s"

Variables

View Source
var StdinData []byte

Functions

func GetRootDomain

func GetRootDomain() string

func ParseVols

func ParseVols(volNames []string, svcName string) ([]kobject.Volumes, error)

ParseVols parse volumes

func ReadFile

func ReadFile(fileName string) ([]byte, error)

ReadFile read data from file or stdin

func ValidDomain

func ValidDomain(domain string) (err error)

Types

type Compose

type Compose struct {
}

Compose is docker compose file loader, implements Loader interface

func (*Compose) LoadFile

func (c *Compose) LoadFile(files []string) (kobject.KomposeObject, error)

LoadFile loads a compose file into KomposeObject

type LogConfig

type LogConfig struct {
	Name          string `json:"name,omitempty"`
	ContainerPath string `json:"containerPath,omitempty"`
	FilePattern   string `json:"filePattern,omitempty"`
	Type          string `json:"type,omitempty"`
	TTL           string `json:"ttl,omitempty"`
}

type Port

type Port struct {
	FrontendPort int    `json:"frontend_port,omitempty"`
	BackendPort  int    `json:"backend_port,omitempty"`
	Protocol     string `json:"protocol,omitempty"`
}

type Routing

type Routing struct {
	VirtualHost string `json:"virtual_host,omitempty"`
	ContextRoot string `json:"context_root,omitempty"`
	Protocol    string `json:"protocol,omitempty"`
	Port        int    `json:"port,omitempty"`
}

type SlbInfo

type SlbInfo struct {
	SlbName       string `json:"slb_name, omitempty"`
	SlbId         string `json:"slb_id, omitempty"`
	FrontendPort  int    `json:"frontend_port, omitempty"`
	BackendPort   int    `json:"backend_port, omitempty"`
	Protocol      string `json:"protocol,omitempty"`
	ContainerPort int    `json:"container_port,omitempty"`
}

Jump to

Keyboard shortcuts

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