mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-10-07 08:08:32 -04:00
gcp: pass context to metadata functions (#3228)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
7b6c3a710e
commit
20269ab46e
3 changed files with 23 additions and 23 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue