types

package
v0.0.0-...-06bcc1c Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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"`
}

Build define build

type BuildContentOptions

type BuildContentOptions struct {
	User string
	UID  int
	*Builds
}

BuildContentOptions .

type BuildMethod

type BuildMethod int

BuildMethod .

type BuildRefOptions

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

BuildRefOptions .

type Builds

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

Builds define builds

type ExecConfig

type ExecConfig struct {
	User         string   // User that will run the command
	Privileged   bool     // Is the workload in privileged mode
	Tty          bool     // Attach standard streams to a tty.
	AttachStdin  bool     // Attach the standard input, makes possible user interaction
	AttachStderr bool     // Attach the standard error
	AttachStdout bool     // Attach the standard output
	Detach       bool     // Execute in detach mode
	DetachKeys   string   // Escape keys for detach
	Env          []string // Environment variables
	WorkingDir   string   // Working directory
	Cmd          []string // Execution commands and args
}

ExecConfig is a small subset of the Config struct that holds the configuration for the exec feature of docker. copy from github.com/docker/docker/api/types

type Image

type Image struct {
	ID   string
	Tags []string
}

Image contain image meta data

type Info

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

Info define info response

type Network

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

Network is network info

type RawEngineOptions

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

type RawEngineResult

type RawEngineResult struct {
	ID   string
	Data []byte
}

type SendMessage

type SendMessage struct {
	ID    string
	Path  string
	Error error
}

SendMessage returns from engine

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 use for create virtualization target

type VirtualizationCreated

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

VirtualizationCreated use for store name and ID

type VirtualizationInfo

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

VirtualizationInfo store virtualization info

type VirtualizationLogStreamOptions

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

VirtualizationLogStreamOptions .

type VirtualizationWaitResult

type VirtualizationWaitResult struct {
	Message string
	Code    int64
}

VirtualizationWaitResult store exit result

Jump to

Keyboard shortcuts

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