docker

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const DockerUserDataUrl = "/peerpod/userdata.json"

Variables

This section is empty.

Functions

func GetUserData

func GetUserData(ctx context.Context, url string) ([]byte, error)

Method to retrieve userData from a well defined path and return it as a string

func IsDocker

func IsDocker(ctx context.Context) bool

Method to check if the VM is running on Docker

func NewProvider

func NewProvider(config *Config) (*dockerProvider, error)

Types

type Config

type Config struct {
	DockerHost       string
	DockerAPIVersion string
	DockerCertPath   string
	DockerTLSVerify  bool
	DataDir          string
	PodVMDockerImage string
	NetworkName      string
}

type Manager

type Manager struct{}

func (*Manager) GetConfig

func (_ *Manager) GetConfig() (config *Config)

func (*Manager) LoadEnv

func (m *Manager) LoadEnv()

func (*Manager) NewProvider

func (_ *Manager) NewProvider() (provider.Provider, error)

func (*Manager) ParseCmd

func (_ *Manager) ParseCmd(flags *flag.FlagSet)

Jump to

Keyboard shortcuts

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