class DockerConfigTemplate extends JsonTemplate
Template for a Docker config file.
Example:
{
"auths": {
"registry": {
"auth": "username:password in base64"
,
"anotherregistry": {},
...
},
"credsStore": "credential helper name",
"credHelpers": {
"registry": "credential helper name",
"anotherregistry": "another credential helper name",
...
}
}
}
If an auth is defined for a registry, that is a valid Basic authorization to use
for that registry.
If credsStore is defined, is a credential helper that stores authorizations for all
registries listed under auths.
Each entry in credHelpers is a mapping from a registry to a credential helper that
stores the authorization for that registry.
- See also
<a href="https://www.projectatomic.io/blog/2016/03/docker-credentials-store/">https://www.projectatomic.io/blog/2016/03/docker-credentials-store/
- Alphabetic
- By Inheritance
- DockerConfigTemplate
- JsonTemplate
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DockerConfigTemplate()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAuthFor(registry: String): String
Returns the base64-encoded
Basicauthorization forregistry, ornullif none exists.Returns the base64-encoded
Basicauthorization forregistry, ornullif none exists. The order of lookup preference:- Exact registry name
- https:// + registry name
- registry name + / + arbitrary suffix
- https:// + registry name + / arbitrary suffix
- registry
the registry to get the authorization for
- returns
the base64-encoded
Basicauthorization forregistry, ornullif none exists
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCredentialHelperFor(registry: String): String
Returns
credsStoreorcredHelpersfor the givenregistry.Returns
credsStoreorcredHelpersfor the givenregistry. If there exists a matching registry entry inauths, returnscredStore; otherwise, a matching entry incredHelpersis returned based on the following lookup order:- Exact registry name
- https:// + registry name
- registry name + / + arbitrary suffix
- https:// + registry name + / + arbitrary suffix
- registry
the registry to get the credential helpers for
- returns
credsStoreifregistryis present inauths; otherwise, searchescredHelpers; otherwise,nullif not found
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )