Versions in this module Expand all Collapse all v0 v0.8.1 Feb 26, 2024 Changes in this version + const AWSImdsUrl + const AWSUserDataImdsUrl + func GetUserData(ctx context.Context, url string) ([]byte, error) + func IsAWS(ctx context.Context) bool + func NewEC2Client(cloudCfg Config) (*ec2.Client, error) + func NewProvider(config *Config) (provider.Provider, error) + type Config struct + AccessKeyId string + DisableCVM bool + ImageId string + InstanceType string + InstanceTypeSpecList []provider.InstanceTypeSpec + InstanceTypes instanceTypes + KeyName string + LaunchTemplateName string + LoginProfile string + Region string + RootDeviceName string + RootVolumeSize int + SecretKey string + SecurityGroupIds securityGroupIds + SubnetId string + Tags provider.KeyValueFlag + UseLaunchTemplate bool + UsePublicIP bool + func (c Config) Redact() Config + type Manager struct + func (_ *Manager) GetConfig() (config *Config) + func (_ *Manager) LoadEnv() + func (_ *Manager) NewProvider() (provider.Provider, error) + func (_ *Manager) ParseCmd(flags *flag.FlagSet) + type MetadataRetriever struct