configurator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateOperation  operation = "create"
	DeleteOperation  operation = "delete"
	GetOperation     operation = "get"
	ReplaceOperation operation = "replace"
)

These constants implement the operation enumeration type.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurator

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

Configurator configures a Kubernetes cluster using kubectl.

func NewConfigurator

func NewConfigurator(kubernetes util.Kubernetes) *Configurator

NewConfigurator creates a new Configurator.

func (*Configurator) Configure

func (a *Configurator) Configure(c *common.Configuration, o operation) (string, error)

Configure passes each resource in the configuration to kubectl and performs the appropriate action on it (create/delete/replace) and updates the State of the resource with the resulting status. In case of errors with a resource, Resource.State.Errors is set. and then updates the deployment with the completion status and completion time.

type DependencyMap

type DependencyMap map[string]map[string]bool

DependencyMap maps a resource name to a set of dependencies.

type Error

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

Error is an error type that captures errors from the multiple calls to kubectl made for a single configuration.

func (*Error) Error

func (e *Error) Error() string

Error returns the string value of an Error.

Jump to

Keyboard shortcuts

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