public class DockerSpec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DockerSpec.DockerRegistrySpec
Encapsulates Docker registry authentication configuration options.
|
Constructor and Description |
---|
DockerSpec() |
Modifier and Type | Method and Description |
---|---|
void |
builderRegistry(Action<DockerSpec.DockerRegistrySpec> action)
Customizes the
DockerSpec.DockerRegistrySpec that configures authentication to the
builder registry. |
void |
builderRegistry(groovy.lang.Closure<?> closure)
Customizes the
DockerSpec.DockerRegistrySpec that configures authentication to the
builder registry. |
DockerSpec.DockerRegistrySpec |
getBuilderRegistry()
Returns the
DockerSpec.DockerRegistrySpec that configures authentication to the
builder registry. |
String |
getCertPath() |
String |
getHost() |
DockerSpec.DockerRegistrySpec |
getPublishRegistry()
Returns the
DockerSpec.DockerRegistrySpec that configures authentication to the
publishing registry. |
Boolean |
isBindHostToBuilder() |
Boolean |
isTlsVerify() |
void |
publishRegistry(Action<DockerSpec.DockerRegistrySpec> action)
Customizes the
DockerSpec.DockerRegistrySpec that configures authentication to the
publishing registry. |
void |
publishRegistry(groovy.lang.Closure<?> closure)
Customizes the
DockerSpec.DockerRegistrySpec that configures authentication to the
publishing registry. |
void |
setBindHostToBuilder(boolean use) |
void |
setCertPath(String certPath) |
void |
setHost(String host) |
void |
setTlsVerify(boolean tlsVerify) |
public void setHost(String host)
public void setTlsVerify(boolean tlsVerify)
public void setCertPath(String certPath)
public void setBindHostToBuilder(boolean use)
public DockerSpec.DockerRegistrySpec getBuilderRegistry()
DockerSpec.DockerRegistrySpec
that configures authentication to the
builder registry.public void builderRegistry(Action<DockerSpec.DockerRegistrySpec> action)
DockerSpec.DockerRegistrySpec
that configures authentication to the
builder registry.action
- the action to applypublic void builderRegistry(groovy.lang.Closure<?> closure)
DockerSpec.DockerRegistrySpec
that configures authentication to the
builder registry.closure
- the closure to applypublic DockerSpec.DockerRegistrySpec getPublishRegistry()
DockerSpec.DockerRegistrySpec
that configures authentication to the
publishing registry.public void publishRegistry(Action<DockerSpec.DockerRegistrySpec> action)
DockerSpec.DockerRegistrySpec
that configures authentication to the
publishing registry.action
- the action to applypublic void publishRegistry(groovy.lang.Closure<?> closure)
DockerSpec.DockerRegistrySpec
that configures authentication to the
publishing registry.closure
- the closure to apply