Documentation ¶
Index ¶
Constants ¶
View Source
const (
// UserAgent is the user agent addition that identifies the Crossplane IONOS Cloud Clients
UserAgent = "crossplane-provider-ionoscloud"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IonosServices ¶
type IonosServices struct { DBaaSPostgresClient *ionoscloud.APIClient ComputeClient *sdkgo.APIClient }
IonosServices contains ionos clients
func ConnectForCRD ¶
func ConnectForCRD(ctx context.Context, mg resource.Managed, client kubeclient.Client, t resource.Tracker) (*IonosServices, error)
ConnectForCRD resolves the referenced ProviderConfig and extracts the connection secret from that ProviderConfig. After that an ionos client is setup with those credentials.
func NewIonosClients ¶
func NewIonosClients(data []byte) (*IonosServices, error)
NewIonosClients creates a IonosService from the given data. The data must be a json struct with the fields `User`, `Password`, `Token`. Both fields must be a string value. The password string must be base64 encoded.
Click to show internal directories.
Click to hide internal directories.