registry

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImagePullSecretName = "jse-gcr-creds"
)

Variables

This section is empty.

Functions

func DockerConfigJSON added in v0.1.12

func DockerConfigJSON(keyData string) ([]byte, error)

DockerConfifJSON returns a valid docker config JSON for the given JSON Google Service Account key data

func FetchOrLoadJetstackSecureEnterpriseRegistryCredentials

func FetchOrLoadJetstackSecureEnterpriseRegistryCredentials(ctx context.Context, httpClient subscription.HTTPClient) ([]byte, error)

FetchOrLoadJetstackSecureEnterpriseRegistryCredentials will check of there are a local copy of registry credentials. If there is, then these are returned, if not, then a new set is fetched and stashed in the jsctl config dir specified

func ImagePullSecret added in v0.1.12

func ImagePullSecret(keyData string) (*corev1.Secret, error)

ImagePullSecret returns a Kubernetes Secret resource that can be used to pull images from the Jetstack Secure The keyData parameter should contain the JSON Google Service account to use in the secret.

func PathJetstackSecureEnterpriseRegistry added in v0.1.12

func PathJetstackSecureEnterpriseRegistry(ctx context.Context) (string, error)

PathJetstackSecureEnterpriseRegistry will return the path where the credentials for the registry are located

func StatusJetstackSecureEnterpriseRegistry

func StatusJetstackSecureEnterpriseRegistry(ctx context.Context) (string, error)

StatusJetstackSecureEnterpriseRegistry will return the status of the registry credentials for the Jetstack Secure Enterprise registry stashed to disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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