registry

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	Logger   *log.Logger
	Keychain authn.Keychain
}

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(dir, registryImage string) error

type GoContainerRegistryImage added in v0.0.4

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

func NewGoContainerRegistryImage added in v0.0.4

func NewGoContainerRegistryImage(repoName string, keychain authn.Keychain) (*GoContainerRegistryImage, error)

func (*GoContainerRegistryImage) CreatedAt added in v0.0.4

func (i *GoContainerRegistryImage) CreatedAt() (time.Time, error)

func (*GoContainerRegistryImage) Env added in v0.0.4

func (*GoContainerRegistryImage) Identifier added in v0.0.4

func (i *GoContainerRegistryImage) Identifier() (string, error)

func (*GoContainerRegistryImage) Label added in v0.0.4

func (i *GoContainerRegistryImage) Label(key string) (string, error)

type ImageFactory added in v0.0.1

type ImageFactory struct {
	KeychainFactory KeychainFactory
}

func (*ImageFactory) NewRemote added in v0.0.1

func (f *ImageFactory) NewRemote(image string, secretRef SecretRef) (RemoteImage, error)

type KeychainFactory

type KeychainFactory interface {
	KeychainForSecretRef(SecretRef) (authn.Keychain, error)
}

type RemoteImage added in v0.0.1

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

type RemoteImageFactory added in v0.0.1

type RemoteImageFactory interface {
	NewRemote(image string, secretRef SecretRef) (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 SecretRef

type SecretRef struct {
	ServiceAccount   string
	Namespace        string
	ImagePullSecrets []v1.LocalObjectReference
}

func (SecretRef) IsNamespaced

func (s SecretRef) IsNamespaced() bool

func (SecretRef) ServiceAccountOrDefault

func (s SecretRef) ServiceAccountOrDefault() string

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