Documentation ¶
Index ¶
- type DataToSet
- type InternalData
- type VaultClient
- func (this VaultClient) CreateDefaultPolicyForUser(userName string) (err error)
- func (this VaultClient) CreateUser(userName string) (initialPassword string, err error)
- func (this VaultClient) DeleteUser(userName string) (err error)
- func (this VaultClient) DeleteUserPolicy(userName string) (err error)
- func (this VaultClient) GetUserName() string
- func (this VaultClient) GetUserToken() string
- func (this VaultClient) GetValue(secretPath string) (retVal string, err error)
- func (this VaultClient) Initialize() (keys []string, token string, err error)
- func (this VaultClient) IsInitialized() (retVal bool, err error)
- func (this VaultClient) IsSealed() (retVal bool, err error)
- func (this VaultClient) LogIn(userName string, password string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)
- func (this VaultClient) LogInCached(userName string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)
- func (this VaultClient) LookupToken(token string) (retVal string, err error)
- func (this VaultClient) RenewToken() (err error)
- func (this VaultClient) SaveCachedToken(userName string, token string) (err error)
- func (this VaultClient) Seal() (err error)
- func (this *VaultClient) SetToken(tokenPar string)
- func (this VaultClient) SetValue(secretPath string, secretValue string) (err error)
- func (this VaultClient) Unseal(keys []string) (err error)
- type VaultTestKit
- func (this VaultTestKit) GetUserName() (retVal string)
- func (this VaultTestKit) GetUserToken() (retVal string)
- func (this VaultTestKit) GetValue(path string) (retVal string, err error)
- func (this VaultTestKit) LogIn(userName string, password string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)
- func (this VaultTestKit) LogInCached(userName string) (retObjSettings types.Settings, retObjAuth types.Auth, err error)
- func (this VaultTestKit) RenewToken() (err error)
- func (this VaultTestKit) SaveCachedToken(userName string, token string) (err error)
- func (this VaultTestKit) SetErrorEmulation(path string, value error)
- func (this *VaultTestKit) SetLogiResult(newRes bool)
- func (this *VaultTestKit) SetTokenToReturn(newRes string)
- func (this VaultTestKit) SetValue(path string, value string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalData ¶
type InternalData struct {
Key string `json:"key"`
}
type VaultClient ¶
type VaultClient struct { ServerURL string Token string UserDomain string // contains filtered or unexported fields }
func NewVaultClient ¶
func NewVaultClient(serverURL string, logPar logs.Logger) (retVal *VaultClient)
func NewVaultClientInitialized ¶
func NewVaultClientInitialized(logPar logs.Logger) (retVal *VaultClient)
func (VaultClient) CreateDefaultPolicyForUser ¶
func (this VaultClient) CreateDefaultPolicyForUser(userName string) (err error)
func (VaultClient) CreateUser ¶
func (this VaultClient) CreateUser(userName string) (initialPassword string, err error)
func (VaultClient) DeleteUser ¶
func (this VaultClient) DeleteUser(userName string) (err error)
func (VaultClient) DeleteUserPolicy ¶
func (this VaultClient) DeleteUserPolicy(userName string) (err error)
func (VaultClient) GetUserName ¶
func (this VaultClient) GetUserName() string
func (VaultClient) GetUserToken ¶
func (this VaultClient) GetUserToken() string
func (VaultClient) GetValue ¶
func (this VaultClient) GetValue(secretPath string) (retVal string, err error)
func (VaultClient) Initialize ¶
func (this VaultClient) Initialize() (keys []string, token string, err error)
func (VaultClient) IsInitialized ¶
func (this VaultClient) IsInitialized() (retVal bool, err error)
func (VaultClient) IsSealed ¶
func (this VaultClient) IsSealed() (retVal bool, err error)
func (VaultClient) LogInCached ¶
func (VaultClient) LookupToken ¶
func (this VaultClient) LookupToken(token string) (retVal string, err error)
func (VaultClient) RenewToken ¶
func (this VaultClient) RenewToken() (err error)
func (VaultClient) SaveCachedToken ¶
func (this VaultClient) SaveCachedToken(userName string, token string) (err error)
func (VaultClient) Seal ¶
func (this VaultClient) Seal() (err error)
func (*VaultClient) SetToken ¶
func (this *VaultClient) SetToken(tokenPar string)
func (VaultClient) SetValue ¶
func (this VaultClient) SetValue(secretPath string, secretValue string) (err error)
func (VaultClient) Unseal ¶
func (this VaultClient) Unseal(keys []string) (err error)
type VaultTestKit ¶
type VaultTestKit struct {
// contains filtered or unexported fields
}
func NewVaultTestKit ¶
func NewVaultTestKit() (retVal *VaultTestKit)
func (VaultTestKit) GetUserName ¶
func (this VaultTestKit) GetUserName() (retVal string)
func (VaultTestKit) GetUserToken ¶
func (this VaultTestKit) GetUserToken() (retVal string)
func (VaultTestKit) GetValue ¶
func (this VaultTestKit) GetValue(path string) (retVal string, err error)
func (VaultTestKit) LogInCached ¶
func (VaultTestKit) RenewToken ¶
func (this VaultTestKit) RenewToken() (err error)
func (VaultTestKit) SaveCachedToken ¶
func (this VaultTestKit) SaveCachedToken(userName string, token string) (err error)
func (VaultTestKit) SetErrorEmulation ¶
func (this VaultTestKit) SetErrorEmulation(path string, value error)
func (*VaultTestKit) SetLogiResult ¶
func (this *VaultTestKit) SetLogiResult(newRes bool)
func (*VaultTestKit) SetTokenToReturn ¶
func (this *VaultTestKit) SetTokenToReturn(newRes string)
Click to show internal directories.
Click to hide internal directories.