| Package | Description |
|---|---|
| com.google.cloud.tools.jib.http | |
| com.google.cloud.tools.jib.registry | |
| com.google.cloud.tools.jib.registry.credentials |
| Modifier and Type | Method and Description |
|---|---|
static Authorization |
Authorizations.withBasicCredentials(String username,
String secret)
Creates an
Authorization with a Basic credentials. |
static Authorization |
Authorizations.withBasicToken(String token)
Creates an
Authorization with a base64-encoded username:password string. |
static Authorization |
Authorizations.withBearerToken(String token)
Creates an
Authorization with a Bearer token. |
| Modifier and Type | Method and Description |
|---|---|
Request.Builder |
Request.Builder.setAuthorization(Authorization authorization)
Sets the
Authorization header. |
| Modifier and Type | Method and Description |
|---|---|
Authorization |
RegistryAuthenticator.authenticatePull()
Authenticates permissions to pull.
|
Authorization |
RegistryAuthenticator.authenticatePush()
Authenticates permission to pull and push.
|
| Modifier and Type | Method and Description |
|---|---|
RegistryAuthenticator |
RegistryAuthenticator.setAuthorization(Authorization authorization)
Sets an
Authorization header to authenticate with. |
| Constructor and Description |
|---|
RegistryClient(Authorization authorization,
String serverUrl,
String imageName) |
| Modifier and Type | Method and Description |
|---|---|
Authorization |
RegistryCredentials.getAuthorization() |
Authorization |
DockerCredentialHelper.retrieve()
Retrieves the Docker credentials by calling the corresponding CLI.
|
Authorization |
DockerConfigCredentialRetriever.retrieve() |
| Constructor and Description |
|---|
RegistryCredentials(String credentialSource,
Authorization authorization) |
Copyright © 2018. All rights reserved.