imagestreamimport

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = &strategy{kapi.Scheme}

Functions

This section is empty.

Types

type ImporterDockerRegistryFunc

type ImporterDockerRegistryFunc func() dockerregistry.Client

ImporterDockerRegistryFunc returns an instance of a docker client that should be used per invocation of import, may be nil if no legacy import capability is required.

type ImporterFunc

type ImporterFunc func(r importer.RepositoryRetriever) importer.Interface

ImporterFunc returns an instance of the importer that should be used per invocation.

type REST

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

REST implements the RESTStorage interface for ImageStreamImport

func NewREST

func NewREST(importFn ImporterFunc, streams imagestream.Registry, internalStreams rest.CreaterUpdater,
	images rest.Creater, secrets client.ImageStreamSecretsNamespacer,
	transport, insecureTransport http.RoundTripper,
	clientFn ImporterDockerRegistryFunc,
) *REST

NewREST returns a REST storage implementation that handles importing images. The clientFn argument is optional if v1 Docker Registry importing is not required. Insecure transport is optional, and both transports should not include client certs unless you wish to allow the entire cluster to import using those certs.

func (*REST) Create

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

func (*REST) New

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

New is only implemented to make REST implement RESTStorage

Jump to

Keyboard shortcuts

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