buildconfig

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST

func NewREST(registry Registry) apiserver.RESTStorage

NewREST creates a new REST for BuildConfig.

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 (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)

Create registers a given new BuildConfig instance to r.registry.

func (*REST) Delete

func (r *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)

Delete asynchronously deletes the BuildConfig specified by its id.

func (*REST) Get

func (r *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)

Get obtains the BuildConfig specified by its id.

func (*REST) List

func (r *REST) List(ctx kapi.Context, selector, fields labels.Selector) (runtime.Object, error)

List obtains a list of BuildConfigs that match selector.

func (*REST) New

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

New creates a new BuildConfig.

func (*REST) NewList added in v0.2.1

func (*REST) NewList() runtime.Object

func (*REST) Update

func (r *REST) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)

Update replaces a given BuildConfig instance with an existing instance in r.registry.

func (*REST) Watch added in v0.2.1

func (r *REST) Watch(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)

Watch begins watching for new, changed, or deleted BuildConfigs.

type Registry

type Registry interface {
	// ListBuildConfigs obtains list of buildConfigs that match a selector.
	ListBuildConfigs(ctx kapi.Context, labels labels.Selector) (*api.BuildConfigList, error)
	// GetBuildConfig retrieves a specific buildConfig.
	GetBuildConfig(ctx kapi.Context, id string) (*api.BuildConfig, error)
	// CreateBuildConfig creates a new buildConfig.
	CreateBuildConfig(ctx kapi.Context, buildConfig *api.BuildConfig) error
	// UpdateBuildConfig updates a buildConfig.
	UpdateBuildConfig(ctx kapi.Context, buildConfig *api.BuildConfig) error
	// DeleteBuildConfig deletes a buildConfig.
	DeleteBuildConfig(ctx kapi.Context, id string) error
	// WatchBuildConfigs watches buildConfigs.
	WatchBuildConfigs(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
}

Registry is an interface for things that know how to store BuildConfigs.

Jump to

Keyboard shortcuts

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