endpoint

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(key string, querys ...string) bool

Find key must contains all querys!

func FindOr

func FindOr(key string, querys ...string) bool

FindOr find key is contains in one of querys.

func FindWithIdx

func FindWithIdx(endpoint *ssh.Endpoint, idx int, querys ...string) bool

FindWithIdx find

Types

type Endpoints

type Endpoints []*ssh.Endpoint

Endpoints ssh.Endpoint slice

func (Endpoints) Close

func (eps Endpoints) Close() error

Close close endpoints

func (Endpoints) Groups

func (eps Endpoints) Groups(kind string) Groups

Groups format Endpoints to Groups

func (Endpoints) Len

func (eps Endpoints) Len() int

Len implements sort.Interface

func (Endpoints) Less

func (eps Endpoints) Less(i, j int) bool

Less implements sort.Interface

func (Endpoints) Match

func (eps Endpoints) Match(match string) Endpoints

Match match

func (Endpoints) Print

func (eps Endpoints) Print()

Print PrintEndpoints

func (Endpoints) Search

func (eps Endpoints) Search(search ...string) Endpoints

Search search

func (Endpoints) Swap

func (eps Endpoints) Swap(i, j int)

Swap implements sort.Interface

type Group

type Group struct {
	Name      string
	Endpoints Endpoints
}

Group group

type Groups

type Groups []*Group

Groups groups

func (Groups) Find

func (grps Groups) Find(name string) *Group

Find checkout name is in Groups.

func (Groups) Len

func (grps Groups) Len() int

Len implements sort.Interface

func (Groups) Less

func (grps Groups) Less(i, j int) bool

Less implements sort.Interface

func (Groups) Match

func (grps Groups) Match(match string) Groups

Match match

func (Groups) Print

func (grps Groups) Print()

Print PrintGroups

func (Groups) Search

func (grps Groups) Search(querys ...string) Groups

Search search

func (Groups) Swap

func (grps Groups) Swap(i, j int)

Swap implements sort.Interface

type Users

type Users []string

Users users

func (Users) Match

func (s Users) Match(input string) Users

Match Match

func (Users) Print

func (s Users) Print()

Print print users

func (Users) Search

func (s Users) Search(querys ...string) Users

Search search

Jump to

Keyboard shortcuts

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