os

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogCollectorScript []byte

Functions

func GenerateOSPassword

func GenerateOSPassword() (string, string, error)

func IsBottlerocket added in v1.0.9

func IsBottlerocket(name string) bool

IsBottlerocket returns true if the given name is a Bottlerocket 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, _ e2e.ComputeType) (string, error)

func (AmazonLinux2023) BuildUserData

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

func (AmazonLinux2023) InstanceType

func (a AmazonLinux2023) InstanceType(region string, instanceSize e2e.InstanceSize, computeType e2e.ComputeType) string

func (AmazonLinux2023) Name

func (a AmazonLinux2023) Name() string

type BottleRocket added in v1.0.9

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

func NewBottleRocket added in v1.0.9

func NewBottleRocket() *BottleRocket

func NewBottleRocketARM added in v1.0.9

func NewBottleRocketARM() *BottleRocket

func (BottleRocket) AMIName added in v1.0.9

func (a BottleRocket) AMIName(ctx context.Context, awsConfig aws.Config, kubernetesVersion string, computeType e2e.ComputeType) (string, error)

func (BottleRocket) BuildUserData added in v1.0.9

func (a BottleRocket) BuildUserData(ctx context.Context, userDataInput e2e.UserDataInput) ([]byte, error)

func (BottleRocket) InstanceType added in v1.0.9

func (a BottleRocket) InstanceType(region string, instanceSize e2e.InstanceSize, computeType e2e.ComputeType) string

func (BottleRocket) Name added in v1.0.9

func (a BottleRocket) Name() string

type BottlerocketLogCollector added in v1.0.9

type BottlerocketLogCollector struct {
	Runner commands.RemoteCommandRunner
}

func (BottlerocketLogCollector) Run added in v1.0.9

func (b BottlerocketLogCollector) Run(ctx context.Context, instanceIP, logBundleUrl string) error

type NodeLogCollector added in v1.0.9

type NodeLogCollector interface {
	Run(ctx context.Context, instanceIP, logBundleUrl string) error
}

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, _ e2e.ComputeType) (string, error)

func (RedHat8) BuildUserData

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

func (RedHat8) InstanceType

func (r RedHat8) InstanceType(region string, instanceSize e2e.InstanceSize, computeType e2e.ComputeType) 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 NewRedHat9NoDockerSource added in v1.0.6

func NewRedHat9NoDockerSource(rhelUsername, rhelPassword string) *RedHat9

func (RedHat9) AMIName

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

func (RedHat9) BuildUserData

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

func (RedHat9) InstanceType

func (r RedHat9) InstanceType(region string, instanceSize e2e.InstanceSize, computeType e2e.ComputeType) string

func (RedHat9) Name

func (r RedHat9) Name() string

type RegistryResponse added in v1.0.10

type RegistryResponse struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

type StandardLinuxLogCollector added in v1.0.9

type StandardLinuxLogCollector struct {
	Runner commands.RemoteCommandRunner
}

func (StandardLinuxLogCollector) Run added in v1.0.9

func (s StandardLinuxLogCollector) Run(ctx context.Context, instanceIP, logBundleUrl string) error

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, _ e2e.ComputeType) (string, error)

func (Ubuntu2004) BuildUserData

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

func (Ubuntu2004) InstanceType

func (u Ubuntu2004) InstanceType(region string, instanceSize e2e.InstanceSize, computeType e2e.ComputeType) 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, _ e2e.ComputeType) (string, error)

func (Ubuntu2204) BuildUserData

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

func (Ubuntu2204) InstanceType

func (u Ubuntu2204) InstanceType(region string, instanceSize e2e.InstanceSize, computeType e2e.ComputeType) 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 NewUbuntu2404NoDockerSource added in v1.0.6

func NewUbuntu2404NoDockerSource() *Ubuntu2404

func (Ubuntu2404) AMIName

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

func (Ubuntu2404) BuildUserData

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

func (Ubuntu2404) InstanceType

func (u Ubuntu2404) InstanceType(region string, instanceSize e2e.InstanceSize, computeType e2e.ComputeType) 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