Class ContainerSpecWithCapabilities

java.lang.Object
com.github.dockerjava.api.model.DockerObject
com.github.dockerjava.api.model.ContainerSpec
io.jenkins.plugins.swarmcloud.api.ContainerSpecWithCapabilities
All Implemented Interfaces:
Serializable

public class ContainerSpecWithCapabilities extends com.github.dockerjava.api.model.ContainerSpec
Extension of ContainerSpec that publishes the CapabilityAdd and CapabilityDrop fields of Docker Swarm's TaskSpec.ContainerSpec.

Required because docker-java-api 3.7.0 (the version pulled in via the Jenkins BOM) does not expose those fields on the typed model, even though Docker API 1.41+ (Docker 20.10+) supports them on the wire.

Field-level @JsonInclude(NON_NULL) keeps the new fields out of the JSON when not set; inherited fields are unaffected and serialize exactly as the parent does.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class com.github.dockerjava.api.model.ContainerSpec

    canEqual, equals, getArgs, getCommand, getConfigs, getDir, getDnsConfig, getDuration, getEnv, getGroups, getHealthCheck, getHostname, getHosts, getImage, getInit, getLabels, getMounts, getOpenStdin, getPrivileges, getReadOnly, getSecrets, getStopGracePeriod, getStopSignal, getTty, getUser, hashCode, toString, withArgs, withCommand, withConfigs, withDir, withDnsConfig, withDuration, withEnv, withGroups, withHealthCheck, withHostname, withHosts, withImage, withInit, withLabels, withMounts, withOpenStdin, withPrivileges, withReadOnly, withSecrets, withStopGracePeriod, withStopSignal, withTty, withUser

    Methods inherited from class com.github.dockerjava.api.model.DockerObject

    getRawValues

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait