types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 3 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointCacheKey

func EndpointCacheKey(endpoint, ca, cert, key string) string

EndpointCacheKey is the engine cache key for an endpoint and its credentials.

Types

type Build

type Build struct {
	Base       string            `yaml:"base,omitempty"`
	Repo       string            `yaml:"repo,omitempty"`
	Version    string            `yaml:"version,omitempty"`
	Dir        string            `yaml:"dir,omitempty"`
	Submodule  bool              `yaml:"submodule,omitempty"`
	Security   bool              `yaml:"security,omitempty"`
	Commands   []string          `yaml:"commands,omitempty,flow"`
	Envs       map[string]string `yaml:"envs,omitempty,flow"`
	Args       map[string]string `yaml:"args,omitempty,flow"`
	Labels     map[string]string `yaml:"labels,omitempty,flow"`
	Artifacts  map[string]string `yaml:"artifacts,omitempty,flow"`
	Cache      map[string]string `yaml:"cache,omitempty,flow"`
	StopSignal string            `yaml:"stop_signal,omitempty,flow"`
}

type BuildContentOptions

type BuildContentOptions struct {
	User string
	UID  int
	*Builds
}

type BuildRefOptions

type BuildRefOptions struct {
	Name string
	Tags []string
	User string
}

type Builds

type Builds struct {
	Stages []string          `yaml:"stages,omitempty,flow"`
	Builds map[string]*Build `yaml:"builds,omitempty,flow"`
}

type ExecConfig

type ExecConfig struct {
	User         string
	Privileged   bool
	Tty          bool
	AttachStdin  bool
	AttachStderr bool
	AttachStdout bool
	Env          []string
	WorkingDir   string
	Cmd          []string
}

ExecConfig mirrors the exec subset of docker's api/types Config.

type Image

type Image struct {
	ID   string
	Tags []string
}

Image is an image's ID and tags.

type Info

type Info struct {
	Type         string
	ID           string
	NCPU         int
	MemTotal     int64
	StorageTotal int64
	Resources    map[string][]byte
}

Info is a node's runtime capacity as reported by its engine.

type Network

type Network struct {
	Name    string   `json:"name"`
	Subnets []string `json:"cidr"` // wire key stays "cidr"
}

type Params

type Params struct {
	Nodename string
	Endpoint string
	CA       string
	Cert     string
	Key      string
	// contains filtered or unexported fields
}

func NewParams

func NewParams(nodename, endpoint, ca, cert, key string) *Params

func (*Params) CacheKey

func (p *Params) CacheKey() string

type RawEngineOptions

type RawEngineOptions struct {
	ID     string
	Op     string
	Params []byte
}

type RawEngineResult

type RawEngineResult struct {
	ID   string
	Data []byte
}

type VirtualizationCreateOptions

type VirtualizationCreateOptions struct {
	EngineParams resourcetypes.Resources
	Name         string
	User         string
	Image        string
	WorkingDir   string
	Stdin        bool
	Privileged   bool
	Cmd          []string
	Env          []string
	DNS          []string
	Hosts        []string
	Publish      []string
	Sysctl       map[string]string
	Labels       map[string]string

	Debug   bool
	Restart string

	Networks map[string]string

	LogType   string
	LogConfig map[string]string

	RawArgs []byte
	Lambda  bool

	AncestorWorkloadID string
}

VirtualizationCreateOptions describes a workload to create.

type VirtualizationCreated

type VirtualizationCreated struct {
	ID     string
	Name   string
	Labels map[string]string
}

VirtualizationCreated identifies a freshly created workload.

type VirtualizationInfo

type VirtualizationInfo struct {
	ID       string
	User     string
	Image    string
	Running  bool
	Env      []string
	Labels   map[string]string
	Networks map[string]string
}

type VirtualizationLogStreamOptions

type VirtualizationLogStreamOptions struct {
	ID     string
	Tail   string
	Since  string
	Until  string
	Follow bool
	Stdout bool
	Stderr bool
}

type VirtualizationWaitResult

type VirtualizationWaitResult struct {
	Message string
	Code    int64
}

VirtualizationWaitResult carries a workload's exit status.

Jump to

Keyboard shortcuts

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