Package io.fabric8.openshift.api.model
Class BinaryBuildSource
- java.lang.Object
-
- io.fabric8.openshift.api.model.BinaryBuildSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<BinaryBuildSourceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class BinaryBuildSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<BinaryBuildSourceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
BinaryBuildSource describes a binary file to be used for the Docker and Source build strategies, where the file will be extracted and used as the build source.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BinaryBuildSource()No args constructor for use in serializationBinaryBuildSource(String asFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryBuildSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAsFile()asFile indicates that the provided binary input should be considered a single file within the build input.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAsFile(String asFile)asFile indicates that the provided binary input should be considered a single file within the build input.BinaryBuildSourceBuildertoBuilder()
-
-
-
Constructor Detail
-
BinaryBuildSource
public BinaryBuildSource()
No args constructor for use in serialization
-
BinaryBuildSource
public BinaryBuildSource(String asFile)
-
-
Method Detail
-
getAsFile
public String getAsFile()
asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying "webapp.war" would place the provided binary as `/webapp.war` for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'.
-
setAsFile
public void setAsFile(String asFile)
asFile indicates that the provided binary input should be considered a single file within the build input. For example, specifying "webapp.war" would place the provided binary as `/webapp.war` for the builder. If left empty, the Docker and Source build strategies assume this file is a zip, tar, or tar.gz file and extract it as the source. The custom strategy receives this binary as standard input. This filename may not contain slashes or be '..' or '.'.
-
edit
public BinaryBuildSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<BinaryBuildSourceBuilder>
-
toBuilder
public BinaryBuildSourceBuilder toBuilder()
-
-