Documentation ¶
Overview ¶
Copyright 2024 BeyondTrust. All rights reserved. Package managed_accounts implements Get managed account logic
Index ¶
- type ManagedAccountstObj
- func (managedAccountObj *ManagedAccountstObj) CredentialByRequestId(requestId string, url string) (string, error)
- func (managedAccountObj *ManagedAccountstObj) GetSecret(secretPath string, separator string) (string, error)
- func (managedAccountObj *ManagedAccountstObj) GetSecrets(secretPaths []string, separator string) (map[string]string, error)
- func (managedAccountObj *ManagedAccountstObj) ManageAccountCreateFlow(systemNameTarget string, accountDetails entities.AccountDetails) (entities.CreateManagedAccountsResponse, error)
- func (managedAccountObj *ManagedAccountstObj) ManageAccountFlow(secretsToRetrieve []string, separator string) (map[string]string, error)
- func (managedAccountObj *ManagedAccountstObj) ManagedAccountCreateManagedAccount(accountDetails entities.AccountDetails, url string) (entities.CreateManagedAccountsResponse, error)
- func (managedAccountObj *ManagedAccountstObj) ManagedAccountCreateRequest(systemName int, accountName int, url string) (string, error)
- func (managedAccountObj *ManagedAccountstObj) ManagedAccountGet(systemName string, accountName string, url string) (entities.ManagedAccount, error)
- func (managedAccountObj *ManagedAccountstObj) ManagedAccountRequestCheckIn(requestId string, url string) (string, error)
- func (managedAccountObj *ManagedAccountstObj) ManagedSystemGetSystems(url string) ([]entities.ManagedSystemResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagedAccountstObj ¶
type ManagedAccountstObj struct {
// contains filtered or unexported fields
}
ManagedAccountstObj responsible for session requests.
func NewManagedAccountObj ¶
func NewManagedAccountObj(authentication authentication.AuthenticationObj, logger logging.Logger) (*ManagedAccountstObj, error)
NewManagedAccountObj creates managed account obj
func (*ManagedAccountstObj) CredentialByRequestId ¶
func (managedAccountObj *ManagedAccountstObj) CredentialByRequestId(requestId string, url string) (string, error)
CredentialByRequestId calls Secret Safe API Credentials/<request_id> enpoint and returns secret value by request Id.
func (*ManagedAccountstObj) GetSecret ¶
func (managedAccountObj *ManagedAccountstObj) GetSecret(secretPath string, separator string) (string, error)
GetSecret returns secret value for a specific System Name and Account Name.
func (*ManagedAccountstObj) GetSecrets ¶
func (managedAccountObj *ManagedAccountstObj) GetSecrets(secretPaths []string, separator string) (map[string]string, error)
GetSecrets is responsible for getting a list of managed account secret values based on the list of systems and account names.
func (*ManagedAccountstObj) ManageAccountCreateFlow ¶ added in v0.8.2
func (managedAccountObj *ManagedAccountstObj) ManageAccountCreateFlow(systemNameTarget string, accountDetails entities.AccountDetails) (entities.CreateManagedAccountsResponse, error)
ManageAccountCreateFlow is responsible for creating a managed accounts in Password Safe.
func (*ManagedAccountstObj) ManageAccountFlow ¶
func (managedAccountObj *ManagedAccountstObj) ManageAccountFlow(secretsToRetrieve []string, separator string) (map[string]string, error)
ManageAccountFlow is responsible for creating a dictionary of managed account system/name and secret key-value pairs.
func (*ManagedAccountstObj) ManagedAccountCreateManagedAccount ¶ added in v0.8.2
func (managedAccountObj *ManagedAccountstObj) ManagedAccountCreateManagedAccount(accountDetails entities.AccountDetails, url string) (entities.CreateManagedAccountsResponse, error)
ManagedAccountCreateManagedAccount calls Secret Safe API Requests enpoint to create managed accounts.
func (*ManagedAccountstObj) ManagedAccountCreateRequest ¶
func (managedAccountObj *ManagedAccountstObj) ManagedAccountCreateRequest(systemName int, accountName int, url string) (string, error)
ManagedAccountCreateRequest calls Secret Safe API Requests enpoint and returns a request Id as string.
func (*ManagedAccountstObj) ManagedAccountGet ¶
func (managedAccountObj *ManagedAccountstObj) ManagedAccountGet(systemName string, accountName string, url string) (entities.ManagedAccount, error)
ManagedAccountGet is responsible for retrieving a managed account secret based on the system and name.
func (*ManagedAccountstObj) ManagedAccountRequestCheckIn ¶
func (managedAccountObj *ManagedAccountstObj) ManagedAccountRequestCheckIn(requestId string, url string) (string, error)
ManagedAccountRequestCheckIn calls Secret Safe API "Requests/<request_id>/checkin enpoint.
func (*ManagedAccountstObj) ManagedSystemGetSystems ¶ added in v0.8.2
func (managedAccountObj *ManagedAccountstObj) ManagedSystemGetSystems(url string) ([]entities.ManagedSystemResponse, error)
ManagedAccountGetSystem is responsible for retrieving managed systems list