gcp: pass context to metadata functions (#3228)

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-07-03 14:41:29 +02:00 committed by GitHub
parent 7b6c3a710e
commit 20269ab46e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 23 deletions

View file

@ -91,14 +91,14 @@ type fakeMetadataClient struct {
zoneErr error
}
func (c fakeMetadataClient) ProjectID() (string, error) {
func (c fakeMetadataClient) ProjectID(_ context.Context) (string, error) {
return c.projectIDString, c.projecIDErr
}
func (c fakeMetadataClient) InstanceName() (string, error) {
func (c fakeMetadataClient) InstanceName(_ context.Context) (string, error) {
return c.instanceNameString, c.instanceNameErr
}
func (c fakeMetadataClient) Zone() (string, error) {
func (c fakeMetadataClient) Zone(_ context.Context) (string, error) {
return c.zoneString, c.zoneErr
}