Documentation ¶
Overview ¶
Package cloudprovider implements a metadata service for cloud providers.
Index ¶
- type Fetcher
- func (f *Fetcher) DiscoverDebugdIPs(ctx context.Context) ([]string, error)
- func (f *Fetcher) DiscoverLoadbalancerIP(ctx context.Context) (string, error)
- func (f *Fetcher) Role(ctx context.Context) (role.Role, error)
- func (f *Fetcher) Self(ctx context.Context) (metadata.InstanceMetadata, error)
- func (f *Fetcher) UID(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher checks the metadata service to search for instances that were set up for debugging.
func (*Fetcher) DiscoverDebugdIPs ¶
DiscoverDebugdIPs will query the metadata of all instances and return any ips of instances already set up for debugging.
func (*Fetcher) DiscoverLoadbalancerIP ¶
DiscoverLoadbalancerIP gets load balancer IP from metadata API.
Click to show internal directories.
Click to hide internal directories.