clients

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Directories

Path Synopsis
lan
nic
dbaas
k8s

Jump to

Keyboard shortcuts

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