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
- func (c *AWSCredentials) AssumeRole(arn string, duration time.Duration) (*AWSCredentials, error)
- func (c *AWSCredentials) GetSessionToken(duration time.Duration) (*AWSCredentials, error)
- func (c *AWSCredentials) GetSessionTokenWithMFA(serialNumber, token string, duration time.Duration) (*AWSCredentials, error)
- 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 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 Session
- type SessionFile
- type Variables
- type Vault
- type VaultFile
- type VaultKey
Constants ¶
View Source
const (
DefaultSessionName = "VaultedSession"
)
Variables ¶
View Source
var ( ErrInvalidCommand = errors.New("Invalid command") ErrNoTokenEntered = errors.New("Could not get MFA code") )
View Source
var ( ErrInvalidPassword = errors.New("Invalid password") ErrInvalidKeyConfig = errors.New("Invalid key configuration") ErrInvalidEncryptionConfig = errors.New("Invalid encryption configuration") )
View Source
var STSDurationDefault = time.Hour
Functions ¶
func ListVaults ¶
func RemoveVault ¶
func VaultExists ¶
Types ¶
type AWSCredentials ¶
type AWSCredentials struct { ID string `json:"id"` Secret string `json:"secret"` Token string `json:"token,omitempty"` }
func AWSCredentialsFromSTSCredentials ¶
func AWSCredentialsFromSTSCredentials(creds *sts.Credentials) *AWSCredentials
func (*AWSCredentials) AssumeRole ¶
func (c *AWSCredentials) AssumeRole(arn string, duration time.Duration) (*AWSCredentials, error)
func (*AWSCredentials) GetSessionToken ¶
func (c *AWSCredentials) GetSessionToken(duration time.Duration) (*AWSCredentials, error)
func (*AWSCredentials) GetSessionTokenWithMFA ¶
func (c *AWSCredentials) GetSessionTokenWithMFA(serialNumber, token string, duration time.Duration) (*AWSCredentials, error)
type AWSKey ¶
type AWSKey struct { AWSCredentials MFA string `json:"mfa,omitempty"` Role string `json:"role,omitempty"` ForgoTempCredGeneration bool `json:"forgoTempCredGeneration"` }
func (*AWSKey) GetAWSCredentials ¶
func (k *AWSKey) GetAWSCredentials(duration time.Duration) (*AWSCredentials, error)
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 Session ¶
type Session struct { Name string `json:"name"` Role string `json:"role,omitempty"` Expiration time.Time `json:"expiration"` AWSCreds *AWSCredentials `json:"aws_creds,omitempty"` Vars map[string]string `json:"vars,omitempty"` SSHKeys map[string]string `json:"ssh_keys,omitempty"` }
func GetSession ¶
type SessionFile ¶
type Vault ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.