Documentation ¶
Overview ¶
Package lib is a Go package for parsing Amazon Resource Names.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidARN may be returned when parsing a string that is not a valid ARN. ErrInvalidARN = errors.New("invalid ARN") // ErrInvalidResource may be returned when an ARN Resrouce is not valid. ErrInvalidResource = errors.New("invalid ARN resource") )
Functions ¶
func GetHTTPClient ¶
GetHTTPClient returns the HTTP client that should be used in Cago
func ResourceID ¶
ResourceID takes an ARN string and returns the resource ID from it.
func SplitResource ¶
SplitResource splits the Resource section of an ARN into its type and id components.
Types ¶
Click to show internal directories.
Click to hide internal directories.