types

package
v0.0.0-...-e35553e Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCachePath = "./tmp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hostname    string   `json:",omitempty"` // Hostname
	User        string   `json:",omitempty"` // User that will run the command(s) inside the container, also support user:group
	AttachStdin bool     // Attach the standard input, makes possible user interaction
	Env         []string `json:",omitempty"` // List of environment variable to set in the container
	Cmd         []string `json:",omitempty"` // Command to run when starting the container

	Volumes    map[string]struct{} `json:",omitempty"` // List of volumes (mounts) used for the container
	WorkingDir string              `json:",omitempty"`
	Entrypoint []string            `json:",omitempty"`
	Labels     map[string]string   `json:",omitempty"`
}

type Container

type Container struct {
	ID  string
	Dir string
}

type Image

type Image struct {
	ID          string `json:"Id"`
	RepoTags    []string
	RepoDigests []string

	Comment string
	Created string

	Author          string
	Config          *Config
	Architecture    string
	ContainerConfig *Config `json:"container_config"`

	Os string

	Size int64 // Size is the unpacked size of the image

	RootFS   RootFS
	Metadata ImageMetadata
}

type ImageMetadata

type ImageMetadata struct {
	LastTagTime time.Time `json:",omitempty"`
}

type ImageOptions

type ImageOptions struct {
	ImageName   string
	TarballPath string
	CachePath   string // Optional, path to cache the image
}

PullImageOptions holds the options for pulling an image.

type Manifest

type Manifest struct {
	Config   string
	RepoTags []string
	Layers   []string
}

type RootFS

type RootFS struct {
	Type      string
	Layers    []string `json:",omitempty"`
	BaseLayer string   `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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