action

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOneSyncPathSupported = errors.New("only one sync path is supported")

	ErrRemoteDevNotInitialized = errors.New("call Up.Run() successfully before calling other methods")
)
View Source
var ErrResourceKindNotSupported = errors.New("resource kind not supported")

Functions

This section is empty.

Types

type Action

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

func NewAction

func NewAction(
	environment sdk.EnvironmentItem,
) *Action

func (*Action) GetRemoteDev

func (action *Action) GetRemoteDev(resource sdk.ComponentResourceItem) (*remote.RemoteDevelopment, error)

type Down

type Down struct {
	Action
}

func NewDown

func NewDown(
	environment sdk.EnvironmentItem,
) *Down

func (*Down) Run

func (down *Down) Run(parameters *DownParameters) error

type DownParameters

type DownParameters struct {
	Resource sdk.ComponentResourceItem
}

type Up

type Up struct {
	Action
	// contains filtered or unexported fields
}

func NewUp

func NewUp(
	environment sdk.EnvironmentItem,
) *Up

func (*Up) Run

func (up *Up) Run(parameters *UpParameters) error

func (*Up) StartSSHTerminal

func (up *Up) StartSSHTerminal() error

func (*Up) Wait

func (up *Up) Wait() error

type UpOptions

type UpOptions struct {
	ContainerName string

	Profile *sdk.ProfileItem

	EnvironPairs []string

	WaitTimeout int64
}

type UpParameters

type UpParameters struct {
	Resource sdk.ComponentResourceItem

	SyncMode mutagenConfig.Mode

	ManualSelectSingleResource bool

	LocalSyncPath  string
	RemoteSyncPath string

	PortMappings []string

	Options *UpOptions
}

func (*UpParameters) FillFromOptions

func (params *UpParameters) FillFromOptions() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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