integration

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecurityGroup

func CreateSecurityGroup(ctx context.Context, awsClient *awsclient.Client, groupName string, vpcID string) (string, error)

CreateSecurityGroup creates a new security group.

func CreateSubnet

func CreateSubnet(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, vpcID string, cidr string, name string) (string, error)

CreateSubnet creates a new subnet and waits for it to become available.

func CreateVPC

func CreateVPC(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, vpcCIDR string, enableDnsHostnames, dualstack bool) (string, string, error)

CreateVPC creates a new VPC and waits for it to become available. It returns the VPC ID, the Internet Gateway ID or an error in case something unexpected happens.

func DestroySecurityGroup

func DestroySecurityGroup(_ context.Context, _ logr.Logger, awsClient *awsclient.Client, securityGroupID string) error

DestroySecurityGroup deletes an existing security group.

func DestroySubnet

func DestroySubnet(_ context.Context, _ logr.Logger, awsClient *awsclient.Client, subnetID string) error

DestroySubnet deletes an existing subnet.

func DestroyVPC

func DestroyVPC(ctx context.Context, log logr.Logger, awsClient *awsclient.Client, vpcID string) error

DestroyVPC deletes the Internet Gateway and the VPC itself.

func EqualInfrastructureStatus added in v1.44.0

func EqualInfrastructureStatus(expected *v1alpha1.InfrastructureStatus) gomegatypes.GomegaMatcher

EqualInfrastructureStatus is a gomega matcher that allows comparison between InfrastructureStatus'es after sorting slices or other fields that could fail a DeepEqual check.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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