| 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(String registry) |
Authorization |
DockerConfigCredentialRetriever.retrieve() |
Authorization |
DockerCredentialHelper.retrieve()
Retrieves the Docker credentials by calling the corresponding CLI.
|
| Modifier and Type | Method and Description |
|---|---|
static RegistryCredentials |
RegistryCredentials.of(String registry,
String credentialSource,
Authorization authorization)
Instantiates with credentials for a single registry.
|
| Modifier and Type | Method and Description |
|---|---|
static RegistryCredentials |
RegistryCredentials.from(String credentialSource,
Map<String,Authorization> registryCredentialMap)
Instantiates from a credential source and a map of registry credentials.
|
Copyright © 2018. All rights reserved.