boxpkg

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CONTAINER_PORT = "1729"
	VpnImageName = "linuxserver/wireguard:latest"

	CONT_PATH_KEY     = "kl.container.path"
	CONT_NAME_KEY     = "kl.container.name"
	CONT_MARK_KEY     = "kl.container"
	CONT_VPN_MARK_KEY = "kl.container.vpn"
)

Variables

View Source
var NotFoundErr = errors.New("container not found")

Functions

func GetDockerHostIp

func GetDockerHostIp() (string, error)

func GetImageName

func GetImageName() string

func NewClient

func NewClient(cmd *cobra.Command, args []string) (*client, error)

Types

type Cntr

type Cntr struct {
	Name   string
	Labels map[string]string
	State  ContState
}

type ContState

type ContState string
const (
	ContStateExited  ContState = "exited"
	ContStateCreated ContState = "created"
)

type Container

type Container struct {
	Name string
	Path string
}

type ContainerConfig

type ContainerConfig struct {
	Name string
	// contains filtered or unexported fields
}

type EnvironmentVariable

type EnvironmentVariable struct {
	Key   string `yaml:"key" json:"key"`
	Value string `yaml:"value" json:"value"`
}

Jump to

Keyboard shortcuts

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