v0.0.1 Latest Latest

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

Go to latest
Published: Nov 5, 2014 License: Apache-2.0 Imports: 10 Imported by: 0




This section is empty.


This section is empty.


func NewREST

func NewREST(registry Registry) apiserver.RESTStorage

NewREST creates a new REST for BuildConfig.


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) (<-chan 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) (<-chan 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) Update

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

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

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

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