cyberark

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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, 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