dockerc

package
v0.0.0-...-2d06211 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTopology

func CreateTopology(t *configs.Topology) error

func DeleteTopology

func DeleteTopology(t *configs.Topology) error

Types

type ControllerOpts

type ControllerOpts struct {
	AcceptEula  bool
	Name        string
	Image       string
	Debug       bool
	HostNetwork bool
	Port        int
}

type DockerClient

type DockerClient struct {
	Host string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(node *configs.Node) (*DockerClient, error)

func (*DockerClient) CreateController

func (d *DockerClient) CreateController(opts *ControllerOpts) error

func (*DockerClient) CreateTrafficEngine

func (d *DockerClient) CreateTrafficEngine(opts *TrafficEngineOpts) error

func (*DockerClient) DeleteContainer

func (d *DockerClient) DeleteContainer(name string) error

func (*DockerClient) ListImages

func (d *DockerClient) ListImages() error

func (*DockerClient) PullImage

func (d *DockerClient) PullImage(image string) error

func (*DockerClient) StopContainer

func (d *DockerClient) StopContainer(name string) error

type TrafficEngineOpts

type TrafficEngineOpts struct {
	Name           string
	HugePages      bool
	WaitForIfc     bool
	CpuPinning     bool
	Port           int
	InterfaceNames []string
	HostNetwork    bool
	Image          string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL