bs

package
v0.0.0-...-ec75f14 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const QueueTaskName = "run-bs"

Variables

This section is empty.

Functions

func EnvListForEndpoint

func EnvListForEndpoint(dockerEndpoint, poolName string) ([]string, error)

func LoadConfig

func LoadConfig(pools []string) (*provision.ScopedConfig, error)

func RecreateContainers

func RecreateContainers(p DockerProvisioner, w io.Writer) error

RecreateContainers relaunch all bs containers in the cluster for the given DockerProvisioner, logging progress to the given writer.

It assumes that the given writer is thread safe.

func RegisterQueueTask

func RegisterQueueTask(p DockerProvisioner) error

RegisterQueueTask registers the internal bs queue task for later execution.

func SaveImage

func SaveImage(digest string) error

Types

type ClusterHook

type ClusterHook struct {
	Provisioner DockerProvisioner
}

func (*ClusterHook) BeforeCreateContainer

func (h *ClusterHook) BeforeCreateContainer(node cluster.Node) error

type DockerProvisioner

type DockerProvisioner interface {
	Cluster() *cluster.Cluster
	RegistryAuthConfig() docker.AuthConfiguration
}

type EnvSetCmd

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

func (*EnvSetCmd) Flags

func (c *EnvSetCmd) Flags() *gnuflag.FlagSet

func (*EnvSetCmd) Info

func (c *EnvSetCmd) Info() *cmd.Info

func (*EnvSetCmd) Run

func (c *EnvSetCmd) Run(context *cmd.Context, client *cmd.Client) error

type InfoCmd

type InfoCmd struct{}

func (*InfoCmd) Info

func (c *InfoCmd) Info() *cmd.Info

func (*InfoCmd) Run

func (c *InfoCmd) Run(context *cmd.Context, client *cmd.Client) error

type UpgradeCmd

type UpgradeCmd struct{}

func (*UpgradeCmd) Info

func (c *UpgradeCmd) Info() *cmd.Info

func (*UpgradeCmd) Run

func (c *UpgradeCmd) Run(context *cmd.Context, client *cmd.Client) error

Jump to

Keyboard shortcuts

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