core

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListNetworkInterfaces

func ListNetworkInterfaces(ctx context.Context, eniIds []string, filters Filters, region string, profile string) ([]coreTypes.NetworkInterfaceDetails, error)

ListNetworkInterfaces returns a slice of NetworkInterfaceDetails based on the input ENI IDs and filters. If the slice with the IDs is empty, all the network interfaces will be retrieved

func ListSecurityGroups

func ListSecurityGroups(ctx context.Context, securityGroupIds []string, filters Filters, region string, profile string) ([]coreTypes.SecurityGroupDetails, error)

ListSecurityGroups returns a slice of SecurityGroupDetails based on the input Security Group ID list and filters. If the slice with the IDs is empty, all the security groups will be retrieved

func RemoveENIAsync

func RemoveENIAsync(ctx context.Context, eniIds []string, region string, profile string,
	resultCh chan utils.Result[string]) error

RemoveENIAsync removes Elastic Network Interfaces based on the input list provided. This function expects a result channel for being able to provide removal information for the caller

func RemoveSecurityGroupsAsync

func RemoveSecurityGroupsAsync(ctx context.Context, securityGroupIds []string, region string, profile string,
	resultCh chan utils.Result[string]) error

RemoveSecurityGroupsAsync removes Security Groups based on the input list provided. This function expects a result channel for being able to provide removal information for the caller

Types

type Filters

type Filters struct {
	Status SecurityGroupStatus
}

type SecurityGroupStatus

type SecurityGroupStatus int
const (
	All SecurityGroupStatus = iota
	Used
	Unused
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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