node

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 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"`
	Image      *string             `json:"image,omitempty"`
	IsExternal bool                `json:"is_external"`
	Meta       *Meta               `json:"meta,omitempty"`
	Listen     []string            `json:"listen"`
	Networks   []string            `json:"networks"`
	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
	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)

Jump to

Keyboard shortcuts

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