Documentation ¶
Index ¶
- func ListNetworkInterfaces(ctx context.Context, eniIds []string, filters Filters, region string, ...) ([]coreTypes.NetworkInterfaceDetails, error)
- func ListSecurityGroups(ctx context.Context, securityGroupIds []string, filters Filters, region string, ...) ([]coreTypes.SecurityGroupDetails, error)
- func RemoveENIAsync(ctx context.Context, eniIds []string, region string, profile string, ...) error
- func RemoveSecurityGroupsAsync(ctx context.Context, securityGroupIds []string, region string, profile string, ...) error
- type Filters
- type SecurityGroupStatus
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 )