registry

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeLabel is the name of the label that indicates if image is immutable or mutable.
	TypeLabel = "com.dynatrace.type"
	// VersionLabel is the name of the label used on ActiveGate-provided images.
	VersionLabel    = "com.dynatrace.build-version"
	DigestDelimiter = "@"
)

Variables

This section is empty.

Functions

func BuildImageIDWithTagAndDigest

func BuildImageIDWithTagAndDigest(taggedRef name.Tag, digest digest.Digest) string

func PrepareTransportForDynaKube

func PrepareTransportForDynaKube(ctx context.Context, apiReader client.Reader, transport *http.Transport, dynakube *dynatracev1beta1.DynaKube) (*http.Transport, error)

PrepareTransportForDynaKube creates default http transport and add proxy or trustedCAs if any

func WithApiReader

func WithApiReader(apiReader client.Reader) func(*Client)

func WithContext

func WithContext(ctx context.Context) func(*Client)

func WithKeyChainSecret

func WithKeyChainSecret(keyChainSecret *corev1.Secret) func(*Client)

func WithTransport

func WithTransport(transport *http.Transport) func(*Client)

Types

type Client

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

func (*Client) GetImageVersion

func (c *Client) GetImageVersion(ctx context.Context, imageName string) (ImageVersion, error)

func (*Client) PullImageInfo

func (c *Client) PullImageInfo(ctx context.Context, imageName string) (*containerv1.Image, error)

type ClientBuilder

type ClientBuilder func(options ...func(*Client)) (ImageGetter, error)

type ImageGetter

type ImageGetter interface {
	GetImageVersion(ctx context.Context, imageName string) (ImageVersion, error)
	PullImageInfo(ctx context.Context, imageName string) (*containerv1.Image, error)
}

func NewClient

func NewClient(options ...func(*Client)) (ImageGetter, error)

type ImageVersion

type ImageVersion struct {
	Version string
	Digest  digest.Digest
	Type    string
}

Jump to

Keyboard shortcuts

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