Documentation ¶
Index ¶
- func GetCredentialsForRegistry(configJson string, registry string) (string, string, error)
- func GetECRBasicAuthToken(ecrEndpoint, username, password string) (string, error)
- func IsECREndpoint(host string) bool
- func LoadAuthForRegistry(endpoint string) (string, string, error)
- func MakeProxiedImageURL(proxyHost string, appSlug string, image string) string
- func PullSecretForRegistries(registries []string, username, password string, namespace string) (*corev1.Secret, error)
- func TestPushAccess(endpoint, username, password, org string) error
- type BearerToken
- type DockerCfgJSON
- type DockercfgAuth
- type Login
- type RegistryOptions
- type RegistryProxyInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentialsForRegistry ¶ added in v1.17.0
func GetECRBasicAuthToken ¶
func IsECREndpoint ¶
func MakeProxiedImageURL ¶
func PullSecretForRegistries ¶
func TestPushAccess ¶ added in v0.9.12
Types ¶
type BearerToken ¶
type BearerToken struct { Token string `json:"token"` AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` IssuedAt time.Time `json:"issued_at"` // contains filtered or unexported fields }
Copied from github.com/containers/image/docker Time fields aren't used
type DockerCfgJSON ¶
type DockerCfgJSON struct {
Auths map[string]DockercfgAuth `json:"auths"`
}
type DockercfgAuth ¶
type DockercfgAuth struct {
Auth string `json:"auth,omitempty"`
}
type Login ¶
func GetECRLogin ¶
type RegistryOptions ¶
type RegistryProxyInfo ¶
func ProxyEndpointFromLicense ¶
func ProxyEndpointFromLicense(license *kotsv1beta1.License) *RegistryProxyInfo
func (*RegistryProxyInfo) ToSlice ¶
func (r *RegistryProxyInfo) ToSlice() []string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.