Documentation ¶
Index ¶
- Constants
- func New() resource.Driver
- type T
- func (t *T) Configure() error
- func (t T) ContainerName() string
- func (t T) Enter() error
- func (t T) Inspect(ctx context.Context) (containerapi.ContainerInspect, error)
- func (t T) Label() string
- func (t T) LinkNames() []string
- func (t T) Manifest() *manifest.T
- func (t *T) NetNSPath() (string, error)
- func (t *T) PID() int
- func (t T) Provision(ctx context.Context) error
- func (t T) Provisioned() (provisioned.T, error)
- func (t T) Signal(sig syscall.Signal) error
- func (t T) Start(ctx context.Context) error
- func (t *T) Status(ctx context.Context) status.T
- func (t T) Stop(ctx context.Context) error
- func (t T) Unprovision(ctx context.Context) error
Constants ¶
View Source
const ( AlwaysPolicy = "always" OncePolicy = "once" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T struct { resource.T resource.SCSIPersistentReservation PG pg.Config `json:"pg"` Path naming.Path `json:"path"` ObjectID uuid.UUID `json:"object_id"` SCSIReserv bool `json:"scsireserv"` PromoteRW bool `json:"promote_rw"` NoPreemptAbort bool `json:"no_preempt_abort"` OsvcRootPath string `json:"osvc_root_path"` GuestOS string `json:"guest_os"` Name string `json:"name"` Hostname string `json:"hostname"` Image string `json:"image"` ImagePullPolicy string `json:"image_pull_policy"` CWD string `json:"cwd"` User string `json:"user"` Command []string `json:"command"` DNS []string `json:"dns"` DNSSearch []string `json:"dns_search"` RunArgs []string `json:"run_args"` Entrypoint []string `json:"entrypoint"` Detach bool `json:"detach"` Remove bool `json:"remove"` Privileged bool `json:"privileged"` Init bool `json:"init"` Interactive bool `json:"interactive"` TTY bool `json:"tty"` VolumeMounts []string `json:"volume_mounts"` Env []string `json:"environment"` SecretsEnv []string `json:"secrets_environment"` ConfigsEnv []string `json:"configs_environment"` Devices []string `json:"devices"` NetNS string `json:"netns"` UserNS string `json:"userns"` PIDNS string `json:"pidns"` IPCNS string `json:"ipcns"` UTSNS string `json:"utsns"` RegistryCreds string `json:"registry_creds"` PullTimeout *time.Duration `json:"pull_timeout"` StartTimeout *time.Duration `json:"start_timeout"` StopTimeout *time.Duration `json:"stop_timeout"` }
func (T) ContainerName ¶
ContainerName formats a docker container name
func (T) Inspect ¶
func (t T) Inspect(ctx context.Context) (containerapi.ContainerInspect, error)
func (*T) NetNSPath ¶
NetNSPath implements the resource.NetNSPather optional interface. Used by ip.netns and ip.route to configure network stuff in the container.
func (*T) PID ¶
PID implements the resource.PIDer optional interface. Used by ip.netns to name the veth pair devices.
func (T) Provisioned ¶
func (t T) Provisioned() (provisioned.T, error)
Click to show internal directories.
Click to hide internal directories.