Documentation
¶
Index ¶
- Constants
- func NewZoneDriver(logger hclog.Logger) drivers.DriverPlugin
- func RemoveDuplicatesFromSlice(s []string) []string
- type Config
- type Driver
- func (d *Driver) Capabilities() (*drivers.Capabilities, error)
- func (d *Driver) ConfigSchema() (*hclspec.Spec, error)
- func (d *Driver) DestroyTask(taskID string, force bool) error
- func (d *Driver) ExecTask(taskID string, cmd []string, timeout time.Duration) (*drivers.ExecTaskResult, error)
- func (d *Driver) Fingerprint(ctx context.Context) (<-chan *drivers.Fingerprint, error)
- func (d *Driver) InspectTask(taskID string) (*drivers.TaskStatus, error)
- func (d *Driver) PluginInfo() (*base.PluginInfoResponse, error)
- func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error
- func (d *Driver) SetConfig(cfg *base.Config) error
- func (d *Driver) Shutdown(ctx context.Context) error
- func (d *Driver) SignalTask(taskID string, signal string) error
- func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drivers.DriverNetwork, error)
- func (d *Driver) StopTask(taskID string, timeout time.Duration, signal string) error
- func (d *Driver) TaskConfigSchema() (*hclspec.Spec, error)
- func (d *Driver) TaskEvents(ctx context.Context) (<-chan *drivers.TaskEvent, error)
- func (d *Driver) TaskStats(ctx context.Context, taskID string, interval time.Duration) (<-chan *drivers.TaskResourceUsage, error)
- func (d *Driver) WaitTask(ctx context.Context, taskID string) (<-chan *drivers.ExitResult, error)
- type TaskConfig
- type TaskState
Constants ¶
View Source
const ( IpTypeExclusive = 2 )
Variables ¶
This section is empty.
Functions ¶
func NewZoneDriver ¶
func NewZoneDriver(logger hclog.Logger) drivers.DriverPlugin
Types ¶
type Config ¶
type Config struct { }
Config is the driver configuration set by the SetConfig RPC call
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) Capabilities ¶
func (d *Driver) Capabilities() (*drivers.Capabilities, error)
func (*Driver) Fingerprint ¶
func (*Driver) InspectTask ¶
func (d *Driver) InspectTask(taskID string) (*drivers.TaskStatus, error)
func (*Driver) PluginInfo ¶
func (d *Driver) PluginInfo() (*base.PluginInfoResponse, error)
func (*Driver) RecoverTask ¶
func (d *Driver) RecoverTask(handle *drivers.TaskHandle) error
func (*Driver) StartTask ¶
func (d *Driver) StartTask(cfg *drivers.TaskConfig) (*drivers.TaskHandle, *drivers.DriverNetwork, error)
func (*Driver) TaskEvents ¶
type TaskConfig ¶
type TaskConfig struct { Zonepath string `codec:"Zonepath"` HostId string `codec:"HostId"` Brand string `codec:"Brand"` Docker string `codec:"Docker"` Autoboot string `codec:"Autoboot"` SchedulingClass string `codec:"SchedulingClass"` CappedMemory string `codec:"CappedMemory"` LockedMemory string `codec:"LockedMemory"` SwapMemory string `codec:"SwapMemory"` ShmMemory string `codec:"ShmMemory"` DedicatedCpu string `codec:"DedicatedCpu"` SemIds string `codec:"SemIds"` ShmIds string `codec:"ShmIds"` MsgIds string `codec:"MsgIds"` Lwps string `codec:"Lwps"` Envars string `codec:"Envars"` IpType string `codec:"IpType"` Networks []zconfig.Network `codec:"Networks"` Attributes []zconfig.Attribute `codec:"Attributes"` FileSystems []zconfig.FileSystem `codec:"FileSystems"` Devices []zconfig.Device `codec:"Devices"` }
TaskConfig is the driver configuration of a task within a job
Click to show internal directories.
Click to hide internal directories.