deployconfig

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST

func NewREST(registry Registry) apiserver.RESTStorage

Types

type REST

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

REST is an implementation of RESTStorage for the api server.

func (*REST) Create

func (s *REST) Create(obj runtime.Object) (<-chan runtime.Object, error)

Create registers a given new DeploymentConfig instance to s.registry.

func (*REST) Delete

func (s *REST) Delete(id string) (<-chan runtime.Object, error)

Delete asynchronously deletes the DeploymentConfig specified by its id.

func (*REST) Get

func (s *REST) Get(id string) (runtime.Object, error)

Get obtains the DeploymentConfig specified by its id.

func (*REST) List

func (s *REST) List(selector, fields labels.Selector) (runtime.Object, error)

List obtains a list of DeploymentConfigs that match selector.

func (*REST) New

func (s *REST) New() runtime.Object

New creates a new DeploymentConfig for use with Create and Update

func (*REST) Update

func (s *REST) Update(obj runtime.Object) (<-chan runtime.Object, error)

Update replaces a given DeploymentConfig instance with an existing instance in s.registry.

type Registry

type Registry interface {
	ListDeploymentConfigs(selector labels.Selector) (*api.DeploymentConfigList, error)
	GetDeploymentConfig(id string) (*api.DeploymentConfig, error)
	CreateDeploymentConfig(deploymentConfig *api.DeploymentConfig) error
	UpdateDeploymentConfig(deploymentConfig *api.DeploymentConfig) error
	DeleteDeploymentConfig(id string) error
}

Registry is an interface for things that know how to store DeploymentConfigs

Jump to

Keyboard shortcuts

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