provider

package
v0.3.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package provider contains the interface required to support the Liqo install for a given provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonArguments

type CommonArguments struct {
	Version string
	Debug   bool
	Timeout time.Duration
}

CommonArguments encapsulates all the arguments common across install providers.

func ValidateCommonArguments

func ValidateCommonArguments(flags *flag.FlagSet) (*CommonArguments, error)

ValidateCommonArguments validates install common arguments. If the inputs are valid, it returns a *CommonArgument with all the parameters contents.

type InstallProviderInterface

type InstallProviderInterface interface {
	// ValidateCommandArguments validates the flags passed as arguments to the install command
	ValidateCommandArguments(*flag.FlagSet) error
	// ExtractChartParameters retrieves the install parameters required for a correct installation. This may require
	// instantiating extra clients to interact with cloud provider or the target cluster.
	ExtractChartParameters(context.Context, *rest.Config) error
	// UpdateChartValues patches the values map of a selected chart, modifying keys and entries to correctly install Liqo on a given
	// provider
	UpdateChartValues(values map[string]interface{})
}

InstallProviderInterface defines the methods required to support the Liqo install for a given provider.

Jump to

Keyboard shortcuts

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