provider

package
v0.0.0-...-9f0be23 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ProviderId            string
	ProviderVersionId     string
	EnvironmentProviderId string
	protobuf.ProviderClient
}

type Clients

type Clients map[string]deploymentProviderClient

func SetupProviders

func SetupProviders(ctx context.Context, logger logrus.FieldLogger, providers []Provider, opt ...Opt) (Clients, error)

func (Clients) Get

func (c Clients) Get(environmentProviderId string) (*Client, error)

func (Clients) GetByVersionId

func (c Clients) GetByVersionId(providerVersionId string) (*Client, error)

func (Clients) Shutdown

func (c Clients) Shutdown(logger logrus.FieldLogger)

type Opt

type Opt func(*setupOptions)

func WithConfigurationValueResolver

func WithConfigurationValueResolver(configurationValueResolver value.ConfigurationValueResolver) Opt

func WithDisableCache

func WithDisableCache(disable bool) Opt

func WithLocalProviders

func WithLocalProviders(localProviders map[string]int) Opt

func WithProviderLogLevel

func WithProviderLogLevel(logLevel string) Opt

func WithShellName

func WithShellName(shellName string) Opt

type Provider

type Provider struct {
	ProviderId        string                    `json:"providerId"`
	ProviderVersionId string                    `json:"providerVersionId"`
	ExecutionSettings ProviderExecutionSettings `json:"executionSettings"`
	Usages            []ProviderUsage           `json:"usages"`
}

type ProviderExecutionSettings

type ProviderExecutionSettings struct {
	Binary ProviderVersionBinary `json:"binary"`
}

type ProviderUsage

type ProviderUsage struct {
	EnvironmentProviderId string        `json:"environmentProviderId"`
	Configuration         []value.Input `json:"configuration"`
}

type ProviderVersionBinary

type ProviderVersionBinary struct {
	URL      string `json:"url"`
	CheckSum string `json:"checkSum"`
}

Jump to

Keyboard shortcuts

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