deployer

package
v0.0.0-...-16cafa9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

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

Deployer handles deploying the components to a cluster

func NewDeployer

func NewDeployer(kubeconfig *rest.Config) (*Deployer, error)

NewDeployer creates a Deployer object

func NewDeployerExporter

func NewDeployerExporter() *Deployer

NewDeployerExporter creates a Deployer object that only supports exporting

func (*Deployer) AddComponent

func (d *Deployer) AddComponent(kind api.ComponentType, obj api.DeployableComponentInterface)

AddComponent will add a component to be deployed

func (*Deployer) AddController

func (d *Deployer) AddController(name string, c api.DeployerControllerInterface)

AddController will add a custom controller that will be run after all components have been deployed.

func (*Deployer) Export

func (d *Deployer) Export() map[string]string

Export returns api string objects for all types

func (*Deployer) Run

func (d *Deployer) Run() error

Run starts the deployer and deploys all components to the cluster

func (*Deployer) StartControllers

func (d *Deployer) StartControllers(stopCh chan struct{}) map[string][]error

StartControllers will start all the configured controllers

func (*Deployer) Undeploy

func (d *Deployer) Undeploy() error

Undeploy will remove all components from the cluster

Jump to

Keyboard shortcuts

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