Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { versioned.Interface BaseURL string BaseHost string APIKey string ProjectID uuid.UUID RESTConfig *rest.Config HTTPClient *http.Client }
APIClient represents the HTTP client with API key, project ID, and base URL configuration.
func NewAPIClient ¶
NewAPIClient creates a new instance of the APIClient.
type Option ¶ added in v0.6.0
type Option func(*APIClient)
Option defines a configuration option for the APIClient.
func WithAPIKey ¶ added in v0.6.0
WithAPIKey sets the API key for the APIClient.
func WithBaseHost ¶ added in v0.6.0
WithBaseHost sets the base host for the APIClient.
func WithBaseURL ¶ added in v0.6.0
WithBaseURL sets the base URL for the APIClient.
func WithK8sConfig ¶ added in v0.6.0
WithK8sConfig sets the Kubernetes configuration for the APIClient. If set, overriedes baseURL, baseHost, APIKey, and ProjectID.
func WithProjectID ¶ added in v0.6.0
WithProjectID sets the project ID for the APIClient.
Click to show internal directories.
Click to hide internal directories.