registry

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoAuthImageRef added in v0.0.1

func NewNoAuthImageRef(repoName string) *noAuthImageRef

Types

type ImageFactory added in v0.0.1

type ImageFactory struct {
	KeychainFactory KeychainFactory
}

func (*ImageFactory) NewRemote added in v0.0.1

func (f *ImageFactory) NewRemote(imageRef ImageRef) (RemoteImage, error)

type ImageRef added in v0.0.1

type ImageRef interface {
	ServiceAccount() string
	Namespace() string
	Tag() string
	HasSecret() bool
	SecretName() string
}

type KeychainFactory

type KeychainFactory interface {
	KeychainForImageRef(ImageRef) authn.Keychain
}

type RemoteImage added in v0.0.1

type RemoteImage interface {
	CreatedAt() (time.Time, error)
	Identifier() (imgutil.Identifier, error)
	Label(labelName string) (string, error)
	Env(key string) (string, error)
}

type RemoteImageFactory added in v0.0.1

type RemoteImageFactory interface {
	NewRemote(imageRef ImageRef) (RemoteImage, error)
}

type Resolver

type Resolver struct {
}

func (*Resolver) CanResolve

func (*Resolver) CanResolve(sourceResolver *v1alpha1.SourceResolver) bool

func (*Resolver) Resolve

func (*Resolver) Resolve(sourceResolver *v1alpha1.SourceResolver) (v1alpha1.ResolvedSourceConfig, error)

type SecretKeychainFactory added in v0.0.1

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

func NewSecretKeychainFactory added in v0.0.2

func NewSecretKeychainFactory(client k8sclient.Interface) *SecretKeychainFactory

func (*SecretKeychainFactory) KeychainForImageRef added in v0.0.1

func (f *SecretKeychainFactory) KeychainForImageRef(ref ImageRef) authn.Keychain

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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