Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbandonedInstance ¶
AbandonedInstance handles the instance struct
func (*AbandonedInstance) DaysAgoCreated ¶
func (a *AbandonedInstance) DaysAgoCreated() int64
func (*AbandonedInstance) DaysAgoStarted ¶
func (a *AbandonedInstance) DaysAgoStarted() int64
func (*AbandonedInstance) DaysAgoStopped ¶
func (a *AbandonedInstance) DaysAgoStopped() int64
type AbandonedInstances ¶
type AbandonedInstances []*AbandonedInstance
AbandonedInstances handles the instances struct
func (AbandonedInstances) GetCost ¶
func (i AbandonedInstances) GetCost(skus *catalogue.SKUs) float64
GetCost returns the sum of the disks' cost
func (AbandonedInstances) GetCount ¶
func (i AbandonedInstances) GetCount() int
GetCount returns the number of instances
type Service ¶
type Service interface { List(ctx context.Context, filter string) (*AbandonedInstances, error) FilterAbandoned(instances *AbandonedInstances, days int) error Table(instances *AbandonedInstances, skus *catalogue.SKUs) table.Writer Close() error }
Service Implements the instance service
Click to show internal directories.
Click to hide internal directories.