node

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON added in v1.0.0

type JSON struct {
	Name       string              `json:"name"`
	IsExternal bool                `json:"is_external"`
	Image      *string             `json:"image,omitempty"`
	Meta       *Meta               `json:"meta,omitempty"`
	Process    *Process            `json:"process,omitempty"`
	Listen     []string            `json:"listen"`
	Networks   []string            `json:"networks"`
	Volumes    []*Volume           `json:"volumes"`
	Connected  map[string][]string `json:"connected"`
}

type Meta added in v1.4.0

type Meta struct {
	Info string   `json:"info"`
	Tags []string `json:"tags"`
}

type Node

type Node struct {
	ID       string
	Name     string
	Image    string
	Networks []string
	Meta     *Meta
	Process  *Process
	Volumes  []*Volume
	Ports    Ports
}

func (*Node) IsExternal

func (n *Node) IsExternal() bool

func (*Node) ToJSON added in v1.0.0

func (n *Node) ToJSON() (rv *JSON)

type Port

type Port struct {
	Kind  string `json:"kind"`
	Value int    `json:"value"`
}

func (*Port) Label

func (p *Port) Label() string

func (*Port) String

func (p *Port) String() string

type Ports added in v1.0.0

type Ports []Port

func (Ports) Dedup added in v1.0.0

func (ps Ports) Dedup() (rv Ports)

type Process added in v1.5.0

type Process struct {
	Cmd []string `json:"cmd"`
	Env []string `json:"env"`
}

type Volume added in v1.5.0

type Volume struct {
	Type string `json:"type"`
	Src  string `json:"src"`
	Dst  string `json:"dst"`
}

Jump to

Keyboard shortcuts

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