Documentation ¶
Index ¶
- Variables
- type AWSConnection
- type Changer
- type Connection
- type FileConnection
- type Remote
- type SSHHostConnection
- func (c *SSHHostConnection) Fetch() (keys <-chan data.Key, accounts <-chan data.Account)
- func (c *SSHHostConnection) Id() data.ID
- func (remote *SSHHostConnection) RetrieveKeys(cmd *SshCmd) []data.Key
- func (c *SSHHostConnection) String() string
- func (c *SSHHostConnection) Update(account data.Account, addBindings []data.KeyBindingImpl, ...) error
- type SshCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var ParallelSSHCount int = 5
5 threads seems to be the optimum between connection overhead and command serilaization on a single threaded Ubuntu VM with ~30 users
Functions ¶
This section is empty.
Types ¶
type AWSConnection ¶
type AWSConnection struct {
Type, Profile string
}
func (*AWSConnection) Fetch ¶
func (a *AWSConnection) Fetch() (keys <-chan data.Key, accounts <-chan data.Account)
func (*AWSConnection) Id ¶
func (a *AWSConnection) Id() data.ID
func (*AWSConnection) String ¶
func (a *AWSConnection) String() string
type Changer ¶
type Changer interface {
Update(account data.Account, addBindings []data.KeyBindingImpl, removeBindings []data.KeyBindingImpl, keylib data.Fetcher) error
}
type Connection ¶
type FileConnection ¶
func (*FileConnection) Fetch ¶
func (c *FileConnection) Fetch() (keys <-chan data.Key, accounts <-chan data.Account)
func (*FileConnection) Id ¶
func (c *FileConnection) Id() data.ID
func (*FileConnection) String ¶
func (c *FileConnection) String() string
type SSHHostConnection ¶
func (*SSHHostConnection) Fetch ¶
func (c *SSHHostConnection) Fetch() (keys <-chan data.Key, accounts <-chan data.Account)
func (*SSHHostConnection) Id ¶
func (c *SSHHostConnection) Id() data.ID
func (*SSHHostConnection) RetrieveKeys ¶
func (remote *SSHHostConnection) RetrieveKeys(cmd *SshCmd) []data.Key
func (*SSHHostConnection) String ¶
func (c *SSHHostConnection) String() string
func (*SSHHostConnection) Update ¶
func (c *SSHHostConnection) Update(account data.Account, addBindings []data.KeyBindingImpl, removeBindings []data.KeyBindingImpl, keylib data.Fetcher) error
Click to show internal directories.
Click to hide internal directories.