registry

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ContentTypeLabelKey string = "source.contenttype.kpack.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
}

func (*Client) Fetch

func (t *Client) Fetch(keychain authn.Keychain, repoName string) (v1.Image, string, error)

func (*Client) Save

func (t *Client) Save(keychain authn.Keychain, tag string, image v1.Image) (string, error)

type Fetcher

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

func (*Fetcher) Fetch

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

type ImageClient

type ImageClient interface {
	Fetch(keychain authn.Keychain, repoName string) (v1.Image, string, error)
}

type KeychainFactory

type KeychainFactory interface {
	KeychainForSecretRef(SecretRef) (authn.Keychain, 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

Jump to

Keyboard shortcuts

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