imagerepositorymapping

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = imageRepositoryMappingStrategy{kapi.Scheme, kapi.SimpleNameGenerator}

Strategy is the default logic that applies when creating ImageRepositoryMapping objects via the REST API.

Functions

This section is empty.

Types

type REST

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

REST implements the RESTStorage interface in terms of an image registry and image repository registry. It only supports the Create method and is used to simplify adding a new Image and tag to an ImageRepository.

func NewREST

func NewREST(imageRegistry image.Registry, imageRepositoryRegistry imagerepository.Registry) *REST

NewREST returns a new REST.

func (*REST) Create

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

Create registers a new image (if it doesn't exist) and updates the specified ImageRepository's tags.

func (*REST) New

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

New returns a new ImageRepositoryMapping for use with Create.

Jump to

Keyboard shortcuts

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