Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { List(ctx context.Context, filter *string) (*Snapshots, error) Close() error }
Service implements the snapshot service
type Snapshot ¶
Snapshot holds the snapshot struct
func (*Snapshot) GetSnapshotCost ¶ added in v1.1.0
func (s *Snapshot) GetSnapshotCost(skus *billingsku.BillingSKUs) float64
GetSnapshotCost returns the monthly cost for the snapshot
func (*Snapshot) GetSnapshotCreated ¶ added in v1.1.0
GetSnapshotCreated returns created timestamp in pretty format
func (*Snapshot) GetSnapshotSource ¶ added in v1.1.0
GetSnapshotSource returns source disk name
type Snapshots ¶
type Snapshots []*Snapshot
Snapshots holds the snapshots struct
func (Snapshots) GetSnapshotsCost ¶ added in v1.1.0
func (s Snapshots) GetSnapshotsCost(skus *billingsku.BillingSKUs) float64
GetSnapshotsCost returns the sum cost of all the snapshots
Click to show internal directories.
Click to hide internal directories.