Documentation ¶
Index ¶
- Constants
- type DigitalOcean
- func (d *DigitalOcean) Configuration(ctx context.Context) ([]byte, error)
- func (d *DigitalOcean) ExternalIPs(ctx context.Context) (addrs []net.IP, err error)
- func (d *DigitalOcean) Hostname(ctx context.Context) (hostname []byte, err error)
- func (d *DigitalOcean) KernelArgs() procfs.Parameters
- func (d *DigitalOcean) Mode() runtime.Mode
- func (d *DigitalOcean) Name() string
Constants ¶
View Source
const ( // DigitalOceanExternalIPEndpoint displays all external addresses associated with the instance DigitalOceanExternalIPEndpoint = "http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address" // DigitalOceanHostnameEndpoint is the local endpoint for the hostname. DigitalOceanHostnameEndpoint = "http://169.254.169.254/metadata/v1/hostname" // DigitalOceanUserDataEndpoint is the local endpoint for the config. DigitalOceanUserDataEndpoint = "http://169.254.169.254/metadata/v1/user-data" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DigitalOcean ¶
type DigitalOcean struct{}
DigitalOcean is the concrete type that implements the platform.Platform interface.
func (*DigitalOcean) Configuration ¶
func (d *DigitalOcean) Configuration(ctx context.Context) ([]byte, error)
Configuration implements the platform.Platform interface.
func (*DigitalOcean) ExternalIPs ¶
ExternalIPs implements the runtime.Platform interface.
func (*DigitalOcean) Hostname ¶
func (d *DigitalOcean) Hostname(ctx context.Context) (hostname []byte, err error)
Hostname implements the platform.Platform interface.
func (*DigitalOcean) KernelArgs ¶
func (d *DigitalOcean) KernelArgs() procfs.Parameters
KernelArgs implements the runtime.Platform interface.
func (*DigitalOcean) Mode ¶
func (d *DigitalOcean) Mode() runtime.Mode
Mode implements the platform.Platform interface.
func (*DigitalOcean) Name ¶
func (d *DigitalOcean) Name() string
Name implements the platform.Platform interface.
Click to show internal directories.
Click to hide internal directories.