model/Device.java

docker-java · docker-java-api/src/main/java/com/github/dockerjava/api/model/Device.java · java · Apache-2.0
infra

Represents a Docker device mapping for container access to host devices. Use to configure device access permissions and paths when running containers.

// Source: https://github.com/docker-java/docker-java | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package com.github.dockerjava.api.model;

import static java.util.Objects.requireNonNull;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.annotation.Nonnull;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;

@EqualsAndHashCode
@ToString
public class Device extends DockerObject implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty("CgroupPermissions")
    private String cGroupPermissions = "";

    @J

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key