deployment

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Overrides map[string]string `json:"overrides,omitempty"`
	Ports     map[string]int    `json:"ports"`
	Name      string            `json:"name"`
	ID        string            `json:"id"`
	NetworkID string            `json:"networkId,omitempty"`
	HostID    string            `json:"hostId,omitempty"`
	Plugin    string            `json:"plugin"`
	Address   string            `json:"address"`
	Status    string            `json:"status"`
	Operation string            `json:"operation,omitempty"`
	Progress  string            `json:"progress"`
	Error     string            `json:"error,omitempty"`
	Logs      string            `json:"logs"`
	CreatedAt time.Time         `json:"createdAt"`
	CheckedAt *time.Time        `json:"checkedAt,omitempty"`
}

type Host

type Host struct {
	KeyID       string      `json:"keyId,omitempty"`
	ID          string      `json:"id"`
	Name        string      `json:"name"`
	Address     string      `json:"address"`
	Port        int         `json:"port"`
	User        string      `json:"user"`
	Fingerprint string      `json:"fingerprint"`
	Auth        string      `json:"auth"`
	Sudo        bool        `json:"sudo"`
	Networks    []Interface `json:"networks,omitempty"`
}

type Interface

type Interface struct {
	NetworkID string `json:"networkId"`
	Address   string `json:"address"`
}

type Manager

type Manager struct {
	LoadBuildContext func(context.Context, string) (map[string]string, error)
	// contains filtered or unexported fields
}

func New

func New(dir string, definitions ...deploy.Plugin) (*Manager, error)

func (*Manager) Bind

func (m *Manager) Bind(id string, source []byte) ([]byte, map[string]string, error)

Bind must run before environment/template expansion

func (*Manager) Close

func (m *Manager) Close(ctx context.Context)

func (*Manager) Name

func (m *Manager) Name(id string) string

func (*Manager) Register

func (m *Manager) Register(mux *http.ServeMux)

func (*Manager) TerminalTarget

func (m *Manager) TerminalTarget(kind, id, service string) (TerminalTarget, error)

type Network

type Network struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	CIDR string `json:"cidr"`
}

type SSHKey

type SSHKey struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Path string `json:"path"`
}

type Start

type Start struct {
	Ports     map[string]int `json:"ports"`
	Name      string         `json:"name"`
	HostID    string         `json:"hostId"`
	Plugin    string         `json:"plugin"`
	Address   string         `json:"address"`
	NetworkID string         `json:"networkId"`
	APIKey    string         `json:"apiKey"`
	Secret    string         `json:"secret"`
}

type TerminalTarget

type TerminalTarget struct {
	Name     string   `json:"name"`
	Services []string `json:"services,omitempty"`
	Service  string   `json:"service,omitempty"`
	// contains filtered or unexported fields
}

func (TerminalTarget) Run

func (t TerminalTarget) Run(ctx context.Context, input io.Reader, output io.Writer, sizes <-chan [2]int) error

Jump to

Keyboard shortcuts

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