deploy

package
v0.0.0-...-8452b8d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Describes deployment resource and associated controller

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultDeploymentHandler

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

DefaultDeploymentRunner is the default implementation of DeploymentRunner interface.

func (*DefaultDeploymentHandler) HandleNew

func (dh *DefaultDeploymentHandler) HandleNew(deployment *deployapi.Deployment) error

Handler for a deployment in the 'new' state.

func (*DefaultDeploymentHandler) HandlePending

func (dh *DefaultDeploymentHandler) HandlePending(deployment *deployapi.Deployment) error

Handler for a deployment in the 'pending' state

func (*DefaultDeploymentHandler) HandleRunning

func (dh *DefaultDeploymentHandler) HandleRunning(deployment *deployapi.Deployment) error

Handler for a deployment in the 'running' state

type DeploymentController

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

A DeploymentController is responsible for executing Deployment objects stored in etcd

func NewDeploymentController

func NewDeploymentController(kubeClient kubeclient.Interface, osClient osclient.Interface, initialEnvironment []api.EnvVar) *DeploymentController

NewDeploymentController creates a new DeploymentController.

func (*DeploymentController) Run

func (dc *DeploymentController) Run(period time.Duration)

Run begins watching and synchronizing deployment states.

type DeploymentStateHandler

type DeploymentStateHandler interface {
	HandleNew(*deployapi.Deployment) error
	HandlePending(*deployapi.Deployment) error
	HandleRunning(*deployapi.Deployment) error
}

DeploymentStateHandler holds methods that handle the possible deployment states.

Directories

Path Synopsis
api
registry

Jump to

Keyboard shortcuts

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