provider

package
v1.36.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureProviderExists added in v1.34.0

func EnsureProviderExists(fs afero.Fs, prov *Provider) (string, error)

EnsureProviderExists - Ensures that the provider exists on the local file system If it doesn't exist and is a nitric provider, it will attempt to download it from the nitric releases

Types

type DeploymentClient added in v1.34.0

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

func NewDeploymentClient added in v1.34.0

func NewDeploymentClient(address string, interactive bool) *DeploymentClient

func (*DeploymentClient) Down added in v1.34.0

func (p *DeploymentClient) Down(deploymentRequest *deploy.DeploymentDownRequest) (<-chan *deploy.DeploymentDownEvent, <-chan error)

func (*DeploymentClient) Up added in v1.34.0

func (p *DeploymentClient) Up(deploymentRequest *deploy.DeploymentUpRequest) (<-chan *deploy.DeploymentUpEvent, <-chan error)

type Provider added in v1.34.0

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

func NewProvider

func NewProvider(providerId string) (*Provider, error)

NewProvider - Returns a new provider instance based on the given providerId string The providerId string is in the form of <org-name>/<provider-name>@<version>

type ProviderExecutableOption added in v1.34.0

type ProviderExecutableOption = func(*ProviderProcess)

func WithStderr added in v1.34.0

func WithStderr(stderr chan<- string) ProviderExecutableOption

func WithStdout added in v1.34.0

func WithStdout(stdout chan<- string) ProviderExecutableOption

type ProviderProcess added in v1.34.0

type ProviderProcess struct {
	Address string
	// contains filtered or unexported fields
}

ProviderProcess - A deployment engine based on a locally executable binary file

func StartProviderExecutable added in v1.34.0

func StartProviderExecutable(fs afero.Fs, executablePath string, opts ...ProviderExecutableOption) (*ProviderProcess, error)

func (*ProviderProcess) Stop added in v1.34.0

func (b *ProviderProcess) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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