Documentation ¶
Index ¶
- Constants
- Variables
- func StartTestDevVaultInTest(t *testing.T, ctx context.Context) (vserver *VaultServer, vclient *Vault, err error)
- type AuthRole
- type AuthRoleResp
- type Certs
- type GeneralResp
- type Vault
- func (v *Vault) AddAuthJWTConfig(authPath, oidcDiscoveryUrl, boundIssuer string) (err error)
- func (v *Vault) AddAuthRoleIAMType(authPath string, roleName string, policies []string, serviceAccounts []string) (err error)
- func (v *Vault) AddAuthRoleJWTType(authPath, roleName string, policies []string, boundAudiences []string, ...) (err error)
- func (v *Vault) EnableAuth(authMethod string) (err error)
- func (v *Vault) EnableAuthByPath(authPath string, authMethod string) (err error)
- func (v *Vault) GetAuthRole(authPath string, roleName string) (authRole AuthRole, err error)
- func (v *Vault) GetAuthType(authPath string) (authType string, err error)
- func (v *Vault) GetHealthStatus() (*vaultapi.HealthResponse, error)
- func (v *Vault) GetInitStatus() (init bool, err error)
- func (v *Vault) GetPolicy(policyName string) (policyContent string, err error)
- func (v *Vault) GetRawAuthRole(authMethod, roleName string) (authRole map[string]interface{}, err error)
- func (v *Vault) GetToken() string
- func (v *Vault) Initialize() (resp []byte, err error)
- func (v *Vault) IssueNewCertificate(vaultpki VaultPKI) (certs Certs, err error)
- func (v *Vault) SetPolicy(policyName string, policyContent string) (err error)
- func (v *Vault) SetToken(token string)
- type VaultPKI
- type VaultServer
Constants ¶
View Source
const (
VAULT_TOKEN = "root-token"
)
Variables ¶
View Source
var (
ErrCertIssueFailed = errors.New("failed to issue new certificate from vault")
)
Functions ¶
func StartTestDevVaultInTest ¶
Types ¶
type AuthRoleResp ¶
type AuthRoleResp struct {
Data AuthRole `json:"data"`
}
type GeneralResp ¶
type GeneralResp struct {
Data map[string]interface{} `json:"data"`
}
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func NewClientWithContext ¶
func (*Vault) AddAuthJWTConfig ¶
func (*Vault) AddAuthRoleIAMType ¶
func (*Vault) AddAuthRoleJWTType ¶
func (*Vault) EnableAuth ¶
func (*Vault) EnableAuthByPath ¶
func (*Vault) GetAuthRole ¶
func (*Vault) GetAuthType ¶
func (*Vault) GetHealthStatus ¶
func (v *Vault) GetHealthStatus() (*vaultapi.HealthResponse, error)
func (*Vault) GetInitStatus ¶
func (*Vault) GetRawAuthRole ¶
func (*Vault) Initialize ¶
func (*Vault) IssueNewCertificate ¶
type VaultServer ¶
type VaultServer struct {
*testvault.VaultContainer
}
Click to show internal directories.
Click to hide internal directories.