docker

package
v3.0.0-alpha.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	*pufferpanel.BaseEnvironment
	ContainerId   string              `json:"-"`
	ImageName     string              `json:"image"`
	Binds         map[string]string   `json:"bindings,omitempty"`
	Network       string              `json:"networkName,omitempty"`
	Ports         []string            `json:"portBindings,omitempty"`
	Resources     container.Resources `json:"resources,omitempty"`
	Labels        map[string]string   `json:"labels,omitempty"`
	ContainerRoot string              `json:"containerRoot,omitempty"`
	// contains filtered or unexported fields
}

func (*Docker) GetStats

func (d *Docker) GetStats() (*pufferpanel.ServerStats, error)

func (*Docker) PullImage

func (d *Docker) PullImage(ctx context.Context, imageName string, force bool) error

func (*Docker) SendCode

func (d *Docker) SendCode(code int) error

type EnvironmentFactory

type EnvironmentFactory struct {
	pufferpanel.EnvironmentFactory
}

func (EnvironmentFactory) Create

func (ef EnvironmentFactory) Create(id string) pufferpanel.Environment

func (EnvironmentFactory) Key

func (ef EnvironmentFactory) Key() string

type ImageDownload

type ImageDownload struct {
	Status         string
	ProgressDetail ProgressDetail
	Id             string
	Progress       string
}

type ImageWriter

type ImageWriter struct {
	io.Writer
	Parent io.Writer
}

func (*ImageWriter) Write

func (w *ImageWriter) Write(data []byte) (n int, err error)

type ProgressDetail

type ProgressDetail struct {
	Current int64
	Total   int64
}

Jump to

Keyboard shortcuts

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