eks

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTag

func GetTag(tags []*ec2.Tag, key string) (*ec2.Tag, bool)

GetTag returns the value of the given tag key if it exist

func GetTagValue

func GetTagValue(tags []*ec2.Tag, key string) (string, bool)

GetTagValue returns the value of the given tag key if it exist

func HasTag

func HasTag(tags []*ec2.Tag, key, value string) bool

HasTag returns true if the given tag is present in the given list of tags

func IsAWSError

func IsAWSError(err error, code string) bool

IsAWSError returns true if the given error is an AWS error nolint:errorlint

func IsAWSErrorType

func IsAWSErrorType(err error) bool

IsAWSErrorType returns true if the given error is an AWS error nolint:errorlint

func IsResourceNotFoundException

func IsResourceNotFoundException(err error) bool

IsResourceNotFoundException returns true if the given error is a resource not found error

func New

func New(config Config) (preload.Interface, error)

New creates and returns a preloader for EKS clusters

func SanitizeName added in v0.3.27

func SanitizeName(name string) string

SanitizeName sanitizes the given name

func ToMapTags

func ToMapTags(tags map[string]*string) []map[string]interface{}

ToMapTags converts a list of tags to a map

Types

type Config

type Config struct {
	// ClusterName is the name of the EKS cluster.
	ClusterName string
	// Session is the client to use when communicating with the AWS API.
	Session *session.Session
}

Config is the configuration for the EKS preloader

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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