Skip to content

Commit

Permalink
Rename WorkerStatus to HostStatus (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
matttpt committed Apr 25, 2024
1 parent e6d56f0 commit 15be87a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ type Machine struct {
InstanceID string `json:"instance_id,omitempty"`
Version string `json:"version,omitempty"`
// PrivateIP is the internal 6PN address of the machine.
PrivateIP string `json:"private_ip,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Config *MachineConfig `json:"config,omitempty"`
Events []*MachineEvent `json:"events,omitempty"`
Checks []*MachineCheckStatus `json:"checks,omitempty"`
WorkerStatus string `json:"worker_status,omitempty"`
LeaseNonce string `json:"nonce,omitempty"`
PrivateIP string `json:"private_ip,omitempty"`
CreatedAt string `json:"created_at,omitempty"`
UpdatedAt string `json:"updated_at,omitempty"`
Config *MachineConfig `json:"config,omitempty"`
Events []*MachineEvent `json:"events,omitempty"`
Checks []*MachineCheckStatus `json:"checks,omitempty"`
HostStatus string `json:"host_status,omitempty"`
LeaseNonce string `json:"nonce,omitempty"`
}

func (m *Machine) FullImageRef() string {
Expand Down
2 changes: 1 addition & 1 deletion volume_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Volume struct {
HostDedicationID string `json:"host_dedication_id"`
SnapshotRetention int `json:"snapshot_retention"`
AutoBackupEnabled bool `json:"auto_backup_enabled"`
WorkerStatus string `json:"worker_status,omitempty"`
HostStatus string `json:"host_status,omitempty"`
}

func (v Volume) IsAttached() bool {
Expand Down

0 comments on commit 15be87a

Please sign in to comment.