utils

package
v2.4.36 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

SPDX-License-Identifier: MIT SPDX-FileCopyrightText: 2024 Steadybit GmbH

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendInfof

func AppendInfof(messages *action_kit_api.Messages, format string, args ...any) *action_kit_api.Messages

func AppendMessagef

func AppendMessagef(messages *action_kit_api.Messages, level action_kit_api.MessageLevel, format string, args ...any) *action_kit_api.Messages

func AppendWarnf

func AppendWarnf(messages *action_kit_api.Messages, format string, args ...any) *action_kit_api.Messages

func ForEveryConfiguredAwsAccess

func ForEveryConfiguredAwsAccess(supplier func(account *AwsAccess, ctx context.Context) ([]discovery_kit_api.Target, error), ctx context.Context, discovery string) ([]discovery_kit_api.Target, error)

func GetOptionalTargetAttribute

func GetOptionalTargetAttribute(attributes map[string][]string, key string) *string

func GetRootAccountNumber

func GetRootAccountNumber() string

func InitializeAwsAccess

func InitializeAwsAccess(specification extConfig.Specification, awsConfigForRootAccount aws.Config)

func MatchesTagFilter

func MatchesTagFilter(tags []types.Tag, filters []config.TagFilter) bool

func NewCommonAttributeDescriber

func NewCommonAttributeDescriber() discovery_kit_sdk.AttributeDescriber

func SplitIntoPages

func SplitIntoPages[T any](input []T, pageSize int) [][]T

Types

type AwsAccess

type AwsAccess struct {
	AccountNumber string
	Region        string
	AssumeRole    *string
	TagFilters    []extConfig.TagFilter
	AwsConfig     aws.Config
}

func GetAwsAccess

func GetAwsAccess(accountNumber string, region string, assumedRole *string) (*AwsAccess, error)

Jump to

Keyboard shortcuts

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