util

package
v0.0.0-...-0fd85f3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chomp

func Chomp(s string) string

func DeSlasher

func DeSlasher(str string) string

func InLambda

func InLambda() bool

func OtelConfigPresent

func OtelConfigPresent() bool

func PathExists

func PathExists(path string) bool

func PolicyArnFromName

func PolicyArnFromName(accountId, name string) string

func PolicyNameFromArn

func PolicyNameFromArn(arn string) string

func ReSlasher

func ReSlasher(str string) string

func RoleArnFromAssumeRoleArn

func RoleArnFromAssumeRoleArn(arn string) (string, error)

func RoleArnFromName

func RoleArnFromName(accountId, name string) string

func RoleNameFromArn

func RoleNameFromArn(arn string) string

func SetLogLevel

func SetLogLevel()

func ShaLike

func ShaLike(str string) bool

func UnsafeSlice

func UnsafeSlice(s string, start, end int) string

For view layer only

Types

type AwsLogInterface

type AwsLogInterface interface {
	// Logf is expected to support the standard fmt package "verbs".
	Logf(classification logging.Classification, format string, v ...interface{})
}

type RetryLogger

type RetryLogger struct {
	Log *zerolog.Logger
}

func (*RetryLogger) Logf

func (l *RetryLogger) Logf(classification logging.Classification, format string, v ...interface{})

Jump to

Keyboard shortcuts

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