shared

package
v0.0.0-...-b0384cf Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTENT_TYPE_JSON        = "application/json"
	CONTENT_TYPE_URL_ENCODED = "application/x-www-form-urlencoded"
	USER_AGENT               = "aws-cli/2.5.3 Python/3.9.12"
	CONTENT_TYPE_HEADER      = "Content-Type"
)

Variables

View Source
var AwsTemplatePropertyRegex = regexp.MustCompile(`(?:^|)\b(//)`)
View Source
var AzureTemplatePropertyRegex = regexp.MustCompile(`\{.(\w+)\}`)
View Source
var CheckForEmptyPathRegex = regexp.MustCompile(`//`)

Functions

func Black

func Black(s string) string

func Blue

func Blue(s string) string

func Cyan

func Cyan(s string) string

func GetMessageColor

func GetMessageColor(p string) string

func Green

func Green(s string) string

func KebabToCamelCase

func KebabToCamelCase(kebab string) (camelCase string)

func Magenta

func Magenta(s string) string

func Red

func Red(s string) string

func RemoveDuplicates

func RemoveDuplicates(slice []string) []string

remove duplicates from a slice of strings

func Yellow

func Yellow(s string) string

Types

type Scanner

type Scanner interface {
	EnumerateAll(ctx context.Context, region string, creds interface{}) error
	EnumerateSpecificService(ctx context.Context, region, service string, creds interface{}) error
}

Jump to

Keyboard shortcuts

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