deployment

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment interface {
	Init() error
	Create(deploySpec Spec) (Details, error)
	Update(deploySpec Spec) (Details, error)
	CreateOrUpdate(deploySpec Spec) (Details, error)
	Delete(name string) error
	ListAll(filters ListFilters) ([]Details, error)
	ListByName(name string) (Details, error)
	LogsByName(name string, options types.FunctionContainerLogOptions) (string, error)
	DeploymentType() string
}

Deployment deployment

type Details

type Details struct {
	ID          string
	Name        string
	Dockerimage string
	Replicas    Replicas
	Envkeys     map[string]string
	Host        string
	PortConfigs []PortConfig
	Pods        []Pod
	Status      string
}

Details about deployment details

type ListFilters

type ListFilters map[string]string

ListFilters list filters

type Pod added in v0.1.3

type Pod struct {
	Name string
}

Pod pod spec

type Port

type Port int

Port outside exposed port

type PortConfig

type PortConfig struct {
	Name       string
	Protocol   PortProtocol
	Port       Port //expose port
	TargetPort Port //container port
}

PortConfig portConfig

type PortProtocol

type PortProtocol string

PortProtocol port protocol

type Replicas

type Replicas int

Replicas replicas type

type Spec

type Spec struct {
	Name        string
	Dockerimage string
	Replicas    Replicas
	Envkeys     map[string]string
	PortConfigs []PortConfig
}

Spec deployment spec

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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