node

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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"`
	Networks   []string            `json:"networks"`
	Listen     []string            `json:"listen"`
	Connected  map[string][]string `json:"connected"`
}

type Node

type Node struct {
	ID       string   `json:"id"`
	Name     string   `json:"name"`
	Image    string   `json:"image"`
	Ports    Ports    `json:"ports"`
	Networks []string `json:"networks"`
}

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