Documentation ¶
Index ¶
- type Client
- func (c Client) AddAccount(account requests.AddAccount) (*responses.GetAccount, error)
- func (c Client) AddApplication(application requests.AddApplication) error
- func (c Client) AddApplicationAuthenticationMethod(appID string, authenticationMethod requests.AddApplicationAuthentication) error
- func (c Client) AddSafe(body requests.AddSafe) error
- func (c Client) AddSafeMember(safeName string, addMember requests.AddSafeMember) error
- func (c Client) AddUser(user requests.AddUser) (responses.AddUser, error)
- func (c Client) ChangeAccountCredentials(accountID string, changeEntireGroup bool) error
- func (c Client) DeleteAccount(accountID string) error
- func (c Client) DeleteApplication(appID string) error
- func (c Client) DeleteApplicationAuthenticationMethod(appID string, authnMethodID string) error
- func (c Client) DeleteSafe(safeName string) error
- func (c Client) DeleteUser(userID int) error
- func (c Client) GetAccount(accountID string) (*responses.GetAccount, error)
- func (c Client) GetAccountPassword(accountID string, request requests.GetAccountPassword) (string, error)
- func (c Client) GetAccountSSHKey(accountID string, request requests.GetAccountPassword) (string, error)
- func (c Client) GetJITAccess(accountID string) error
- func (c *Client) GetLogger() logger.Logger
- func (c *Client) IsValid() error
- func (c Client) ListAccounts(query *queries.ListAccounts) (*responses.ListAccount, error)
- func (c Client) ListApplicationAuthenticationMethods(appID string) (*responses.ListApplicationAuthenticationMethods, error)
- func (c Client) ListApplications(location string) (*responses.ListApplications, error)
- func (c Client) ListSafeMembers(safeName string) (*responses.ListSafeMembers, error)
- func (c Client) ListSafes() (*responses.ListSafes, error)
- func (c Client) ListUsers(query *queries.ListUsers) (responses.ListUsers, error)
- func (c Client) Logoff() error
- func (c *Client) Logon(req requests.Logon) error
- func (c Client) ReconileAccountCredentials(accountID string) error
- func (c *Client) RemoveConfig() error
- func (c Client) RemoveSafeMember(safeName string, member string) error
- func (c Client) RevokeJITAccess(accountID string) error
- func (c Client) ServerVerify() (*responses.ServerVerify, error)
- func (c *Client) SetConfig() error
- func (c Client) UnsuspendUser(username string) error
- func (c Client) UpdateSafe(targetSafeName string, body requests.UpdateSafe) (*responses.UpdateSafe, error)
- func (c Client) VerifyAccountCredentials(accountID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string AuthType string InsecureTLS bool SessionToken string Logger logger.Logger }
Client contains the data necessary for requests to pass successfully
func GetConfigWithLogger ¶
GetConfigWithLogger is the same as GetConfig except it also sets the logger
func (Client) AddAccount ¶
func (c Client) AddAccount(account requests.AddAccount) (*responses.GetAccount, error)
AddAccount to cyberark
func (Client) AddApplication ¶
func (c Client) AddApplication(application requests.AddApplication) error
AddApplication add an applications to PAS
func (Client) AddApplicationAuthenticationMethod ¶
func (c Client) AddApplicationAuthenticationMethod(appID string, authenticationMethod requests.AddApplicationAuthentication) error
AddApplicationAuthenticationMethod add authentication method to an application
func (Client) AddSafeMember ¶
func (c Client) AddSafeMember(safeName string, addMember requests.AddSafeMember) error
AddSafeMember Add a user or application as a member to a safe with specific permissions
func (Client) ChangeAccountCredentials ¶
ChangeAccountCredentials marks an account for immediate change
func (Client) DeleteAccount ¶
DeleteAccount from cyberark
func (Client) DeleteApplication ¶
DeleteApplication delete an applications to PAS
func (Client) DeleteApplicationAuthenticationMethod ¶
DeleteApplicationAuthenticationMethod delete an applications authentication method
func (Client) DeleteSafe ¶
DeleteSafe will remove the safeName given to the function via PAS REST API
func (Client) GetAccount ¶
func (c Client) GetAccount(accountID string) (*responses.GetAccount, error)
GetAccount details for specific account
func (Client) GetAccountPassword ¶
func (c Client) GetAccountPassword(accountID string, request requests.GetAccountPassword) (string, error)
GetAccountPassword This method enables users to retrieve the password or SSH key of an existing account that is identified by its Account ID. It enables users to specify a reason and ticket ID, if required
func (Client) GetAccountSSHKey ¶
func (c Client) GetAccountSSHKey(accountID string, request requests.GetAccountPassword) (string, error)
GetAccountSSHKey This method enables users to retrieve the password or SSH key of an existing account that is identified by its Account ID. It enables users to specify a reason and ticket ID, if required
func (Client) GetJITAccess ¶
GetJITAccess from a specific account
func (Client) ListAccounts ¶
func (c Client) ListAccounts(query *queries.ListAccounts) (*responses.ListAccount, error)
ListAccounts CyberArk user has access to
func (Client) ListApplicationAuthenticationMethods ¶
func (c Client) ListApplicationAuthenticationMethods(appID string) (*responses.ListApplicationAuthenticationMethods, error)
ListApplicationAuthenticationMethods returns all auth methods for a specific Application Identity
func (Client) ListApplications ¶
func (c Client) ListApplications(location string) (*responses.ListApplications, error)
ListApplications returns all Application Identities setup in PAS
func (Client) ListSafeMembers ¶
func (c Client) ListSafeMembers(safeName string) (*responses.ListSafeMembers, error)
ListSafeMembers List all members of a safe
func (Client) ListUsers ¶
ListUsers returns a list of all existing users in the Vault except for the Master and the Batch built-in users.
func (*Client) Logon ¶
Logon to PAS REST API Web Service Because we're using concurrentSession capability, this is only supported on PAS REST API v11.3 and above
func (Client) ReconileAccountCredentials ¶
ReconileAccountCredentials marks an account for reconciliation
func (*Client) RemoveConfig ¶
RemoveConfig file on the local filesystem
func (Client) RemoveSafeMember ¶
RemoveSafeMember Remove a member from a specific safe
func (Client) RevokeJITAccess ¶
RevokeJITAccess from a specific account
func (Client) ServerVerify ¶
func (c Client) ServerVerify() (*responses.ServerVerify, error)
ServerVerify is an unauthenticated endpoint for testing Web Service availability
func (Client) UnsuspendUser ¶
UnsuspendUser activates a suspended user. It does not activate an inactive user.
func (Client) UpdateSafe ¶
func (c Client) UpdateSafe(targetSafeName string, body requests.UpdateSafe) (*responses.UpdateSafe, error)
UpdateSafe will update the safe's properties that are given for modification
func (Client) VerifyAccountCredentials ¶
VerifyAccountCredentials marks an account for verification