types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerLabelName        = "ai.tensorchord.envd.name"
	ContainerLabelJupyterAddr = "ai.tensorchord.envd.jupyter.address"
	ContainerLabelSSHPort     = "ai.tensorchord.envd.ssh.port"

	ImageLabelVendor  = "ai.tensorchord.envd.vendor"
	ImageLabelGPU     = "ai.tensorchord.envd.gpu"
	ImageLabelAPT     = "ai.tensorchord.envd.apt.packages"
	ImageLabelPyPI    = "ai.tensorchord.envd.pypi.packages"
	ImageLabelR       = "ai.tensorchord.envd.r.packages"
	ImageLabelCUDA    = "ai.tensorchord.envd.gpu.cuda"
	ImageLabelCUDNN   = "ai.tensorchord.envd.gpu.cudnn"
	ImageLabelContext = "ai.tensorchord.envd.build.context"

	ImageVendorEnvd = "envd"
)

Variables

This section is empty.

Functions

func GetImageName

func GetImageName(image EnvdImage) string

Types

type Dependency

type Dependency struct {
	APTPackages  []string `json:"apt_packages,omitempty"`
	PyPIPackages []string `json:"pypi_packages,omitempty"`
}

func NewDependencyFromContainerJSON

func NewDependencyFromContainerJSON(ctr types.ContainerJSON) (*Dependency, error)

func NewDependencyFromImage

func NewDependencyFromImage(img types.ImageSummary) (*Dependency, error)

type EnvdEnvironment

type EnvdEnvironment struct {
	types.Container

	Name         string `json:"name,omitempty"`
	JupyterAddr  string `json:"jupyter_addr,omitempty"`
	EnvdManifest `json:",inline,omitempty"`
}

func NewEnvironment

func NewEnvironment(ctr types.Container) (*EnvdEnvironment, error)

type EnvdImage

type EnvdImage struct {
	types.ImageSummary

	EnvdManifest `json:",inline,omitempty"`
}

func NewImage

func NewImage(image types.ImageSummary) (*EnvdImage, error)

type EnvdManifest

type EnvdManifest struct {
	GPU          bool   `json:"gpu,omitempty"`
	CUDA         string `json:"cuda,omitempty"`
	CUDNN        string `json:"cudnn,omitempty"`
	BuildContext string `json:"build_context,omitempty"`
	Dependency   `json:",inline,omitempty"`
}

Jump to

Keyboard shortcuts

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