registry

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

View Source
const KnativeRegistryUrl = "build.knative.dev/docker-0"

Variables

This section is empty.

Functions

func Match added in v0.0.1

func Match(parsedRegistry name.Registry, registry string) bool

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
	RepoName() string
}

type KeychainFactory

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

type RegistryUser added in v0.0.1

type RegistryUser struct {
	URL      string
	Username string
	Password string
}

func NewRegistryUser added in v0.0.1

func NewRegistryUser(url, username, password string) RegistryUser

type RemoteImage added in v0.0.1

type RemoteImage interface {
	CreatedAt() (time.Time, error)
	Digest() (string, 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 SecretKeychainFactory added in v0.0.1

type SecretKeychainFactory struct {
	SecretManager *SecretManager
}

func (*SecretKeychainFactory) KeychainForImageRef added in v0.0.1

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

type SecretManager added in v0.0.1

type SecretManager struct {
	Client corev1.CoreV1Interface
}

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