cyberark

package
v1.10.2-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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, serviceMap *servicediscovery.Services, tenantUUID string, 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

type ClientConfig struct {
	Subdomain string
	Username  string
	Secret    string
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL