Documentation ¶
Index ¶
- Constants
- func DockerConfigJSON(keyData string) ([]byte, error)
- func FetchOrLoadJetstackSecureEnterpriseRegistryCredentials(ctx context.Context, httpClient subscription.HTTPClient) ([]byte, error)
- func ImagePullSecret(keyData string) (*corev1.Secret, error)
- func PathJetstackSecureEnterpriseRegistry(ctx context.Context) (string, error)
- func StatusJetstackSecureEnterpriseRegistry(ctx context.Context) (string, error)
Constants ¶
View Source
const (
ImagePullSecretName = "jse-gcr-creds"
)
Variables ¶
This section is empty.
Functions ¶
func DockerConfigJSON ¶ added in v0.1.12
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
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
PathJetstackSecureEnterpriseRegistry will return the path where the credentials for the registry are located
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.