X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/458436270ce8fb80d421d55e192236c5ac4a225e..995df5b03c9304bc956b02e50225ad2e1f9dfd8d:/lib/cloud/interfaces.go diff --git a/lib/cloud/interfaces.go b/lib/cloud/interfaces.go index 7f59049681..27cf26152c 100644 --- a/lib/cloud/interfaces.go +++ b/lib/cloud/interfaces.go @@ -102,8 +102,11 @@ type Instance interface { // Replace tags with the given tags SetTags(InstanceTags) error - // Get recent price history, if available - PriceHistory() []InstancePrice + // Get recent price history, if available. The InstanceType is + // supplied as an argument so the driver implementation can + // account for AddedScratch cost without requesting the volume + // attachment information from the provider's API. + PriceHistory(arvados.InstanceType) []InstancePrice // Shut down the node Destroy() error