Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasMetadata ¶ added in v0.4.0
func HasMetadata(state *MachineState, metadata map[string][]string) bool
HasMetadata determine if the Metadata of a given MachineState matches the indicated values.
func IsLocalMachineState ¶ added in v0.2.0
func IsLocalMachineState(ms *MachineState) bool
IsLocalMachineState checks whether machine state matches the state of local machine
func TestFakeMachine ¶ added in v0.4.0
Types ¶
type CoreOSMachine ¶ added in v0.4.0
func NewCoreOSMachine ¶ added in v0.4.0
func NewCoreOSMachine(static MachineState) *CoreOSMachine
func (*CoreOSMachine) PeriodicRefresh ¶ added in v0.4.0
func (m *CoreOSMachine) PeriodicRefresh(interval time.Duration, stop chan bool)
PeriodicRefresh updates the current state of the CoreOSMachine at the interval indicated. Operation ceases when the provided channel is closed.
func (*CoreOSMachine) Refresh ¶ added in v0.4.0
func (m *CoreOSMachine) Refresh()
Refresh updates the current state of the CoreOSMachine.
func (*CoreOSMachine) State ¶ added in v0.4.0
func (m *CoreOSMachine) State() (state MachineState)
State returns a MachineState object representing the CoreOSMachine's static state overlaid on its dynamic state at the time of execution.
func (*CoreOSMachine) String ¶ added in v0.4.0
func (m *CoreOSMachine) String() string
type FakeMachine ¶ added in v0.4.0
type FakeMachine struct {
MachineState MachineState
}
func (*FakeMachine) State ¶ added in v0.4.0
func (fm *FakeMachine) State() MachineState
type Machine ¶
type Machine interface {
State() MachineState
}
type MachineState ¶ added in v0.1.1
type MachineState struct { ID string PublicIP string Metadata map[string]string Version string TotalResources resource.ResourceTuple }
MachineState represents a point-in-time snapshot of the state of the local host.
func (MachineState) MatchID ¶ added in v0.3.0
func (s MachineState) MatchID(ID string) bool
func (MachineState) ShortID ¶ added in v0.3.0
func (s MachineState) ShortID() string
Click to show internal directories.
Click to hide internal directories.