machine

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 55 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.15.0

type Client interface {
	GetName() string
	GetConsoleURL() (*types.ConsoleResult, error)
	ConnectionDetails() (*types.ConnectionDetails, error)

	Delete() error
	Exists() (bool, error)
	PowerOff() error
	Start(ctx context.Context, startConfig types.StartConfig) (*types.StartResult, error)
	Status() (*types.ClusterStatusResult, error)
	Stop() (state.State, error)
	IsRunning() (bool, error)
	GenerateBundle(forceStop bool) error
}

func NewClient added in v1.15.0

func NewClient(name string, debug bool, config crcConfig.Storage) Client

type State added in v1.25.0

type State string
const (
	Idle     State = "Idle"
	Deleting State = "Deleting"
	Stopping State = "Stopping"
	Starting State = "Starting"
)

type Synchronized added in v1.25.0

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

func NewSynchronizedMachine added in v1.25.0

func NewSynchronizedMachine(machine Client) *Synchronized

func (*Synchronized) ConnectionDetails added in v1.26.0

func (s *Synchronized) ConnectionDetails() (*types.ConnectionDetails, error)

func (*Synchronized) CurrentState added in v1.25.0

func (s *Synchronized) CurrentState() State

func (*Synchronized) Delete added in v1.25.0

func (s *Synchronized) Delete() error

func (*Synchronized) Exists added in v1.25.0

func (s *Synchronized) Exists() (bool, error)

func (*Synchronized) GenerateBundle added in v1.26.0

func (s *Synchronized) GenerateBundle(forceStop bool) error

func (*Synchronized) GetConsoleURL added in v1.25.0

func (s *Synchronized) GetConsoleURL() (*types.ConsoleResult, error)

func (*Synchronized) GetName added in v1.25.0

func (s *Synchronized) GetName() string

func (*Synchronized) IsRunning added in v1.25.0

func (s *Synchronized) IsRunning() (bool, error)

func (*Synchronized) PowerOff added in v1.25.0

func (s *Synchronized) PowerOff() error

func (*Synchronized) Start added in v1.25.0

func (s *Synchronized) Start(ctx context.Context, startConfig types.StartConfig) (*types.StartResult, error)

func (*Synchronized) Status added in v1.25.0

func (s *Synchronized) Status() (*types.ClusterStatusResult, error)

func (*Synchronized) Stop added in v1.25.0

func (s *Synchronized) Stop() (state.State, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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