Package io.jenkins.plugins.swarmcloud
Class SwarmSecretConfig
java.lang.Object
hudson.model.AbstractDescribableImpl<SwarmSecretConfig>
io.jenkins.plugins.swarmcloud.SwarmSecretConfig
- All Implemented Interfaces:
Describable<SwarmSecretConfig>
Configuration for Docker Swarm Secrets to be mounted in agent containers.
Supports both external secrets (pre-created in Swarm) and referencing
Jenkins credentials.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the effective file name.Returns the effective target path for the secret.Returns the file mode as a Long, or null if not specified.getGid()getUid()voidsetCredentialsId(String credentialsId) voidsetFileMode(String fileMode) voidsetFileName(String fileName) voidvoidsetTargetPath(String targetPath) voidbooleanChecks if this secret should be created from Jenkins credentials.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
SwarmSecretConfig
-
-
Method Details
-
getSecretName
-
getTargetPath
-
setTargetPath
-
getFileName
-
setFileName
-
getFileMode
-
setFileMode
-
getUid
-
setUid
-
getGid
-
setGid
-
getCredentialsId
-
setCredentialsId
-
getEffectiveTargetPath
Returns the effective target path for the secret. -
getEffectiveFileName
Returns the effective file name. -
getFileModeAsLong
Returns the file mode as a Long, or null if not specified. -
usesCredentials
public boolean usesCredentials()Checks if this secret should be created from Jenkins credentials.
-