Documentation
¶
Index ¶
- Constants
- func Bool(v bool, o ...FieldOption) *bool
- func CreateJSONPatch(source, destination interface{}) ([]byte, error)
- func CredentialsIDSecret(data []byte, profile string) (string, string, error)
- func Int64(v int, o ...FieldOption) *int64
- func Int64Address(i *int) *int64
- func IntAddress(i *int64) *int
- func LateInitializeBoolPtr(in *bool, from *bool) *bool
- func LateInitializeIntPtr(in *int, from *int64) *int
- func LateInitializeString(in string, from *string) string
- func LateInitializeStringPtr(in *string, from *string) *string
- func LoadConfig(data []byte, profile, region string) (*aws.Config, error)
- func String(v string, o ...FieldOption) *string
- func StringValue(v *string) string
- type FieldOption
Constants ¶
const DefaultSection = ini.DefaultSection
DefaultSection for INI files.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
func Bool(v bool, o ...FieldOption) *bool
Bool converts the supplied bool for use with the AWS Go SDK.
func CreateJSONPatch ¶
CreateJSONPatch creates a diff JSON object that can be applied to any other JSON object.
func CredentialsIDSecret ¶
CredentialsIDSecret retrieves AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from the data which contains aws credentials under given profile Example: [default] aws_access_key_id = <YOUR_ACCESS_KEY_ID> aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>
func Int64 ¶
func Int64(v int, o ...FieldOption) *int64
Int64 converts the supplied int for use with the AWS Go SDK.
func Int64Address ¶
Int64Address returns the given *int in the form of *int64.
func IntAddress ¶
IntAddress converts the supplied int64 pointer to an int pointer, returning nil if the pointer is nil.
func LateInitializeBoolPtr ¶
LateInitializeBoolPtr returns in if it's non-nil, otherwise returns from which is the backup for the cases in is nil.
func LateInitializeIntPtr ¶
LateInitializeIntPtr returns in if it's non-nil, otherwise returns from which is the backup for the cases in is nil.
func LateInitializeString ¶
LateInitializeString returns `from` if `in` is empty and `from` is non-nil, in other cases it returns `in`.
func LateInitializeStringPtr ¶
LateInitializeStringPtr returns in if it's non-nil, otherwise returns from which is the backup for the cases in is nil.
func LoadConfig ¶
LoadConfig - AWS configuration which can be used to issue requests against AWS API
func String ¶
func String(v string, o ...FieldOption) *string
String converts the supplied string for use with the AWS Go SDK.
func StringValue ¶
StringValue converts the supplied string pointer to a string, returning the empty string if the pointer is nil. TODO(muvaf): is this really meaningful? why not implement it?
Types ¶
type FieldOption ¶
type FieldOption int
A FieldOption determines how common Go types are translated to the types required by the AWS Go SDK.
const ( // FieldRequired causes zero values to be converted to a pointer to the zero // value, rather than a nil pointer. AWS Go SDK types use pointer fields, // with a nil pointer indicating an unset field. Our ToPtr functions return // a nil pointer for a zero values, unless FieldRequired is set. FieldRequired FieldOption = iota )
Field options.