aws

package
v1.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package aws contains the AWS implementation of the [platform.Platform].

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

AWS is the concrete type that implements the runtime.Platform interface.

func NewAWS

func NewAWS() (*AWS, error)

NewAWS initializes AWS platform building the IMDS client.

func (*AWS) Configuration

func (a *AWS) Configuration(ctx context.Context, r state.State) ([]byte, error)

Configuration implements the runtime.Platform interface.

func (*AWS) KernelArgs

func (a *AWS) KernelArgs() procfs.Parameters

KernelArgs implements the runtime.Platform interface.

func (*AWS) Mode

func (a *AWS) Mode() runtime.Mode

Mode implements the runtime.Platform interface.

func (*AWS) Name

func (a *AWS) Name() string

Name implements the runtime.Platform interface.

func (*AWS) NetworkConfiguration

func (a *AWS) NetworkConfiguration(ctx context.Context, _ state.State, ch chan<- *runtime.PlatformNetworkConfig) error

NetworkConfiguration implements the runtime.Platform interface.

func (*AWS) ParseMetadata

func (a *AWS) ParseMetadata(metadata *MetadataConfig) (*runtime.PlatformNetworkConfig, error)

ParseMetadata converts AWS platform metadata into platform network config.

type MetadataConfig

type MetadataConfig struct {
	Hostname          string `json:"hostname,omitempty"`
	InstanceID        string `json:"instance-id,omitempty"`
	InstanceType      string `json:"instance-type,omitempty"`
	InstanceLifeCycle string `json:"instance-life-cycle,omitempty"`
	PublicIPv4        string `json:"public-ipv4,omitempty"`
	PublicIPv6        string `json:"ipv6,omitempty"`
	Region            string `json:"region,omitempty"`
	Zone              string `json:"zone,omitempty"`
}

MetadataConfig represents a metadata AWS instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL