Documentation
¶
Index ¶
- Constants
- Variables
- func ListVaults() ([]string, error)
- func RemoveVault(name string) error
- func SealVault(name, password string, vault *Vault) error
- func VaultExists(name string) bool
- type AWSCredentials
- type AWSKey
- type Details
- func (d Details) Bytes(name string) []byte
- func (d Details) Clone() Details
- func (d Details) Int(name string) int
- func (d Details) SetBytes(name string, value []byte)
- func (d Details) SetInt(name string, value int)
- func (d Details) SetString(name string, value string)
- func (d Details) String(name string) string
- type Environment
- type EnvironmentFile
- type ProxyKeyring
- func (pk *ProxyKeyring) Add(key agent.AddedKey) error
- func (pk *ProxyKeyring) Close() error
- func (pk *ProxyKeyring) List() ([]*agent.Key, error)
- func (pk *ProxyKeyring) Listen() (string, error)
- func (pk *ProxyKeyring) Lock(passphrase []byte) error
- func (pk *ProxyKeyring) Remove(key ssh.PublicKey) error
- func (pk *ProxyKeyring) RemoveAll() error
- func (pk *ProxyKeyring) Serve() error
- func (pk *ProxyKeyring) Sign(key ssh.PublicKey, data []byte) (*ssh.Signature, error)
- func (pk *ProxyKeyring) Signers() ([]ssh.Signer, error)
- func (pk *ProxyKeyring) Unlock(passphrase []byte) error
- type Vault
- type VaultFile
- type VaultKey
Constants ¶
View Source
const (
DefaultSessionName = "VaultedSession"
)
Variables ¶
View Source
var ( ErrInvalidPassword = errors.New("Invalid password") ErrInvalidKeyConfig = errors.New("Invalid key configuration") ErrInvalidEncryptionConfig = errors.New("Invalid encryption configuration") )
View Source
var (
ErrInvalidCommand = errors.New("Invalid command")
)
View Source
var STSDurationDefault = time.Hour
Functions ¶
func ListVaults ¶
func RemoveVault ¶
func VaultExists ¶
Types ¶
type AWSCredentials ¶
type AWSKey ¶
type AWSKey struct { AWSCredentials MFA string `json:"mfa,omitempty"` Role string `json:"role,omitempty"` ForgoTempCredGeneration bool `json:"forgoTempCredGeneration"` }
type Environment ¶
type Environment struct { Expiration int64 `json:"expiration"` Vars map[string]string `json:"vars"` AWSCreds *AWSCredentials `json:"aws_creds,omitempty"` SSHKeys map[string]string `json:"ssh_keys,omitempty"` }
func GetEnvironment ¶
func GetEnvironment(name, password string) (*Environment, error)
type EnvironmentFile ¶
type ProxyKeyring ¶
type ProxyKeyring struct {
// contains filtered or unexported fields
}
func NewProxyKeyring ¶
func NewProxyKeyring(upstreamAuthSock string) (*ProxyKeyring, error)
func (*ProxyKeyring) Close ¶
func (pk *ProxyKeyring) Close() error
func (*ProxyKeyring) Listen ¶
func (pk *ProxyKeyring) Listen() (string, error)
func (*ProxyKeyring) Lock ¶
func (pk *ProxyKeyring) Lock(passphrase []byte) error
func (*ProxyKeyring) RemoveAll ¶
func (pk *ProxyKeyring) RemoveAll() error
func (*ProxyKeyring) Serve ¶
func (pk *ProxyKeyring) Serve() error
func (*ProxyKeyring) Unlock ¶
func (pk *ProxyKeyring) Unlock(passphrase []byte) error
type Vault ¶
type Vault struct { Vars map[string]string `json:"vars"` AWSKey *AWSKey `json:"aws_key,omitempty"` SSHKeys map[string]string `json:"ssh_keys,omitempty"` Duration time.Duration `json:"duration,omitempty"` }
func (*Vault) CreateEnvironment ¶
func (v *Vault) CreateEnvironment(extraVars map[string]string) (*Environment, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.