]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/aws/aws-sdk-go/aws/request/handlers.go
update vendor and go.mod
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / aws / aws-sdk-go / aws / request / handlers.go
index 8ef8548a96d8cfb97321e841a7c26dade232b588..627ec722c051824ce128ea826d84abc7ae7e3b58 100644 (file)
@@ -59,6 +59,51 @@ func (h *Handlers) Clear() {
        h.Complete.Clear()
 }
 
+// IsEmpty returns if there are no handlers in any of the handlerlists.
+func (h *Handlers) IsEmpty() bool {
+       if h.Validate.Len() != 0 {
+               return false
+       }
+       if h.Build.Len() != 0 {
+               return false
+       }
+       if h.Send.Len() != 0 {
+               return false
+       }
+       if h.Sign.Len() != 0 {
+               return false
+       }
+       if h.Unmarshal.Len() != 0 {
+               return false
+       }
+       if h.UnmarshalStream.Len() != 0 {
+               return false
+       }
+       if h.UnmarshalMeta.Len() != 0 {
+               return false
+       }
+       if h.UnmarshalError.Len() != 0 {
+               return false
+       }
+       if h.ValidateResponse.Len() != 0 {
+               return false
+       }
+       if h.Retry.Len() != 0 {
+               return false
+       }
+       if h.AfterRetry.Len() != 0 {
+               return false
+       }
+       if h.CompleteAttempt.Len() != 0 {
+               return false
+       }
+       if h.Complete.Len() != 0 {
+               return false
+       }
+
+       return true
+}
+
 // A HandlerListRunItem represents an entry in the HandlerList which
 // is being run.
 type HandlerListRunItem struct {