pipelineutil

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExoscaleAPIKey identifies the key in which the API Key of the exoscale.com is expected in a Secret.
	ExoscaleAPIKey = "EXOSCALE_API_KEY"
	// ExoscaleAPISecret identifies the secret in which the API Secret of the exoscale.com is expected in a Secret.
	ExoscaleAPISecret = "EXOSCALE_API_SECRET"
)

Variables

This section is empty.

Functions

func DebugLogger

func DebugLogger[T context.Context](ctx T) pipeline.Listener[T]

DebugLogger returns a list with a single hook that logs the step name. The logger is retrieved from the given context.

func FetchProviderConfig added in v0.10.0

func FetchProviderConfig(ctx context.Context, kube client.Client, providerConfigRef string) (string, string, error)

FetchProviderConfig returns the apiKey and apiSecret of the given providerConfigRef

Types

type ExoscaleConnector added in v0.2.0

type ExoscaleConnector struct {
	ApiKey    string
	ApiSecret string
	Exoscale  *exoscalesdk.Client
}

func OpenExoscaleClient added in v0.2.0

func OpenExoscaleClient(ctx context.Context, kube client.Client, providerConfigRef string, opts ...exoscalesdk.ClientOpt) (*ExoscaleConnector, error)

OpenExoscaleClient fetches the ProviderConfig given by the name, fetches the API secret and returns a ExoscaleConnector with an initialized client.

Jump to

Keyboard shortcuts

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