Documentation
¶
Index ¶
- func CheckIfMachineMissing(client Client) error
- func GetGlobalKubeConfig() (string, *api.Config, error)
- type Client
- type MissingHostError
- type State
- type Synchronized
- func (s *Synchronized) ConnectionDetails() (*types.ConnectionDetails, error)
- func (s *Synchronized) CurrentState() State
- func (s *Synchronized) Delete() error
- func (s *Synchronized) Exists() (bool, error)
- func (s *Synchronized) GenerateBundle(forceStop bool) error
- func (s *Synchronized) GetClusterLoad() (*types.ClusterLoadResult, error)
- func (s *Synchronized) GetConsoleURL() (*types.ConsoleResult, error)
- func (s *Synchronized) GetName() string
- func (s *Synchronized) GetPreset() crcPreset.Preset
- func (s *Synchronized) IsRunning() (bool, error)
- func (s *Synchronized) PowerOff() error
- func (s *Synchronized) Start(ctx context.Context, startConfig types.StartConfig) (*types.StartResult, error)
- func (s *Synchronized) Status() (*types.ClusterStatusResult, error)
- func (s *Synchronized) Stop() (state.State, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfMachineMissing ¶
Types ¶
type Client ¶
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) GetClusterLoad() (*types.ClusterLoadResult, error) Stop() (state.State, error) IsRunning() (bool, error) GenerateBundle(forceStop bool) error GetPreset() crcPreset.Preset }
type MissingHostError ¶
type MissingHostError struct {
// contains filtered or unexported fields
}
func (*MissingHostError) Error ¶
func (err *MissingHostError) Error() string
type Synchronized ¶
type Synchronized struct {
// contains filtered or unexported fields
}
func NewSynchronizedMachine ¶
func NewSynchronizedMachine(machine Client) *Synchronized
func (*Synchronized) ConnectionDetails ¶
func (s *Synchronized) ConnectionDetails() (*types.ConnectionDetails, error)
func (*Synchronized) CurrentState ¶
func (s *Synchronized) CurrentState() State
func (*Synchronized) Delete ¶
func (s *Synchronized) Delete() error
func (*Synchronized) Exists ¶
func (s *Synchronized) Exists() (bool, error)
func (*Synchronized) GenerateBundle ¶
func (s *Synchronized) GenerateBundle(forceStop bool) error
func (*Synchronized) GetClusterLoad ¶
func (s *Synchronized) GetClusterLoad() (*types.ClusterLoadResult, error)
func (*Synchronized) GetConsoleURL ¶
func (s *Synchronized) GetConsoleURL() (*types.ConsoleResult, error)
func (*Synchronized) GetName ¶
func (s *Synchronized) GetName() string
func (*Synchronized) GetPreset ¶
func (s *Synchronized) GetPreset() crcPreset.Preset
func (*Synchronized) IsRunning ¶
func (s *Synchronized) IsRunning() (bool, error)
func (*Synchronized) PowerOff ¶
func (s *Synchronized) PowerOff() error
func (*Synchronized) Start ¶
func (s *Synchronized) Start(ctx context.Context, startConfig types.StartConfig) (*types.StartResult, error)
func (*Synchronized) Status ¶
func (s *Synchronized) Status() (*types.ClusterStatusResult, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.