os

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOSPassword

func GenerateOSPassword() (string, string, error)

func IsRHEL8 added in v1.0.2

func IsRHEL8(name string) bool

IsRHEL8 returns true if the given name is a RHEL 8 OS name.

func IsUbuntu2004 added in v1.0.2

func IsUbuntu2004(name string) bool

IsUbuntu2004 returns true if the given name is an Ubuntu 2004 OS name.

Types

type AMI

type AMI struct {
	ID        string
	CreatedAt time.Time
	Version   string
}

AMI represents an ec2 Image.

type AmazonLinux2023

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

func NewAmazonLinux2023AMD

func NewAmazonLinux2023AMD() *AmazonLinux2023

func NewAmazonLinux2023ARM

func NewAmazonLinux2023ARM() *AmazonLinux2023

func (AmazonLinux2023) AMIName

func (a AmazonLinux2023) AMIName(ctx context.Context, awsConfig aws.Config) (string, error)

func (AmazonLinux2023) BuildUserData

func (a AmazonLinux2023) BuildUserData(userDataInput e2e.UserDataInput) ([]byte, error)

func (AmazonLinux2023) InstanceType

func (a AmazonLinux2023) InstanceType(region string) string

func (AmazonLinux2023) Name

func (a AmazonLinux2023) Name() string

type RedHat8

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

func NewRedHat8AMD

func NewRedHat8AMD(rhelUsername, rhelPassword string) *RedHat8

func NewRedHat8ARM

func NewRedHat8ARM(rhelUsername, rhelPassword string) *RedHat8

func (RedHat8) AMIName

func (r RedHat8) AMIName(ctx context.Context, awsConfig aws.Config) (string, error)

func (RedHat8) BuildUserData

func (r RedHat8) BuildUserData(userDataInput e2e.UserDataInput) ([]byte, error)

func (RedHat8) InstanceType

func (r RedHat8) InstanceType(region string) string

func (RedHat8) Name

func (r RedHat8) Name() string

type RedHat9

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

func NewRedHat9AMD

func NewRedHat9AMD(rhelUsername, rhelPassword string) *RedHat9

func NewRedHat9ARM

func NewRedHat9ARM(rhelUsername, rhelPassword string) *RedHat9

func (RedHat9) AMIName

func (r RedHat9) AMIName(ctx context.Context, awsConfig aws.Config) (string, error)

func (RedHat9) BuildUserData

func (r RedHat9) BuildUserData(userDataInput e2e.UserDataInput) ([]byte, error)

func (RedHat9) InstanceType

func (r RedHat9) InstanceType(region string) string

func (RedHat9) Name

func (r RedHat9) Name() string

type Ubuntu2004

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

func NewUbuntu2004AMD

func NewUbuntu2004AMD() *Ubuntu2004

func NewUbuntu2004ARM

func NewUbuntu2004ARM() *Ubuntu2004

func NewUbuntu2004DockerSource

func NewUbuntu2004DockerSource() *Ubuntu2004

func (Ubuntu2004) AMIName

func (u Ubuntu2004) AMIName(ctx context.Context, awsConfig aws.Config) (string, error)

func (Ubuntu2004) BuildUserData

func (u Ubuntu2004) BuildUserData(userDataInput e2e.UserDataInput) ([]byte, error)

func (Ubuntu2004) InstanceType

func (u Ubuntu2004) InstanceType(region string) string

func (Ubuntu2004) Name

func (u Ubuntu2004) Name() string

type Ubuntu2204

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

func NewUbuntu2204AMD

func NewUbuntu2204AMD() *Ubuntu2204

func NewUbuntu2204ARM

func NewUbuntu2204ARM() *Ubuntu2204

func NewUbuntu2204DockerSource

func NewUbuntu2204DockerSource() *Ubuntu2204

func (Ubuntu2204) AMIName

func (u Ubuntu2204) AMIName(ctx context.Context, awsConfig aws.Config) (string, error)

func (Ubuntu2204) BuildUserData

func (u Ubuntu2204) BuildUserData(userDataInput e2e.UserDataInput) ([]byte, error)

func (Ubuntu2204) InstanceType

func (u Ubuntu2204) InstanceType(region string) string

func (Ubuntu2204) Name

func (u Ubuntu2204) Name() string

type Ubuntu2404

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

func NewUbuntu2404AMD

func NewUbuntu2404AMD() *Ubuntu2404

func NewUbuntu2404ARM

func NewUbuntu2404ARM() *Ubuntu2404

func NewUbuntu2404DockerSource

func NewUbuntu2404DockerSource() *Ubuntu2404

func (Ubuntu2404) AMIName

func (u Ubuntu2404) AMIName(ctx context.Context, awsConfig aws.Config) (string, error)

func (Ubuntu2404) BuildUserData

func (u Ubuntu2404) BuildUserData(userDataInput e2e.UserDataInput) ([]byte, error)

func (Ubuntu2404) InstanceType

func (u Ubuntu2404) InstanceType(region string) string

func (Ubuntu2404) Name

func (u Ubuntu2404) Name() string

Jump to

Keyboard shortcuts

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