imagestreamimport

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 34 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStrategy

func NewStrategy(rw whitelist.RegistryWhitelister) *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,
	isV1Client imageclientv1.ImageStreamsGetter,
	transport, insecureTransport http.RoundTripper,
	clientFn ImporterDockerRegistryFunc,
	registryWhitelister whitelist.RegistryWhitelister,
	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 context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, _ bool) (runtime.Object, error)

func (*REST) NamespaceScoped

func (s *REST) NamespaceScoped() bool

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