1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
8 "git.curoverse.com/arvados.git/lib/cloud"
9 "git.curoverse.com/arvados.git/sdk/go/arvados"
10 "golang.org/x/crypto/ssh"
13 type instanceSetProxy struct {
17 func (is *instanceSetProxy) Create(it arvados.InstanceType, id cloud.ImageID, tags cloud.InstanceTags, pk ssh.PublicKey) (cloud.Instance, error) {
18 // TODO: return if Create failed recently with a RateLimitError or QuotaError
19 return is.InstanceSet.Create(it, id, tags, pk)
22 func (is *instanceSetProxy) Instances(tags cloud.InstanceTags) ([]cloud.Instance, error) {
23 // TODO: return if Instances failed recently with a RateLimitError
24 return is.InstanceSet.Instances(tags)