Versions in this module Expand all Collapse all v1 v1.1.0 May 6, 2015 Changes in this version + const DEFAULT_RETRIES + const SDKName + const SDKVersion + var DefaultConfig = &Config + var ErrAccessKeyIDNotFound = fmt.Errorf("AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY not found in environment") + var ErrMissingCredentials = fmt.Errorf("could not find credentials configuration.") + var ErrMissingRegion = fmt.Errorf("could not find region configuration.") + var ErrSecretAccessKeyNotFound = fmt.Errorf("AWS_SECRET_ACCESS_KEY or AWS_SECRET_KEY not found in environment") + var IAMClient = http.Client + func AfterRetryHandler(r *Request) + func Boolean(v bool) *bool + func BuildContentLength(r *Request) + func Double(v float64) *float64 + func Long(v int64) *int64 + func SendHandler(r *Request) + func String(v string) *string + func Time(t time.Time) *time.Time + func UserAgentHandler(r *Request) + func ValidateCredentialsHandler(r *Request) + func ValidateEndpointHandler(r *Request) + func ValidateParameters(r *Request) + func ValidateResponseHandler(r *Request) + type APIError struct + Code string + Message string + RequestID string + StatusCode int + func Error(e error) *APIError + func (e APIError) Error() string + type Config struct + Credentials CredentialsProvider + DisableComputeChecksums bool + DisableParamValidation bool + DisableSSL bool + Endpoint string + HTTPClient *http.Client + LogLevel uint + Logger io.Writer + ManualSend bool + MaxRetries int + Region string + func (c Config) Merge(newcfg *Config) *Config + type Credentials struct + AccessKeyID string + SecretAccessKey string + SessionToken string + type CredentialsProvider interface + Credentials func() (*Credentials, error) + func Creds(accessKeyID, secretAccessKey, sessionToken string) CredentialsProvider + func DefaultCreds() CredentialsProvider + func DetectCreds(accessKeyID, secretAccessKey, sessionToken string) CredentialsProvider + func EnvCreds() (CredentialsProvider, error) + func IAMCreds() CredentialsProvider + func ProfileCreds(filename, profile string, expiry time.Duration) (CredentialsProvider, error) + type DefaultCredentialsProvider struct + func (p *DefaultCredentialsProvider) Credentials() (*Credentials, error) + type HandlerList struct + func (l *HandlerList) Clear() + func (l *HandlerList) Len() int + func (l *HandlerList) PushBack(f ...func(*Request)) + func (l *HandlerList) PushFront(f ...func(*Request)) + func (l *HandlerList) Run(r *Request) + type Handlers struct + AfterRetry HandlerList + Build HandlerList + Retry HandlerList + Send HandlerList + Sign HandlerList + Unmarshal HandlerList + UnmarshalError HandlerList + UnmarshalMeta HandlerList + Validate HandlerList + ValidateResponse HandlerList + func (h *Handlers) Clear() + type Operation struct + HTTPMethod string + HTTPPath string + Name string + type ReaderSeekerCloser struct + func ReadSeekCloser(r io.Reader) ReaderSeekerCloser + func (r ReaderSeekerCloser) Close() error + func (r ReaderSeekerCloser) Read(p []byte) (int, error) + func (r ReaderSeekerCloser) Seek(offset int64, whence int) (int64, error) + type Request struct + Body io.ReadSeeker + Data interface{} + Error error + ExpireTime time.Duration + HTTPRequest *http.Request + HTTPResponse *http.Response + Handlers Handlers + Operation *Operation + Params interface{} + RequestID string + RetryCount uint + RetryDelay time.Duration + Retryable bool + Time time.Time + func NewRequest(service *Service, operation *Operation, params interface{}, data interface{}) *Request + func (r *Request) Build() error + func (r *Request) DataFilled() bool + func (r *Request) ParamsFilled() bool + func (r *Request) Presign(expireTime time.Duration) (string, error) + func (r *Request) Send() error + func (r *Request) SetBufferBody(buf []byte) + func (r *Request) SetReaderBody(reader io.ReadSeeker) + func (r *Request) Sign() error + func (r *Request) WillRetry() bool + type Service struct + APIVersion string + Config *Config + DefaultMaxRetries uint + Endpoint string + Handlers Handlers + JSONVersion string + ManualSend bool + RetryRules func(*Request) time.Duration + ServiceName string + ShouldRetry func(*Request) bool + SigningRegion string + TargetPrefix string + func NewService(config *Config) *Service + func (s *Service) AddDebugHandlers() + func (s *Service) Initialize() + func (s *Service) MaxRetries() uint