cadvisor: github.com/google/cadvisor/utils/cloudinfo Index | Files | Directories

package cloudinfo

import "github.com/google/cadvisor/utils/cloudinfo"

Index

Package Files

cloudinfo.go

func RegisterCloudProvider Uses

func RegisterCloudProvider(name info.CloudProvider, provider CloudProvider)

RegisterCloudProvider registers the given cloud provider

type CloudInfo Uses

type CloudInfo interface {
    GetCloudProvider() info.CloudProvider
    GetInstanceType() info.InstanceType
    GetInstanceID() info.InstanceID
}

func NewRealCloudInfo Uses

func NewRealCloudInfo() CloudInfo

type CloudProvider Uses

type CloudProvider interface {
    // IsActiveProvider determines whether this is the cloud provider operating
    // this instance.
    IsActiveProvider() bool
    // GetInstanceType gets the type of instance this process is running on.
    // The behavior is undefined if this is not the active provider.
    GetInstanceType() info.InstanceType
    // GetInstanceType gets the ID of the instance this process is running on.
    // The behavior is undefined if this is not the active provider.
    GetInstanceID() info.InstanceID
}

CloudProvider is an abstraction for providing cloud-specific information.

Directories

PathSynopsis
aws
azure
gce

Package cloudinfo imports 2 packages (graph) and is imported by 125 packages. Updated 2020-05-21. Refresh now. Tools for package owners.