util

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package util provides utility functions used throughout the AWS Multi-ENI Controller.

This package contains helper functions for common operations such as string manipulation, AWS resource identification, and other utility functions that don't fit elsewhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString checks if a string is in a slice of strings

func GetInstanceIDFromProviderID

func GetInstanceIDFromProviderID(providerID string) string

GetInstanceIDFromProviderID extracts the EC2 instance ID from the provider ID Provider ID format: aws:///zone/i-0123456789abcdef0

func MergeMaps

func MergeMaps(m1, m2 map[string]string) map[string]string

MergeMaps merges two maps, with values from the second map taking precedence

func RemoveString

func RemoveString(slice []string, s string) []string

RemoveString removes a string from a slice of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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