Documentation ¶
Index ¶
- Constants
- func Bool(v bool, o ...FieldOption) *bool
- func BoolValue(v *bool) bool
- func Config(client kubernetes.Interface, p *v1alpha1.Provider) (*aws.Config, error)
- func CredentialsIDSecret(data []byte, profile string) (string, string, error)
- func Int64(v int, o ...FieldOption) *int64
- func Int64Value(v *int64) int
- func LoadConfig(data []byte, profile, region string) (*aws.Config, error)
- func String(v string, o ...FieldOption) *string
- func StringValue(v *string) string
- func ValidateConfig(config *aws.Config) error
- type FieldOption
Constants ¶
const DefaultSection = ini.DEFAULT_SECTION
DefaultSection for INI files.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶ added in v0.2.0
func Bool(v bool, o ...FieldOption) *bool
Bool converts the supplied bool for use with the AWS Go SDK.
func BoolValue ¶ added in v0.2.0
BoolValue converts the supplied bool pointer to a bool, returning false if the pointer is nil.
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 ¶ added in v0.2.0
func Int64(v int, o ...FieldOption) *int64
Int64 converts the supplied int for use with the AWS Go SDK.
func Int64Value ¶ added in v0.2.0
Int64Value converts the supplied int64 pointer to an int, returning zero if the pointer is nil.
func LoadConfig ¶
LoadConfig - AWS configuration which can be used to issue requests against AWS API
func String ¶ added in v0.2.0
func String(v string, o ...FieldOption) *string
String converts the supplied string for use with the AWS Go SDK.
func StringValue ¶ added in v0.2.0
StringValue converts the supplied string pointer to a string, returning the empty string if the pointer is nil.
func ValidateConfig ¶
ValidateConfig - validates AWS configuration by issuing list s3 buckets request TODO: find a better way to validate credentials
Types ¶
type FieldOption ¶ added in v0.2.0
type FieldOption int
A FieldOption determines how common Go types are translated to the types required by the Azure Go SDK.
const ( // FieldRequired causes zero values to be converted to a pointer to the zero // value, rather than a nil pointer. Azure 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.