Documentation ¶
Index ¶
- Constants
- Variables
- func AddNewContainer(pool string, c *NodeContainerConfig) error
- func AllNodeContainersNames() ([]string, error)
- func InitializeBS(authScheme auth.Scheme, appUser string) (bool, error)
- func LoadNodeContainersForPools(name string) (map[string]NodeContainerConfig, error)
- func LoadNodeContainersForPoolsMerge(name string, merge bool) (map[string]NodeContainerConfig, error)
- func RemoveContainer(pool string, name string) error
- func UpdateContainer(pool string, c *NodeContainerConfig) error
- func UpgradeContainer(pool string, name string) error
- type NodeContainerConfig
- type NodeContainerConfigGroup
- type NodeContainerConfigGroupSlice
- type ValidationErr
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 LoadNodeContainersForPools ¶
func LoadNodeContainersForPools(name string) (map[string]NodeContainerConfig, error)
func LoadNodeContainersForPoolsMerge ¶
func LoadNodeContainersForPoolsMerge(name string, merge bool) (map[string]NodeContainerConfig, error)
func RemoveContainer ¶
func UpdateContainer ¶
func UpdateContainer(pool string, c *NodeContainerConfig) error
func UpgradeContainer ¶
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 (l NodeContainerConfigGroupSlice) Len() int
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
Click to show internal directories.
Click to hide internal directories.