imagerepository

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST

func NewREST(isr imagestream.Registry) (*REST, *StatusREST)

Types

type REST

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

func (*REST) Create

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

Create creates a image repository based on a specification.

func (*REST) Delete

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

Delete deletes an existing image repository specified by its ID.

func (*REST) Get

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

Get gets a specific image repository specified by its ID.

func (*REST) List

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

List obtains a list of image repositories with labels that match selector.

func (*REST) New

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

New returns a new object

func (*REST) NewList added in v0.2.1

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

NewList returns a new list object

func (*REST) Update

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

Update changes a image repository specification.

func (*REST) Watch

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

Watch begins watching for new, changed, or deleted image repositories.

type Registry

type Registry interface {
	// ListImageRepositories obtains a list of image repositories that match a selector.
	ListImageRepositories(ctx kapi.Context, selector labels.Selector) (*api.ImageRepositoryList, error)
	// GetImageRepository retrieves a specific image repository.
	GetImageRepository(ctx kapi.Context, id string) (*api.ImageRepository, error)
	// CreateImageRepository creates a new image repository.
	CreateImageRepository(ctx kapi.Context, repo *api.ImageRepository) error
	// UpdateImageRepository updates an image repository.
	UpdateImageRepository(ctx kapi.Context, repo *api.ImageRepository) error
	// UpdateImageRepository updates an image repository's status.
	UpdateImageRepositoryStatus(ctx kapi.Context, repo *api.ImageRepository) error
	// DeleteImageRepository deletes an image repository.
	DeleteImageRepository(ctx kapi.Context, id string) error
	// WatchImageRepositories watches for new/changed/deleted image repositories.
	WatchImageRepositories(ctx kapi.Context, label labels.Selector, field fields.Selector, resourceVersion string) (watch.Interface, error)
}

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

func NewRegistry added in v0.4.2

func NewRegistry(s Storage, status rest.Updater) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type StatusREST added in v0.4.3

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

StatusREST implements the REST endpoint for changing the status of an image repository.

func (*StatusREST) New added in v0.4.3

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

func (*StatusREST) Update added in v0.4.3

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

Update alters the status subset of an object.

type Storage added in v0.4.2

type Storage interface {
	rest.GracefulDeleter
	rest.Lister
	rest.Getter
	rest.Watcher

	Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
	Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)
}

Storage is an interface for a standard REST Storage backend

Jump to

Keyboard shortcuts

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