Documentation ¶
Overview ¶
to is a list of Functions use to convert things to things
Index ¶
- func AByte(input interface{}) ([]byte, error)
- func ABytep(s []byte) *[]byte
- func ArnPath(arn string) string
- func ArnRegionAccountResource(arnstr string) (string, string, string)
- func AwsRegionAccountFromContext(ctx context.Context) (*string, *string)
- func AwsRegionAccountLambdaNameFromContext(ctx context.Context) (region, account, lambdaName string)
- func Base64(str *string) string
- func Base64p(str *string) *string
- func Boolp(s bool) *bool
- func CompactJSON(input interface{}) (string, error)
- func CompactJSONStr(input interface{}) string
- func ErrorType(invokeError error) string
- func Float64p(s float64) *float64
- func FromJSON(input interface{}) (interface{}, error)
- func Int64p(s int64) *int64
- func InterpolateArnVariables(state_machine *string, region *string, account_id *string, name_or_arn *string) *string
- func Intp(s int) *int
- func LambdaArn(region *string, account_id *string, name_or_arn *string) *string
- func LambdaArnFromContext(ctx context.Context) (string, error)
- func PrettyJSON(input interface{}) (string, error)
- func PrettyJSONStr(input interface{}) string
- func RandomString(n int) string
- func RegionAccount() (*string, *string)
- func RegionAccountOrExit() (*string, *string)
- func RoleArn(account_id *string, name_or_arn *string) *string
- func SHA256AByte(b *[]byte) string
- func SHA256File(file_path string) (string, error)
- func SHA256Str(str *string) string
- func SHA256Struct(str interface{}) string
- func StepArn(region *string, account_id *string, name_or_arn *string) *string
- func StrSlice(strps []*string) []string
- func Strp(s string) *string
- func Strs(s *string) string
- func TimeUUID(prefix string) *string
- func Timep(s time.Time) *time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactJSON ¶
func CompactJSONStr ¶
func CompactJSONStr(input interface{}) string
func FromJSON ¶
func FromJSON(input interface{}) (interface{}, error)
FromJSON Map Converts a string of JSON or a Struct into a map[string]interface{}
func InterpolateArnVariables ¶
func InterpolateArnVariables(state_machine *string, region *string, account_id *string, name_or_arn *string) *string
InterpolateArnVariables replaces any resource parameter templates with the appropriate values
func LambdaArn ¶
LambdaArn takes a name OR arn and returns Arn defaulting to AWS Environment variables
func PrettyJSON ¶
PrettyJSON takes a string or a struct and returns it as PrettyJSON
func PrettyJSONStr ¶
func PrettyJSONStr(input interface{}) string
PrettyJSONStr takes a string or a struct and returns it as PrettyJSON, no error
func RandomString ¶
func RegionAccount ¶
func RegionAccountOrExit ¶
func SHA256AByte ¶
SHA256AByte returns a hex string of the SHA256 of a byte array
func SHA256File ¶
SHA256File returns a hex string of the SHA256 of a file
func SHA256Struct ¶
func SHA256Struct(str interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.