Documentation
¶
Index ¶
Constants ¶
const (
// MockDiscoverySubdomain is the subdomain for which the MockDiscoveryServer will return a success response
MockDiscoverySubdomain = "venafi-test"
)
Variables ¶
This section is empty.
Functions ¶
func MockDiscoveryServer ¶ added in v1.6.0
func MockDiscoveryServer() *mockDiscoveryServer
MockDiscoveryServer returns a mocked discovery server with a default value for the Identity API. The returned server should be Closed by the caller after use.
func MockDiscoveryServerWithCustomAPIURL ¶ added in v1.6.0
func MockDiscoveryServerWithCustomAPIURL(apiURL string) *mockDiscoveryServer
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Golang client for interacting with the CyberArk Discovery Service. It allows users to fetch URLs for various APIs available in CyberArk. This client is specialised to fetch only API endpoints, since only API endpoints are required by the Venafi Kubernetes Agent currently.
type ClientOpt ¶
type ClientOpt func(*Client)
ClientOpt allows configuration of a Client when using New
func WithCustomEndpoint ¶
WithCustomEndpoint sets the endpoint to a custom URL without checking that the URL is a CyberArk Service Discovery server.
func WithHTTPClient ¶
WithHTTPClient allows the user to specify a custom HTTP client for the discovery client
func WithIntegrationEndpoint ¶
func WithIntegrationEndpoint() ClientOpt
WithIntegrationEndpoint sets the discovery client to use the integration testing endpoint rather than production