Documentation ¶
Overview ¶
Copyright 2024 BeyondTrust. All rights reserved. Package managed_accounts implements Get managed account logic
Index ¶
- type ManagedAccountstObj
- func (managedAccounObj *ManagedAccountstObj) CredentialByRequestId(requestId string, url string) (string, error)
- func (managedAccounObj *ManagedAccountstObj) GetSecret(secretPath string, separator string) (string, error)
- func (managedAccounObj *ManagedAccountstObj) GetSecrets(secretPaths []string, separator string) (map[string]string, error)
- func (managedAccounObj *ManagedAccountstObj) ManageAccountCreateFlow(systemNameTarget string, accountDetails entities.AccountDetails) (entities.CreateManagedAccountsResponse, error)
- func (managedAccounObj *ManagedAccountstObj) ManageAccountFlow(secretsToRetrieve []string, separator string) (map[string]string, error)
- func (managedAccounObj *ManagedAccountstObj) ManagedAccountCreateManagedAccount(accountDetails entities.AccountDetails, url string) (entities.CreateManagedAccountsResponse, error)
- func (managedAccounObj *ManagedAccountstObj) ManagedAccountCreateRequest(systemName int, accountName int, url string) (string, error)
- func (managedAccounObj *ManagedAccountstObj) ManagedAccountGet(systemName string, accountName string, url string) (entities.ManagedAccount, error)
- func (managedAccounObj *ManagedAccountstObj) ManagedAccountRequestCheckIn(requestId string, url string) (string, error)
- func (managedAccounObj *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 (managedAccounObj *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 (managedAccounObj *ManagedAccountstObj) GetSecret(secretPath string, separator string) (string, error)
GetSecret returns secret value for a specific System Name and Account Name.
func (*ManagedAccountstObj) GetSecrets ¶
func (managedAccounObj *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 (managedAccounObj *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 (managedAccounObj *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 (managedAccounObj *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 (managedAccounObj *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 (managedAccounObj *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 (managedAccounObj *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 (managedAccounObj *ManagedAccountstObj) ManagedSystemGetSystems(url string) ([]entities.ManagedSystemResponse, error)
ManagedAccountGetSystem is responsible for retrieving managed systems list