registry

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 21 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, metadataDir string) error

type ImageClient

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

type KeychainFactory

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

type Metadata added in v0.13.0

type Metadata struct {
	Image string `toml:"image"`
}

type Project added in v0.13.0

type Project struct {
	Source Source `toml:"source"`
}

type Resolver

type Resolver struct {
}

func (*Resolver) CanResolve

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

func (*Resolver) Resolve

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

type Source added in v0.13.0

type Source struct {
	Type     string   `toml:"type"`
	Metadata Metadata `toml:"metadata"`
	Version  Version  `toml:"version"`
}

type Version added in v0.13.0

type Version struct {
	Digest string `toml:"digest"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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