nodecontainer

package
v0.0.0-...-9451de5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BsDefaultName = "big-sibling"
)

Variables

View Source
var (
	ErrNodeContainerNotFound = errors.New("node container not found")
	ErrNodeContainerNoName   = ValidationErr{/* contains filtered or unexported fields */}
)

Functions

func AddNewContainer

func AddNewContainer(pool string, c *NodeContainerConfig) error

func AllNodeContainersNames

func AllNodeContainersNames() ([]string, error)

func InitializeBS

func InitializeBS(authScheme auth.Scheme, appUser string) (bool, error)

func LoadNodeContainersForPools

func LoadNodeContainersForPools(name string) (map[string]NodeContainerConfig, error)

func LoadNodeContainersForPoolsMerge

func LoadNodeContainersForPoolsMerge(name string, merge bool) (map[string]NodeContainerConfig, error)

func RemoveContainer

func RemoveContainer(pool string, name string) error

func UpdateContainer

func UpdateContainer(pool string, c *NodeContainerConfig) error

func UpgradeContainer

func UpgradeContainer(pool string, name string) error

Types

type NodeContainerConfig

type NodeContainerConfig struct {
	Name        string
	PinnedImage string
	Disabled    *bool
	Config      docker.Config
	HostConfig  docker.HostConfig
}

func LoadNodeContainer

func LoadNodeContainer(pool string, name string) (*NodeContainerConfig, error)

func (*NodeContainerConfig) EnvMap

func (c *NodeContainerConfig) EnvMap() map[string]string

func (*NodeContainerConfig) Image

func (c *NodeContainerConfig) Image() string

func (*NodeContainerConfig) PinImageIfNeeded

func (c *NodeContainerConfig) PinImageIfNeeded(image, digest, pool string) error

func (*NodeContainerConfig) Valid

func (c *NodeContainerConfig) Valid() bool

type NodeContainerConfigGroup

type NodeContainerConfigGroup struct {
	Name        string
	ConfigPools map[string]NodeContainerConfig
}

func AllNodeContainers

func AllNodeContainers() ([]NodeContainerConfigGroup, error)

type NodeContainerConfigGroupSlice

type NodeContainerConfigGroupSlice []NodeContainerConfigGroup

func (NodeContainerConfigGroupSlice) Len

func (NodeContainerConfigGroupSlice) Less

func (l NodeContainerConfigGroupSlice) Less(i, j int) bool

func (NodeContainerConfigGroupSlice) Swap

func (l NodeContainerConfigGroupSlice) Swap(i, j int)

type ValidationErr

type ValidationErr struct {
	// contains filtered or unexported fields
}

func (ValidationErr) Error

func (n ValidationErr) Error() string

Jump to

Keyboard shortcuts

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