Documentation ¶
Index ¶
- Variables
- func EnvRequestVaultToken() (string, error)
- func LoadCACert(path string) (*x509.CertPool, error)
- func LoadCAPath(path string) (*x509.CertPool, error)
- func RequestVaultToken(taskId string) (string, error)
- type Client
- func (c *Client) GetStatus() (*GatekeeperStatus, error)
- func (c *Client) InsecureSkipVerify(skipVerify bool)
- func (c *Client) IsSealed() (bool, error)
- func (c *Client) ReloadPolicies() (*GatekeeperResponse, error)
- func (c *Client) RequestVaultToken(taskId string) (string, error)
- func (c *Client) Unseal(req *UnsealRequest) (*GatekeeperResponse, error)
- type GatekeeperResponse
- type GatekeeperStatus
- type UnsealRequest
- type VaultError
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoTaskId = errors.New("No task id provided.")
Functions ¶
func EnvRequestVaultToken ¶
func LoadCACert ¶
Loads the certificate from given path and creates a certificate pool from it.
func LoadCAPath ¶
Loads the certificates present in the given directory or file and creates a certificate pool from it. Assumes that _only_ PEM formatted cert files are present in the given directory. The presence of other files will cause this to fail.
func RequestVaultToken ¶
Types ¶
type Client ¶
var DefaultClient *Client
func (*Client) GetStatus ¶
func (c *Client) GetStatus() (*GatekeeperStatus, error)
func (*Client) InsecureSkipVerify ¶
func (*Client) ReloadPolicies ¶
func (c *Client) ReloadPolicies() (*GatekeeperResponse, error)
func (*Client) RequestVaultToken ¶
func (*Client) Unseal ¶
func (c *Client) Unseal(req *UnsealRequest) (*GatekeeperResponse, error)
type GatekeeperResponse ¶
type GatekeeperStatus ¶
type UnsealRequest ¶
type UnsealRequest struct { Type string `json:"type"` Token string `json:"token"` CubbyPath string `json:"cubby_path"` Username string `json:"username"` Password string `json:"password"` AppID string `json:"app_id"` UserIdMethod string `json:"user_id_method"` UserIdInterface string `json:"user_id_interface"` UserIdPath string `json:"user_id_path"` UserIdHash string `json:"user_id_hash"` UserIdSalt string `json:"user_id_salt"` }
type VaultError ¶
func (VaultError) Error ¶
func (e VaultError) Error() string
Click to show internal directories.
Click to hide internal directories.