instancemapping

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultClientFactory

func DefaultClientFactory(ctx context.Context, creds hanacloud.AdminAPICredentials, log logging.Logger) (imclient.Client, error)

DefaultClientFactory creates a real HANA Cloud client.

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles InstanceMapping managed resources.

Types

type ClientFactory

type ClientFactory func(ctx context.Context, creds hanacloud.AdminAPICredentials, log logging.Logger) (imclient.Client, error)

ClientFactory creates an instancemapping.Client from credentials. This allows injecting mock clients for testing.

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

Connector produces an ExternalClient when its Connect method is called. Connector is exported for testing.

func NewConnector

func NewConnector(kube client.Client, log logging.Logger, factory ClientFactory) *Connector

NewConnector creates a Connector with the given client factory. If factory is nil, DefaultClientFactory is used.

func (*Connector) Connect

Connect establishes a connection to the HANA Cloud Admin API using credentials from the referenced Secret.

Jump to

Keyboard shortcuts

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