Documentation ¶
Overview ¶
Copyright 2024 BeyondTrust. All rights reserved. Package secrets implements Get secret logic for Secrets Safe (cred, text, file)
Index ¶
- type SecretObj
- func (secretObj *SecretObj) GetSecret(secretPath string, separator string) (string, error)
- func (secretObj *SecretObj) GetSecretFlow(secretsToRetrieve []string, separator string) (map[string]string, error)
- func (secretObj *SecretObj) GetSecrets(secretPaths []string, separator string) (map[string]string, error)
- func (secretObj *SecretObj) SecretGetFileSecret(secretId string, endpointPath string) (string, error)
- func (secretObj *SecretObj) SecretGetSecretByPath(secretPath string, secretTitle string, separator string, endpointPath string) (entities.Secret, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretObj ¶
type SecretObj struct {
// contains filtered or unexported fields
}
SecretObj responsible for session requests.
func NewSecretObj ¶
func NewSecretObj(authentication authentication.AuthenticationObj, logger logging.Logger, maxFileSecretSizeBytes int) (*SecretObj, error)
NewSecretObj creates secret obj
func (*SecretObj) GetSecretFlow ¶
func (secretObj *SecretObj) GetSecretFlow(secretsToRetrieve []string, separator string) (map[string]string, error)
GetSecretFlow is responsible for creating a dictionary of secrets safe secret paths and secret key-value pairs.
func (*SecretObj) GetSecrets ¶
func (secretObj *SecretObj) GetSecrets(secretPaths []string, separator string) (map[string]string, error)
GetSecrets returns secret value for a path and title list.
Click to show internal directories.
Click to hide internal directories.