docker

package
v0.0.0-...-4ef6c67 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHostMachines

func NewHostMachines(logger log.Logger, hostDir string, verbose bool) machine.MachineCURDFactory

Types

type ContainerName

type ContainerName struct {
	// contains filtered or unexported fields
}

ContainerName is a place holder for clustername and its underlying container name created by kind

func NewContainerName

func NewContainerName(clustername string) ContainerName

func (ContainerName) Name

func (c ContainerName) Name() string

type DockerCli

type DockerCli struct {
	// contains filtered or unexported fields
}

func NewDockerCli

func NewDockerCli(logger log.Logger, verbose bool) (*DockerCli, error)

func (*DockerCli) GetClusterStatus

func (cli *DockerCli) GetClusterStatus(containername ContainerName) (string, error)

func (*DockerCli) RemoteExec

func (cli *DockerCli) RemoteExec(containername ContainerName, cmd string) (resp string, err error)

type HostFolder

type HostFolder struct {
	// contains filtered or unexported fields
}

func NewHostFolder

func NewHostFolder(folderpath string) *HostFolder

func (*HostFolder) GenerateFiles

func (h *HostFolder) GenerateFiles(tmplConfig *hosttemplates.DockerHostmachineTemplateConfig) error

type HostMachine

type HostMachine struct {
	// contains filtered or unexported fields
}

func (*HostMachine) Destroy

func (h *HostMachine) Destroy() error

func (*HostMachine) ExportKubeConfig

func (h *HostMachine) ExportKubeConfig(path string, force bool) error

func (*HostMachine) GetKubeCli

func (h *HostMachine) GetKubeCli() *kubectl.CLI

func (*HostMachine) GetKubeConfig

func (h *HostMachine) GetKubeConfig() string

func (*HostMachine) HostDir

func (h *HostMachine) HostDir() string

func (*HostMachine) Info

func (h *HostMachine) Info() (*machine.MachineInfo, error)

func (*HostMachine) Name

func (h *HostMachine) Name() string

func (*HostMachine) Type

func (h *HostMachine) Type() machine.MachineType

func (*HostMachine) Up

func (h *HostMachine) Up() error

type HostMachines

type HostMachines struct {
	// contains filtered or unexported fields
}

func (*HostMachines) EnsureRuntime

func (hm *HostMachines) EnsureRuntime() error

func (*HostMachines) ListMachines

func (hm *HostMachines) ListMachines() ([]machine.MachineCURD, error)

func (*HostMachines) NewMachine

func (hm *HostMachines) NewMachine(name string, options machine.MachineConfiger) (machine.MachineCURD, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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