provider

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 interface {
	Install() error
	Start(opts *StartOptions) (string, error)
	Stop() error
}

func NewProvider

func NewProvider(providerId string, project *project.Project, fs afero.Fs) (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 ProviderImage added in v1.39.0

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

func NewImageProvider added in v1.39.0

func NewImageProvider(imageName string) *ProviderImage

NewImageProvider - Returns a new image provider instance based on the given image name [registry-host[:port]/][username/]repository[:tag]

func (*ProviderImage) Install added in v1.39.0

func (pi *ProviderImage) Install() error

func (*ProviderImage) Start added in v1.39.0

func (pi *ProviderImage) Start(options *StartOptions) (string, error)

func (*ProviderImage) Stop added in v1.39.0

func (pi *ProviderImage) Stop() error

func (*ProviderImage) Uninstall added in v1.39.0

func (pi *ProviderImage) Uninstall() error

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

type StandardProvider added in v1.39.0

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

func NewStandardProvider added in v1.39.0

func NewStandardProvider(providerId string, fs afero.Fs) (*StandardProvider, error)

func (*StandardProvider) Install added in v1.39.0

func (sp *StandardProvider) Install() error

func (*StandardProvider) Start added in v1.39.0

func (sp *StandardProvider) Start(opts *StartOptions) (string, error)

func (*StandardProvider) Stop added in v1.39.0

func (sp *StandardProvider) Stop() error

type StartOptions added in v1.39.0

type StartOptions struct {
	Env    map[string]string
	StdOut chan<- string
	StdErr chan<- string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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