aws

package
v0.0.0-...-bc2ca9b Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

aws package contains AWS-specific types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAMI

func FindAMI(stream rhcostream.Stream, arch, region string) (string, error)

Types

type ArchToAZ

type ArchToAZ map[string][]string

type CISchedulingWebhook

type CISchedulingWebhook struct {
	Workloads map[string]ArchToAZ `json:"workloads,omitempty"`
}

type ClientGetters

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

func CloudFormationClientGetterFunc

func CloudFormationClientGetterFunc(f func(context.Context) (CloudFormationClient, error)) *ClientGetters

func (*ClientGetters) CloudFormationClient

func (cg *ClientGetters) CloudFormationClient(ctx context.Context) (CloudFormationClient, error)

type CloudCredential

type CloudCredential struct{}

type CloudFormationClient

type CloudFormationClient interface {
	CreateStack(ctx context.Context, params *cloudformation.CreateStackInput, optFns ...func(*cloudformation.Options)) (*cloudformation.CreateStackOutput, error)
	DescribeStacks(context.Context, *cloudformation.DescribeStacksInput, ...func(*cloudformation.Options)) (*cloudformation.DescribeStacksOutput, error)
}

CloudFormationClient is a convenience interface that has been created to make unit test easier to write

type CloudFormationClientGetter

type CloudFormationClientGetter interface {
	CloudFormationClient(context.Context) (CloudFormationClient, error)
}

type CloudFormationTemplate

type CloudFormationTemplate struct {
	StackName    string `json:"stackName,omitempty"`
	TemplateBody string `json:"templateBody,omitempty"`
	Parameters   []struct {
		Key   string `json:"key,omitempty"`
		Value string `json:"value,omitempty"`
	} `json:"parameters,omitempty"`
	Capabilities []string `json:"capabilities,omitempty"`
}

type EC2Client

type EC2Client interface {
	DescribeSubnets(context.Context, *ec2.DescribeSubnetsInput, ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)
	DescribeSecurityGroups(context.Context, *ec2.DescribeSecurityGroupsInput, ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error)
}

type EC2ClientGetter

type EC2ClientGetter interface {
	EC2Client(context.Context) (EC2Client, error)
}

type EC2ClientGetterFunc

type EC2ClientGetterFunc func(context.Context) (EC2Client, error)

func (EC2ClientGetterFunc) EC2Client

func (f EC2ClientGetterFunc) EC2Client(ctx context.Context) (EC2Client, error)

type FakeEC2Client

type FakeEC2Client struct {
	Subnets        *ec2.DescribeSubnetsOutput
	SecurityGroups *ec2.DescribeSecurityGroupsOutput
}

func (*FakeEC2Client) DescribeSecurityGroups

func (*FakeEC2Client) DescribeSubnets

type MachineSet

type MachineSet struct {
	Profiles map[string]MachineSetProfile `json:"profiles,omitempty"`
}

type MachineSetProfile

type MachineSetProfile struct {
	MachineAutoscaler *bool    `json:"machineAutoscaler,omitempty"`
	Architectures     ArchToAZ `json:"architectures,omitempty"`
}

type Provision

type Provision struct {
	CloudFormationTemplates []CloudFormationTemplate `json:"cloudFormationTemplates,omitempty"`
}

Jump to

Keyboard shortcuts

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