public interface IContainer extends INameSetable
| Modifier and Type | Method and Description |
|---|---|
void |
addEnvVar(String key,
String value) |
IVolumeMount |
addVolumeMount(String name)
Add a volumemount with the given name
|
List<String> |
getCommand() |
List<String> |
getCommandArgs() |
Map<String,String> |
getEnvVars() |
DockerImageURI |
getImage() |
String |
getImagePullPolicy() |
ILifecycle |
getLifecycle() |
String |
getName() |
Set<IPort> |
getPorts() |
Set<IVolumeMount> |
getVolumeMounts() |
Set<IVolume> |
getVolumes()
Deprecated.
|
void |
setCommand(List<String> command) |
void |
setCommandArgs(List<String> args) |
void |
setEnvVars(Map<String,String> vars)
replace the env vars
|
void |
setImage(DockerImageURI tag) |
void |
setImagePullPolicy(String policy) |
void |
setLifecycle(ILifecycle lifecycle) |
void |
setPorts(Set<IPort> ports)
replaces the set of ports
|
void |
setVolumeMounts(Set<IVolumeMount> volumes) |
void |
setVolumes(Set<IVolume> volumes)
Deprecated.
|
String |
toJSONString() |
setNameString getName()
void setImage(DockerImageURI tag)
DockerImageURI getImage()
void setImagePullPolicy(String policy)
String getImagePullPolicy()
void setLifecycle(ILifecycle lifecycle)
ILifecycle getLifecycle()
@Deprecated void setVolumes(Set<IVolume> volumes)
@Deprecated Set<IVolume> getVolumes()
void setVolumeMounts(Set<IVolumeMount> volumes)
Set<IVolumeMount> getVolumeMounts()
IVolumeMount addVolumeMount(String name)
name - String toJSONString()
Copyright © 2017 Red Hat, Inc. All Rights Reserved.