...

Package dockerpre012

import "github.com/openshift/api/image/dockerpre012"
Overview
Index

Overview ▾

Package dockerpre012 is the dockerpre012 version of the API.

Constants

const (
    GroupName       = "image.openshift.io"
    LegacyGroupName = ""
)

Variables

var (
    GroupVersion             = schema.GroupVersion{Group: GroupName, Version: "pre012"}
    LegacySchemeGroupVersion = schema.GroupVersion{Group: LegacyGroupName, Version: "pre012"}

    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

    LegacySchemeBuilder    = runtime.NewSchemeBuilder(addLegacyKnownTypes)
    AddToSchemeInCoreGroup = LegacySchemeBuilder.AddToScheme

    // Install is a function which adds this version to a scheme
    Install = SchemeBuilder.AddToScheme

    // SchemeGroupVersion generated code relies on this name
    // Deprecated
    SchemeGroupVersion = GroupVersion
    // AddToScheme exists solely to keep the old generators creating valid code
    // DEPRECATED
    AddToScheme = SchemeBuilder.AddToScheme
)

type Config

Config is the list of configuration options used when creating a container. Config does not contain the options that are specific to starting a container on a given host. Those are contained in HostConfig Exists only for legacy conversion, copy of type from fsouza/go-dockerclient

type Config struct {
    Hostname          string              `json:"Hostname,omitempty" yaml:"Hostname,omitempty"`
    Domainname        string              `json:"Domainname,omitempty" yaml:"Domainname,omitempty"`
    User              string              `json:"User,omitempty" yaml:"User,omitempty"`
    Memory            int64               `json:"Memory,omitempty" yaml:"Memory,omitempty"`
    MemorySwap        int64               `json:"MemorySwap,omitempty" yaml:"MemorySwap,omitempty"`
    MemoryReservation int64               `json:"MemoryReservation,omitempty" yaml:"MemoryReservation,omitempty"`
    KernelMemory      int64               `json:"KernelMemory,omitempty" yaml:"KernelMemory,omitempty"`
    PidsLimit         int64               `json:"PidsLimit,omitempty" yaml:"PidsLimit,omitempty"`
    CPUShares         int64               `json:"CpuShares,omitempty" yaml:"CpuShares,omitempty"`
    CPUSet            string              `json:"Cpuset,omitempty" yaml:"Cpuset,omitempty"`
    AttachStdin       bool                `json:"AttachStdin,omitempty" yaml:"AttachStdin,omitempty"`
    AttachStdout      bool                `json:"AttachStdout,omitempty" yaml:"AttachStdout,omitempty"`
    AttachStderr      bool                `json:"AttachStderr,omitempty" yaml:"AttachStderr,omitempty"`
    PortSpecs         []string            `json:"PortSpecs,omitempty" yaml:"PortSpecs,omitempty"`
    ExposedPorts      map[Port]struct{}   `json:"ExposedPorts,omitempty" yaml:"ExposedPorts,omitempty"`
    StopSignal        string              `json:"StopSignal,omitempty" yaml:"StopSignal,omitempty"`
    Tty               bool                `json:"Tty,omitempty" yaml:"Tty,omitempty"`
    OpenStdin         bool                `json:"OpenStdin,omitempty" yaml:"OpenStdin,omitempty"`
    StdinOnce         bool                `json:"StdinOnce,omitempty" yaml:"StdinOnce,omitempty"`
    Env               []string            `json:"Env,omitempty" yaml:"Env,omitempty"`
    Cmd               []string            `json:"Cmd" yaml:"Cmd"`
    DNS               []string            `json:"Dns,omitempty" yaml:"Dns,omitempty"` // For Docker API v1.9 and below only
    Image             string              `json:"Image,omitempty" yaml:"Image,omitempty"`
    Volumes           map[string]struct{} `json:"Volumes,omitempty" yaml:"Volumes,omitempty"`
    VolumeDriver      string              `json:"VolumeDriver,omitempty" yaml:"VolumeDriver,omitempty"`
    VolumesFrom       string              `json:"VolumesFrom,omitempty" yaml:"VolumesFrom,omitempty"`
    WorkingDir        string              `json:"WorkingDir,omitempty" yaml:"WorkingDir,omitempty"`
    MacAddress        string              `json:"MacAddress,omitempty" yaml:"MacAddress,omitempty"`
    Entrypoint        []string            `json:"Entrypoint" yaml:"Entrypoint"`
    NetworkDisabled   bool                `json:"NetworkDisabled,omitempty" yaml:"NetworkDisabled,omitempty"`
    SecurityOpts      []string            `json:"SecurityOpts,omitempty" yaml:"SecurityOpts,omitempty"`
    OnBuild           []string            `json:"OnBuild,omitempty" yaml:"OnBuild,omitempty"`
    Mounts            []Mount             `json:"Mounts,omitempty" yaml:"Mounts,omitempty"`
    Labels            map[string]string   `json:"Labels,omitempty" yaml:"Labels,omitempty"`
}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Config) SwaggerDoc

func (Config) SwaggerDoc() map[string]string

type DockerConfig

DockerConfig is the list of configuration options used when creating a container.

