plugins

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeConfig

func GetKubeConfig(ctx context.Context, provider string, clusterName string, kubeconfigPath string) error

func GetProviders

func GetProviders() []string

func RegisterKubeConfigProvider

func RegisterKubeConfigProvider(name string, factory KubeConfigProviderFactory)

func RegisterProvider

func RegisterProvider(name string, provider ProviderFactory)

Types

type ExecutionContext

type ExecutionContext struct {
}

type KubeConfigProvider

type KubeConfigProvider interface {
	ExportKubeConfig(ctx context.Context, clusterName string, kubeConfigPath string) error
}

func GetKubeConfigProvider

func GetKubeConfigProvider(ctx context.Context, name string) (KubeConfigProvider, bool)

type KubeConfigProviderFactory

type KubeConfigProviderFactory func(conf *config.Configuration) KubeConfigProvider

type Provider

type Provider interface {
	InitStackContext(background context.Context, config schema.StackConfig) context.Context
	ProcessComponentConfig(ctx context.Context, componentName string, componentConfig schema.ComponentConfig) (any, error)
}

func GetProvider

func GetProvider(ctx context.Context, name string) (Provider, bool)

type ProviderFactory

type ProviderFactory func(conf *config.Configuration) Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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