Documentation ¶
Index ¶
- Constants
- func BuildImageIDWithTagAndDigest(taggedRef name.Tag, digest digest.Digest) string
- func PrepareTransportForDynaKube(ctx context.Context, apiReader client.Reader, transport *http.Transport, ...) (*http.Transport, error)
- func WithApiReader(apiReader client.Reader) func(*Client)
- func WithContext(ctx context.Context) func(*Client)
- func WithKeyChainSecret(keyChainSecret *corev1.Secret) func(*Client)
- func WithTransport(transport *http.Transport) func(*Client)
- type Client
- type ClientBuilder
- type ImageGetter
- type ImageVersion
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 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 WithContext ¶
func WithKeyChainSecret ¶
func WithTransport ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetImageVersion ¶
func (*Client) PullImageInfo ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.