Versions in this module Expand all Collapse all v0 v0.2.0 Feb 2, 2024 v0.1.0 Feb 2, 2024 Changes in this version + var ErrNoTaskId = errors.New("No task id provided.") + 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 struct + GatekeeperAddress string + HttpClient *http.Client + VaultAddress string + var DefaultClient *Client + func NewClient(vaultAddress, gatekeeperAddress string, certPool *x509.CertPool) (*Client, error) + 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 struct + Error string + OK bool + Status string + type GatekeeperStatus struct + OK bool + Started string + Stats map[string]interface{} + Status string + Uptime string + type UnsealRequest struct + AppID string + CubbyPath string + Password string + Token string + Type string + UserIdHash string + UserIdInterface string + UserIdMethod string + UserIdPath string + UserIdSalt string + Username string + type VaultError struct + Code int + Errors []string + func (e VaultError) Error() string