imagestreamimport

package
v3.7.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStrategy

func NewStrategy(registries *serverapi.AllowedRegistries, registryFn imageapi.DefaultRegistryFunc) *strategy

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,
	allowedImportRegistries *serverapi.AllowedRegistries,
	registryFn imageapi.DefaultRegistryFunc,
	sarClient client.SubjectAccessReviewInterface,
) *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 apirequest.Context, obj runtime.Object, _ bool) (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