container

package
v0.120.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func New

func New(image string, cpu float32, memory uint32, volumes []*api.Volume) (*Container, error)

func (*Container) Attributes added in v0.114.2

func (cont *Container) Attributes() []attribute.KeyValue

func (*Container) Close

func (cont *Container) Close(context.Context) error

func (*Container) Run

func (cont *Container) Run(ctx context.Context, config *runconfig.RunConfig) (err error)

func (*Container) WorkingDirectory

func (cont *Container) WorkingDirectory(projectDir string, dirtyMode bool) string

Jump to

Keyboard shortcuts

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