servers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	Attribute string
	Operator  string
	Value     string
}

func NewMatch

func NewMatch(attribute, operator, value string) *Match

func (*Match) Find

func (m *Match) Find(c []Server) ([]Server, error)

type Server

type Server struct {
	Name      string
	PublicIP  string
	PrivateIP string
	HostName  []string
	User      string
	Port      int
	Tags      []string
}

func NewServers

func NewServers(conf []config.Server) []Server

func (*Server) Display

func (s *Server) Display(log *logger.CLILogger, query string)

Jump to

Keyboard shortcuts

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