Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrMissingEnvironmentVariables = errors.New("missing environment variables: ARK_SUBDOMAIN, ARK_USERNAME, ARK_SECRET")
ErrMissingEnvironmentVariables is returned when required environment variables are not set.
Functions ¶
func NewDatauploadClient ¶
func NewDatauploadClient(ctx context.Context, httpClient *http.Client, cfg ClientConfig) (*dataupload.CyberArkClient, error)
NewDatauploadClient initializes and returns a new CyberArk Data Upload client. It performs service discovery to find the necessary API endpoints and authenticates using the provided client configuration.
Types ¶
type ClientConfig ¶
ClientConfig holds the configuration needed to initialize a CyberArk client.
func LoadClientConfigFromEnvironment ¶
func LoadClientConfigFromEnvironment() (ClientConfig, error)
LoadClientConfigFromEnvironment loads the CyberArk client configuration from environment variables. It expects the following environment variables to be set: - ARK_SUBDOMAIN: The CyberArk subdomain to use. - ARK_USERNAME: The username for authentication. - ARK_SECRET: The secret for authentication.
type ClientConfigLoader ¶
type ClientConfigLoader func() (ClientConfig, error)
ClientConfigLoader is a function type that loads and returns a ClientConfig.