Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Name string `json:"-"` Host string `json:"host"` Port uint64 `json:"port"` CertPath string `json:"cert_path"` // contains filtered or unexported fields }
func CurrentConnection ¶
func CurrentConnection() (*Connection, error)
func Get ¶
func Get(path, name string) (*Connection, error)
func (Connection) HostPort ¶
func (c Connection) HostPort() string
func (Connection) Remove ¶
func (c Connection) Remove() error
func (Connection) Use ¶
func (c Connection) Use(filepath string) error
type Connections ¶
type Connections []Connection
func List ¶
func List(path string) (Connections, error)
func (Connections) FilterByHost ¶
func (cs Connections) FilterByHost(host string) Connections
func (Connections) FilterByName ¶
func (cs Connections) FilterByName(name string) (*Connection, error)
func (Connections) FilterBySecure ¶
func (cs Connections) FilterBySecure(secure bool) Connections
Click to show internal directories.
Click to hide internal directories.