Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type AWSProvider ¶
type AWSProvider struct {
// contains filtered or unexported fields
}
func (*AWSProvider) GetIMDSv2Token ¶
func (p *AWSProvider) GetIMDSv2Token(ctx context.Context) (string, error)
GetIMDSv2Token gets an IMDSv2 token for secure metadata access
func (*AWSProvider) GetPrimaryIPv6 ¶
GetPrimaryIPv6 returns the primary IPv6 address
func (*AWSProvider) GetPublicIPv4 ¶
GetPublicIPv4 returns the public IPv4 address
func (*AWSProvider) Name ¶
func (p *AWSProvider) Name() string
type AzureProvider ¶
type AzureProvider struct {
// contains filtered or unexported fields
}
func (*AzureProvider) GetPrimaryIPv6 ¶
func (*AzureProvider) GetPublicIPv4 ¶
func (*AzureProvider) Name ¶
func (p *AzureProvider) Name() string
type Config ¶
type Config struct {
// Timeout for metadata service requests. Defaults to 500 milliseconds.
MetadataTimeout time.Duration
// Use this destination IP to determine the default source IP for IPv4
// when using the LocalProvider. Defaults to 8.8.8.8.
IPv4RouteDst netip.Addr
// Use this destination IP to determine the default source IP for IPv6
// when using the LocalProvider. Defaults to 2001:4860:4860::8888.
IPv6RouteDst netip.Addr
}
type GCPProvider ¶
type GCPProvider struct {
// contains filtered or unexported fields
}
func (*GCPProvider) GetPrimaryIPv6 ¶
func (*GCPProvider) GetPublicIPv4 ¶
func (*GCPProvider) Name ¶
func (p *GCPProvider) Name() string
type LocalProvider ¶
type LocalProvider struct{}
func (*LocalProvider) GetPrimaryIPv6 ¶
func (*LocalProvider) GetPublicIPv4 ¶
func (*LocalProvider) Name ¶
func (p *LocalProvider) Name() string
type OCIProvider ¶
type OCIProvider struct {
// contains filtered or unexported fields
}
func (*OCIProvider) GetPrimaryIPv6 ¶
func (*OCIProvider) GetPublicIPv4 ¶
func (*OCIProvider) Name ¶
func (p *OCIProvider) Name() string
type OpenStackProvider ¶
type OpenStackProvider struct {
// contains filtered or unexported fields
}
func (*OpenStackProvider) GetPrimaryIPv6 ¶
func (*OpenStackProvider) GetPublicIPv4 ¶
func (*OpenStackProvider) Name ¶
func (p *OpenStackProvider) Name() string
type Provider ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.