MCPcopy
hub / github.com/google/cadvisor / CloudProvider

Interface CloudProvider

utils/cloudinfo/cloudinfo.go:32–42  ·  view source on GitHub ↗

CloudProvider is an abstraction for providing cloud-specific information.

Source from the content-addressed store, hash-verified

30
31// CloudProvider is an abstraction for providing cloud-specific information.
32type CloudProvider interface {
33 // IsActiveProvider determines whether this is the cloud provider operating
34 // this instance.
35 IsActiveProvider() bool
36 // GetInstanceType gets the type of instance this process is running on.
37 // The behavior is undefined if this is not the active provider.
38 GetInstanceType() info.InstanceType
39 // GetInstanceType gets the ID of the instance this process is running on.
40 // The behavior is undefined if this is not the active provider.
41 GetInstanceID() info.InstanceID
42}
43
44var providers = map[info.CloudProvider]CloudProvider{}
45

Callers 1

NewRealCloudInfoFunction · 0.65

Implementers 3

providerutils/cloudinfo/azure/azure.go
providerutils/cloudinfo/aws/aws.go
providerutils/cloudinfo/gce/gce.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…