imagestreamimport

package
v3.8.19-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStrategy

func NewStrategy(registries *serverapi.AllowedRegistries, registry imageapi.RegistryHostnameRetriever) *strategy

Types

type ImporterDockerRegistryFunc

type ImporterDockerRegistryFunc func() dockerv1client.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, isClient imageclient.ImageStreamsGetter,
	transport, insecureTransport http.RoundTripper,
	clientFn ImporterDockerRegistryFunc,
	allowedImportRegistries *serverapi.AllowedRegistries,
	registryFn imageapi.RegistryHostnameRetriever,
	sarClient authorizationclient.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