portal

package
Version: v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsPortal

type AwsPortal struct {
	// contains filtered or unexported fields
}

AwsPortal is a type of Portal that supports looking up of connections via AWS APIs based on instanceId and region. This tool will support pushing of temporary ssh key to the instance prior to connection. Only direct connections are supported (no tunnels) at this point.

func (*AwsPortal) Connect

func (p *AwsPortal) Connect() error

func (AwsPortal) Hint

func (p AwsPortal) Hint() string

func (AwsPortal) Name

func (p AwsPortal) Name() string

func (AwsPortal) SetHint

func (p AwsPortal) SetHint(h string)

type Portal

type Portal interface {
	// Name of the portal
	Name() string
	// Connect to this portal
	Connect() error

	Hint() string
	SetHint(string)
}

Portal is a common interface for all destinations to implement

type RawPortal

type RawPortal struct {
	// contains filtered or unexported fields
}

RawPortal is a direct connection portal that requires no additional configuration besides a command to execute

func (*RawPortal) Connect

func (p *RawPortal) Connect() error

func (RawPortal) Hint

func (p RawPortal) Hint() string

func (RawPortal) Name

func (p RawPortal) Name() string

func (RawPortal) SetHint

func (p RawPortal) SetHint(h string)

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) GetPortal

func (r *Registry) GetPortal(name string) (Portal, error)

func (*Registry) ListPortalNames

func (r *Registry) ListPortalNames() []string

func (*Registry) ListPortals

func (r *Registry) ListPortals() []Portal

Jump to

Keyboard shortcuts

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