type DockerConfig struct {
    Hostname        string              `json:"Hostname,omitempty"`
    Domainname      string              `json:"Domainname,omitempty"`
    User            string              `json:"User,omitempty"`
    Memory          int64               `json:"Memory,omitempty"`
    MemorySwap      int64               `json:"MemorySwap,omitempty"`
    CPUShares       int64               `json:"CpuShares,omitempty"`
    CPUSet          string              `json:"Cpuset,omitempty"`
    AttachStdin     bool                `json:"AttachStdin,omitempty"`
    AttachStdout    bool                `json:"AttachStdout,omitempty"`
    AttachStderr    bool                `json:"AttachStderr,omitempty"`
    PortSpecs       []string            `json:"PortSpecs,omitempty"`
    ExposedPorts    map[string]struct{} `json:"ExposedPorts,omitempty"`
    Tty             bool                `json:"Tty,omitempty"`
    OpenStdin       bool                `json:"OpenStdin,omitempty"`
    StdinOnce       bool                `json:"StdinOnce,omitempty"`
    Env             []string            `json:"Env,omitempty"`
    Cmd             []string            `json:"Cmd,omitempty"`
    DNS             []string            `json:"Dns,omitempty"` // For Docker API v1.9 and below only
    Image           string              `json:"Image,omitempty"`
    Volumes         map[string]struct{} `json:"Volumes,omitempty"`
    VolumesFrom     string              `json:"VolumesFrom,omitempty"`
    WorkingDir      string              `json:"WorkingDir,omitempty"`
    Entrypoint      []string            `json:"Entrypoint,omitempty"`
    NetworkDisabled bool                `json:"NetworkDisabled,omitempty"`
    SecurityOpts    []string            `json:"SecurityOpts,omitempty"`
    OnBuild         []string            `json:"OnBuild,omitempty"`
    // This field is not supported in pre012 and will always be empty.
    Labels map[string]string `json:"Labels,omitempty"`
}

func (*DockerConfig) DeepCopy

func (in *DockerConfig) DeepCopy() *DockerConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerConfig.

func (*DockerConfig) DeepCopyInto

func (in *DockerConfig) DeepCopyInto(out *DockerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (DockerConfig) SwaggerDoc

func (DockerConfig) SwaggerDoc() map[string]string

type DockerImage

DockerImage is for earlier versions of the Docker API (pre-012 to be specific). It is also the version of metadata that the container image registry uses to persist metadata.

Compatibility level 4: No compatibility is provided, the API can change at any point for any reason. These capabilities should not be used by applications needing long term support. +openshift:compatibility-gen:level=4 +openshift:compatibility-gen:internal

type DockerImage struct {
    metav1.TypeMeta `json:",inline"`

    ID              string        `json:"id"`
    Parent          string        `json:"parent,omitempty"`
    Comment         string        `json:"comment,omitempty"`
    Created         metav1.Time   `json:"created"`
    Container       string        `json:"container,omitempty"`
    ContainerConfig DockerConfig  `json:"container_config,omitempty"`
    DockerVersion   string        `json:"docker_version,omitempty"`
    Author          string        `json:"author,omitempty"`
    Config          *DockerConfig `json:"config,omitempty"`
    Architecture    string        `json:"architecture,omitempty"`
    Size            int64         `json:"size,omitempty"`
}

func (*DockerImage) DeepCopy

func (in *DockerImage) DeepCopy() *DockerImage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerImage.

func (*DockerImage) DeepCopyInto

func (in *DockerImage) DeepCopyInto(out *DockerImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DockerImage) DeepCopyObject

func (in *DockerImage) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (DockerImage) SwaggerDoc

func (DockerImage) SwaggerDoc() map[string]string

type ImagePre012

ImagePre012 serves the same purpose as the Image type except that it is for earlier versions of the Docker API (pre-012 to be specific) Exists only for legacy conversion, copy of type from fsouza/go-dockerclient

type ImagePre012 struct {
    ID              string    `json:"id"`
    Parent          string    `json:"parent,omitempty"`
    Comment         string    `json:"comment,omitempty"`
    Created         time.Time `json:"created"`
    Container       string    `json:"container,omitempty"`
    ContainerConfig Config    `json:"container_config,omitempty"`
    DockerVersion   string    `json:"docker_version,omitempty"`
    Author          string    `json:"author,omitempty"`
    Config          *Config   `json:"config,omitempty"`
    Architecture    string    `json:"architecture,omitempty"`
    Size            int64     `json:"size,omitempty"`
}

func (*ImagePre012) DeepCopy

func (in *ImagePre012) DeepCopy() *ImagePre012

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImagePre012.

func (*ImagePre012) DeepCopyInto

func (in *ImagePre012) DeepCopyInto(out *ImagePre012)

DeepCopyInto is manually built to copy the (probably bugged) time.Time

func (ImagePre012) SwaggerDoc

func (ImagePre012) SwaggerDoc() map[string]string

type Mount

Mount represents a mount point in the container.

It has been added in the version 1.20 of the Docker API, available since Docker 1.8. Exists only for legacy conversion, copy of type from fsouza/go-dockerclient

type Mount struct {
    Name        string
    Source      string
    Destination string
    Driver      string
    Mode        string
    RW          bool
}

func (*Mount) DeepCopy

func (in *Mount) DeepCopy() *Mount

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mount.

func (*Mount) DeepCopyInto

func (in *Mount) DeepCopyInto(out *Mount)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Mount) SwaggerDoc

func (Mount) SwaggerDoc() map[string]string

type Port

Port represents the port number and the protocol, in the form <number>/<protocol>. For example: 80/tcp. Exists only for legacy conversion, copy of type from fsouza/go-dockerclient

type Port string