Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
5e204292
Commit
5e204292
authored
8 years ago
by
Jeff Mitchell
Browse files
Options
Download
Email Patches
Plain Diff
Update deps
parent
1fa4c623
Changes
95
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
vendor/github.com/aws/aws-sdk-go/aws/version.go
+1
-1
vendor/github.com/aws/aws-sdk-go/aws/version.go
vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
+56
-56
vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go
+64
-0
vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
+28
-0
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go
+3
-0
vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go
vendor/github.com/aws/aws-sdk-go/service/iam/api.go
+351
-351
vendor/github.com/aws/aws-sdk-go/service/iam/api.go
vendor/github.com/aws/aws-sdk-go/service/iam/errors.go
+169
-0
vendor/github.com/aws/aws-sdk-go/service/iam/errors.go
vendor/github.com/aws/aws-sdk-go/service/s3/api.go
+12
-12
vendor/github.com/aws/aws-sdk-go/service/s3/api.go
vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
+48
-0
vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
vendor/github.com/aws/aws-sdk-go/service/sts/api.go
+21
-21
vendor/github.com/aws/aws-sdk-go/service/sts/api.go
vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
+73
-0
vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
vendor/github.com/circonus-labs/circonus-gometrics/README.md
+1
-1
vendor/github.com/circonus-labs/circonus-gometrics/README.md
vendor/github.com/circonus-labs/circonus-gometrics/api/graph.go
+69
-69
.../github.com/circonus-labs/circonus-gometrics/api/graph.go
vendor/github.com/circonus-labs/circonus-gometrics/checkmgr/broker.go
+19
-23
...b.com/circonus-labs/circonus-gometrics/checkmgr/broker.go
vendor/github.com/circonus-labs/circonus-gometrics/circonus-gometrics.go
+6
-1
...om/circonus-labs/circonus-gometrics/circonus-gometrics.go
vendor/github.com/coreos/etcd/clientv3/concurrency/session.go
+19
-6
...or/github.com/coreos/etcd/clientv3/concurrency/session.go
vendor/github.com/go-ldap/ldap/Makefile
+11
-1
vendor/github.com/go-ldap/ldap/Makefile
vendor/github.com/go-ldap/ldap/atomic_value.go
+13
-0
vendor/github.com/go-ldap/ldap/atomic_value.go
vendor/github.com/go-ldap/ldap/atomic_value_go13.go
+28
-0
vendor/github.com/go-ldap/ldap/atomic_value_go13.go
vendor/github.com/go-ldap/ldap/conn.go
+22
-11
vendor/github.com/go-ldap/ldap/conn.go
with
1014 additions
and
553 deletions
+1014
-553
vendor/github.com/aws/aws-sdk-go/aws/version.go
+
1
-
1
View file @
5e204292
...
...
@@ -5,4 +5,4 @@ package aws
const
SDKName
=
"aws-sdk-go"
// SDKVersion is the version of this SDK
const
SDKVersion
=
"1.6.1
7
"
const
SDKVersion
=
"1.6.1
8
"
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
+
56
-
56
View file @
5e204292
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go
0 → 100644
+
64
-
0
View file @
5e204292
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package
dynamodb
const
(
// ErrCodeConditionalCheckFailedException for service response error code
// "ConditionalCheckFailedException".
//
// A condition specified in the operation could not be evaluated.
ErrCodeConditionalCheckFailedException
=
"ConditionalCheckFailedException"
// ErrCodeInternalServerError for service response error code
// "InternalServerError".
//
// An error occurred on the server side.
ErrCodeInternalServerError
=
"InternalServerError"
// ErrCodeItemCollectionSizeLimitExceededException for service response error code
// "ItemCollectionSizeLimitExceededException".
//
// An item collection is too large. This exception is only returned for tables
// that have one or more local secondary indexes.
ErrCodeItemCollectionSizeLimitExceededException
=
"ItemCollectionSizeLimitExceededException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The number of concurrent table requests (cumulative number of tables in the
// CREATING, DELETING or UPDATING state) exceeds the maximum allowed of 10.
//
// Also, for tables with secondary indexes, only one of those tables can be
// in the CREATING state at any point in time. Do not attempt to create more
// than one such table simultaneously.
//
// The total limit of tables in the ACTIVE state is 250.
ErrCodeLimitExceededException
=
"LimitExceededException"
// ErrCodeProvisionedThroughputExceededException for service response error code
// "ProvisionedThroughputExceededException".
//
// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry
// requests that receive this exception. Your request is eventually successful,
// unless your retry queue is too large to finish. Reduce the frequency of requests
// and use exponential backoff. For more information, go to Error Retries and
// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff)
// in the Amazon DynamoDB Developer Guide.
ErrCodeProvisionedThroughputExceededException
=
"ProvisionedThroughputExceededException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The operation conflicts with the resource's availability. For example, you
// attempted to recreate an existing table, or tried to delete a table currently
// in the CREATING state.
ErrCodeResourceInUseException
=
"ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The operation tried to access a nonexistent table or index. The resource
// might not be specified correctly, or its status might not be ACTIVE.
ErrCodeResourceNotFoundException
=
"ResourceNotFoundException"
)
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
+
28
-
0
View file @
5e204292
...
...
@@ -15504,6 +15504,11 @@ func (s *AccountAttributeValue) SetAttributeValue(v string) *AccountAttributeVal
type ActiveInstance struct {
_ struct{} `type:"structure"`
// The health status of the instance. If the status of both the instance status
// check and the system status check is impaired, the health status of the instance
// is unhealthy. Otherwise, the health status is healthy.
InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthStatus"`
// The ID of the instance.
InstanceId *string `locationName:"instanceId" type:"string"`
...
...
@@ -15524,6 +15529,12 @@ func (s ActiveInstance) GoString() string {
return s.String()
}
// SetInstanceHealth sets the InstanceHealth field's value.
func (s *ActiveInstance) SetInstanceHealth(v string) *ActiveInstance {
s.InstanceHealth = &v
return s
}
// SetInstanceId sets the InstanceId field's value.
func (s *ActiveInstance) SetInstanceId(v string) *ActiveInstance {
s.InstanceId = &v
...
...
@@ -48233,6 +48244,9 @@ type SpotFleetRequestConfigData struct {
// LaunchSpecifications is a required field
LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" min:"1" type:"list" required:"true"`
// Indicates whether Spot fleet should replace unhealthy instances.
ReplaceUnhealthyInstances *bool `locationName:"replaceUnhealthyInstances" type:"boolean"`
// The bid price per unit hour.
//
// SpotPrice is a required field
...
...
@@ -48350,6 +48364,12 @@ func (s *SpotFleetRequestConfigData) SetLaunchSpecifications(v []*SpotFleetLaunc
return s
}
// SetReplaceUnhealthyInstances sets the ReplaceUnhealthyInstances field's value.
func (s *SpotFleetRequestConfigData) SetReplaceUnhealthyInstances(v bool) *SpotFleetRequestConfigData {
s.ReplaceUnhealthyInstances = &v
return s
}
// SetSpotPrice sets the SpotPrice field's value.
func (s *SpotFleetRequestConfigData) SetSpotPrice(v string) *SpotFleetRequestConfigData {
s.SpotPrice = &v
...
...
@@ -51943,6 +51963,14 @@ const (
InstanceAttributeNameEnaSupport = "enaSupport"
)
const (
// InstanceHealthStatusHealthy is a InstanceHealthStatus enum value
InstanceHealthStatusHealthy = "healthy"
// InstanceHealthStatusUnhealthy is a InstanceHealthStatus enum value
InstanceHealthStatusUnhealthy = "unhealthy"
)
const (
// InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value
InstanceLifecycleTypeSpot = "spot"
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/ec2/errors.go
0 → 100644
+
3
-
0
View file @
5e204292
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package
ec2
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/iam/api.go
+
351
-
351
View file @
5e204292
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/iam/errors.go
0 → 100644
+
169
-
0
View file @
5e204292
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package
iam
const
(
// ErrCodeCredentialReportExpiredException for service response error code
// "ReportExpired".
//
// The request was rejected because the most recent credential report has expired.
// To generate a new credential report, use GenerateCredentialReport. For more
// information about credential report expiration, see Getting Credential Reports
// (http://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html)
// in the IAM User Guide.
ErrCodeCredentialReportExpiredException
=
"ReportExpired"
// ErrCodeCredentialReportNotPresentException for service response error code
// "ReportNotPresent".
//
// The request was rejected because the credential report does not exist. To
// generate a credential report, use GenerateCredentialReport.
ErrCodeCredentialReportNotPresentException
=
"ReportNotPresent"
// ErrCodeCredentialReportNotReadyException for service response error code
// "ReportInProgress".
//
// The request was rejected because the credential report is still being generated.
ErrCodeCredentialReportNotReadyException
=
"ReportInProgress"
// ErrCodeDeleteConflictException for service response error code
// "DeleteConflict".
//
// The request was rejected because it attempted to delete a resource that has
// attached subordinate entities. The error message describes these entities.
ErrCodeDeleteConflictException
=
"DeleteConflict"
// ErrCodeDuplicateCertificateException for service response error code
// "DuplicateCertificate".
//
// The request was rejected because the same certificate is associated with
// an IAM user in the account.
ErrCodeDuplicateCertificateException
=
"DuplicateCertificate"
// ErrCodeDuplicateSSHPublicKeyException for service response error code
// "DuplicateSSHPublicKey".
//
// The request was rejected because the SSH public key is already associated
// with the specified IAM user.
ErrCodeDuplicateSSHPublicKeyException
=
"DuplicateSSHPublicKey"
// ErrCodeEntityAlreadyExistsException for service response error code
// "EntityAlreadyExists".
//
// The request was rejected because it attempted to create a resource that already
// exists.
ErrCodeEntityAlreadyExistsException
=
"EntityAlreadyExists"
// ErrCodeEntityTemporarilyUnmodifiableException for service response error code
// "EntityTemporarilyUnmodifiable".
//
// The request was rejected because it referenced an entity that is temporarily
// unmodifiable, such as a user name that was deleted and then recreated. The
// error indicates that the request is likely to succeed if you try again after
// waiting several minutes. The error message describes the entity.
ErrCodeEntityTemporarilyUnmodifiableException
=
"EntityTemporarilyUnmodifiable"
// ErrCodeInvalidAuthenticationCodeException for service response error code
// "InvalidAuthenticationCode".
//
// The request was rejected because the authentication code was not recognized.
// The error message describes the specific error.
ErrCodeInvalidAuthenticationCodeException
=
"InvalidAuthenticationCode"
// ErrCodeInvalidCertificateException for service response error code
// "InvalidCertificate".
//
// The request was rejected because the certificate is invalid.
ErrCodeInvalidCertificateException
=
"InvalidCertificate"
// ErrCodeInvalidInputException for service response error code
// "InvalidInput".
//
// The request was rejected because an invalid or out-of-range value was supplied
// for an input parameter.
ErrCodeInvalidInputException
=
"InvalidInput"
// ErrCodeInvalidPublicKeyException for service response error code
// "InvalidPublicKey".
//
// The request was rejected because the public key is malformed or otherwise
// invalid.
ErrCodeInvalidPublicKeyException
=
"InvalidPublicKey"
// ErrCodeInvalidUserTypeException for service response error code
// "InvalidUserType".
//
// The request was rejected because the type of user for the transaction was
// incorrect.
ErrCodeInvalidUserTypeException
=
"InvalidUserType"
// ErrCodeKeyPairMismatchException for service response error code
// "KeyPairMismatch".
//
// The request was rejected because the public key certificate and the private
// key do not match.
ErrCodeKeyPairMismatchException
=
"KeyPairMismatch"
// ErrCodeLimitExceededException for service response error code
// "LimitExceeded".
//
// The request was rejected because it attempted to create resources beyond
// the current AWS account limits. The error message describes the limit exceeded.
ErrCodeLimitExceededException
=
"LimitExceeded"
// ErrCodeMalformedCertificateException for service response error code
// "MalformedCertificate".
//
// The request was rejected because the certificate was malformed or expired.
// The error message describes the specific error.
ErrCodeMalformedCertificateException
=
"MalformedCertificate"
// ErrCodeMalformedPolicyDocumentException for service response error code
// "MalformedPolicyDocument".
//
// The request was rejected because the policy document was malformed. The error
// message describes the specific error.
ErrCodeMalformedPolicyDocumentException
=
"MalformedPolicyDocument"
// ErrCodeNoSuchEntityException for service response error code
// "NoSuchEntity".
//
// The request was rejected because it referenced an entity that does not exist.
// The error message describes the entity.
ErrCodeNoSuchEntityException
=
"NoSuchEntity"
// ErrCodePasswordPolicyViolationException for service response error code
// "PasswordPolicyViolation".
//
// The request was rejected because the provided password did not meet the requirements
// imposed by the account password policy.
ErrCodePasswordPolicyViolationException
=
"PasswordPolicyViolation"
// ErrCodePolicyEvaluationException for service response error code
// "PolicyEvaluation".
//
// The request failed because a provided policy could not be successfully evaluated.
// An additional detail message indicates the source of the failure.
ErrCodePolicyEvaluationException
=
"PolicyEvaluation"
// ErrCodeServiceFailureException for service response error code
// "ServiceFailure".
//
// The request processing has failed because of an unknown error, exception
// or failure.
ErrCodeServiceFailureException
=
"ServiceFailure"
// ErrCodeServiceNotSupportedException for service response error code
// "NotSupportedService".
//
// The specified service does not support service-specific credentials.
ErrCodeServiceNotSupportedException
=
"NotSupportedService"
// ErrCodeUnrecognizedPublicKeyEncodingException for service response error code
// "UnrecognizedPublicKeyEncoding".
//
// The request was rejected because the public key encoding format is unsupported
// or unrecognized.
ErrCodeUnrecognizedPublicKeyEncodingException
=
"UnrecognizedPublicKeyEncoding"
)
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/s3/api.go
+
12
-
12
View file @
5e204292
...
...
@@ -73,7 +73,7 @@ func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req
// API operation AbortMultipartUpload for usage and error information.
//
// Returned Error Codes:
// * NoSuchUpload
// *
ErrCode
NoSuchUpload
"NoSuchUpload"
// The specified multipart upload does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUpload
...
...
@@ -198,7 +198,7 @@ func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, ou
// API operation CopyObject for usage and error information.
//
// Returned Error Codes:
// * ObjectNotInActiveTierError
// *
ErrCode
ObjectNotInActiveTierError
"ObjectNotInActiveTierError"
// The source object of the COPY operation is not in the active tier and is
// only stored in Amazon Glacier.
//
...
...
@@ -264,11 +264,11 @@ func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request
// API operation CreateBucket for usage and error information.
//
// Returned Error Codes:
// * BucketAlreadyExists
// *
ErrCode
BucketAlreadyExists
"BucketAlreadyExists"
// The requested bucket name is not available. The bucket namespace is shared
// by all users of the system. Please select a different name and try again.
//
// * BucketAlreadyOwnedByYou
// *
ErrCode
BucketAlreadyOwnedByYou
"BucketAlreadyOwnedByYou"
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket
...
...
@@ -2296,7 +2296,7 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outp
// API operation GetObject for usage and error information.
//
// Returned Error Codes:
// * NoSuchKey
// *
ErrCode
NoSuchKey
"NoSuchKey"
// The specified key does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject
...
...
@@ -2361,7 +2361,7 @@ func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request
// API operation GetObjectAcl for usage and error information.
//
// Returned Error Codes:
// * NoSuchKey
// *
ErrCode
NoSuchKey
"NoSuchKey"
// The specified key does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAcl
...
...
@@ -2549,7 +2549,7 @@ func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, ou
// API operation HeadBucket for usage and error information.
//
// Returned Error Codes:
// * NoSuchBucket
// *
ErrCode
NoSuchBucket
"NoSuchBucket"
// The specified bucket does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket
...
...
@@ -2616,7 +2616,7 @@ func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, ou
// API operation HeadObject for usage and error information.
//
// Returned Error Codes:
// * NoSuchKey
// *
ErrCode
NoSuchKey
"NoSuchKey"
// The specified key does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject
...
...
@@ -3111,7 +3111,7 @@ func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request,
// API operation ListObjects for usage and error information.
//
// Returned Error Codes:
// * NoSuchBucket
// *
ErrCode
NoSuchBucket
"NoSuchBucket"
// The specified bucket does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects
...
...
@@ -3210,7 +3210,7 @@ func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Reque
// API operation ListObjectsV2 for usage and error information.
//
// Returned Error Codes:
// * NoSuchBucket
// *
ErrCode
NoSuchBucket
"NoSuchBucket"
// The specified bucket does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2
...
...
@@ -4525,7 +4525,7 @@ func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request
// API operation PutObjectAcl for usage and error information.
//
// Returned Error Codes:
// * NoSuchKey
// *
ErrCode
NoSuchKey
"NoSuchKey"
// The specified key does not exist.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl
...
...
@@ -4650,7 +4650,7 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque
// API operation RestoreObject for usage and error information.
//
// Returned Error Codes:
// * ObjectAlreadyInActiveTierError
// *
ErrCode
ObjectAlreadyInActiveTierError
"ObjectAlreadyInActiveTierError"
// This operation is not allowed against this storage tier
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/s3/errors.go
0 → 100644
+
48
-
0
View file @
5e204292
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package
s3
const
(
// ErrCodeBucketAlreadyExists for service response error code
// "BucketAlreadyExists".
//
// The requested bucket name is not available. The bucket namespace is shared
// by all users of the system. Please select a different name and try again.
ErrCodeBucketAlreadyExists
=
"BucketAlreadyExists"
// ErrCodeBucketAlreadyOwnedByYou for service response error code
// "BucketAlreadyOwnedByYou".
ErrCodeBucketAlreadyOwnedByYou
=
"BucketAlreadyOwnedByYou"
// ErrCodeNoSuchBucket for service response error code
// "NoSuchBucket".
//
// The specified bucket does not exist.
ErrCodeNoSuchBucket
=
"NoSuchBucket"
// ErrCodeNoSuchKey for service response error code
// "NoSuchKey".
//
// The specified key does not exist.
ErrCodeNoSuchKey
=
"NoSuchKey"
// ErrCodeNoSuchUpload for service response error code
// "NoSuchUpload".
//
// The specified multipart upload does not exist.
ErrCodeNoSuchUpload
=
"NoSuchUpload"
// ErrCodeObjectAlreadyInActiveTierError for service response error code
// "ObjectAlreadyInActiveTierError".
//
// This operation is not allowed against this storage tier
ErrCodeObjectAlreadyInActiveTierError
=
"ObjectAlreadyInActiveTierError"
// ErrCodeObjectNotInActiveTierError for service response error code
// "ObjectNotInActiveTierError".
//
// The source object of the COPY operation is not in the active tier and is
// only stored in Amazon Glacier.
ErrCodeObjectNotInActiveTierError
=
"ObjectNotInActiveTierError"
)
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/sts/api.go
+
21
-
21
View file @
5e204292
...
...
@@ -153,16 +153,16 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
// API operation AssumeRole for usage and error information.
//
// Returned Error Codes:
// * MalformedPolicyDocument
// *
ErrCode
MalformedPolicyDocument
Exception "MalformedPolicyDocument"
// The request was rejected because the policy document was malformed. The error
// message describes the specific error.
//
// * PackedPolicyTooLarge
// *
ErrCode
PackedPolicyTooLarge
Exception "PackedPolicyTooLarge"
// The request was rejected because the policy document was too large. The error
// message describes how big the policy document is, in packed form, as a percentage
// of what the API allows.
//
// * RegionDisabledException
// *
ErrCode
RegionDisabledException
"RegionDisabledException"
// STS is not activated in the requested region for the account that is being
// asked to generate credentials. The account administrator must use the IAM
// console to activate STS in that region. For more information, see Activating
...
...
@@ -297,31 +297,31 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// API operation AssumeRoleWithSAML for usage and error information.
//
// Returned Error Codes:
// * MalformedPolicyDocument
// *
ErrCode
MalformedPolicyDocument
Exception "MalformedPolicyDocument"
// The request was rejected because the policy document was malformed. The error
// message describes the specific error.
//
// * PackedPolicyTooLarge
// *
ErrCode
PackedPolicyTooLarge
Exception "PackedPolicyTooLarge"
// The request was rejected because the policy document was too large. The error
// message describes how big the policy document is, in packed form, as a percentage
// of what the API allows.
//
// * IDPRejectedClaim
// *
ErrCode
IDPRejectedClaim
Exception "IDPRejectedClaim"
// The identity provider (IdP) reported that authentication failed. This might
// be because the claim is invalid.
//
// If this error is returned for the AssumeRoleWithWebIdentity operation, it
// can also mean that the claim has expired or has been explicitly revoked.
//
// * InvalidIdentityToken
// *
ErrCode
InvalidIdentityToken
Exception "InvalidIdentityToken"
// The web identity token that was passed could not be validated by AWS. Get
// a new identity token from the identity provider and then retry the request.
//
// * ExpiredTokenException
// *
ErrCode
ExpiredTokenException
"ExpiredTokenException"
// The web identity token that was passed is expired or is not valid. Get a
// new identity token from the identity provider and then retry the request.
//
// * RegionDisabledException
// *
ErrCode
RegionDisabledException
"RegionDisabledException"
// STS is not activated in the requested region for the account that is being
// asked to generate credentials. The account administrator must use the IAM
// console to activate STS in that region. For more information, see Activating
...
...
@@ -478,38 +478,38 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// API operation AssumeRoleWithWebIdentity for usage and error information.
//
// Returned Error Codes:
// * MalformedPolicyDocument
// *
ErrCode
MalformedPolicyDocument
Exception "MalformedPolicyDocument"
// The request was rejected because the policy document was malformed. The error
// message describes the specific error.
//
// * PackedPolicyTooLarge
// *
ErrCode
PackedPolicyTooLarge
Exception "PackedPolicyTooLarge"
// The request was rejected because the policy document was too large. The error
// message describes how big the policy document is, in packed form, as a percentage
// of what the API allows.
//
// * IDPRejectedClaim
// *
ErrCode
IDPRejectedClaim
Exception "IDPRejectedClaim"
// The identity provider (IdP) reported that authentication failed. This might
// be because the claim is invalid.
//
// If this error is returned for the AssumeRoleWithWebIdentity operation, it
// can also mean that the claim has expired or has been explicitly revoked.
//
// * IDPCommunicationError
// *
ErrCode
IDPCommunicationError
Exception "IDPCommunicationError"
// The request could not be fulfilled because the non-AWS identity provider
// (IDP) that was asked to verify the incoming identity token could not be reached.
// This is often a transient error caused by network conditions. Retry the request
// a limited number of times so that you don't exceed the request rate. If the
// error persists, the non-AWS identity provider might be down or not responding.
//
// * InvalidIdentityToken
// *
ErrCode
InvalidIdentityToken
Exception "InvalidIdentityToken"
// The web identity token that was passed could not be validated by AWS. Get
// a new identity token from the identity provider and then retry the request.
//
// * ExpiredTokenException
// *
ErrCode
ExpiredTokenException
"ExpiredTokenException"
// The web identity token that was passed is expired or is not valid. Get a
// new identity token from the identity provider and then retry the request.
//
// * RegionDisabledException
// *
ErrCode
RegionDisabledException
"RegionDisabledException"
// STS is not activated in the requested region for the account that is being
// asked to generate credentials. The account administrator must use the IAM
// console to activate STS in that region. For more information, see Activating
...
...
@@ -609,7 +609,7 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag
// API operation DecodeAuthorizationMessage for usage and error information.
//
// Returned Error Codes:
// * InvalidAuthorizationMessageException
// *
ErrCode
InvalidAuthorizationMessageException
"InvalidAuthorizationMessageException"
// The error returned if the message passed to DecodeAuthorizationMessage was
// invalid. This can happen if the token contains invalid characters, such as
// linebreaks.
...
...
@@ -814,16 +814,16 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re
// API operation GetFederationToken for usage and error information.
//
// Returned Error Codes:
// * MalformedPolicyDocument
// *
ErrCode
MalformedPolicyDocument
Exception "MalformedPolicyDocument"
// The request was rejected because the policy document was malformed. The error
// message describes the specific error.
//
// * PackedPolicyTooLarge
// *
ErrCode
PackedPolicyTooLarge
Exception "PackedPolicyTooLarge"
// The request was rejected because the policy document was too large. The error
// message describes how big the policy document is, in packed form, as a percentage
// of what the API allows.
//
// * RegionDisabledException
// *
ErrCode
RegionDisabledException
"RegionDisabledException"
// STS is not activated in the requested region for the account that is being
// asked to generate credentials. The account administrator must use the IAM
// console to activate STS in that region. For more information, see Activating
...
...
@@ -937,7 +937,7 @@ func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.
// API operation GetSessionToken for usage and error information.
//
// Returned Error Codes:
// * RegionDisabledException
// *
ErrCode
RegionDisabledException
"RegionDisabledException"
// STS is not activated in the requested region for the account that is being
// asked to generate credentials. The account administrator must use the IAM
// console to activate STS in that region. For more information, see Activating
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/aws/aws-sdk-go/service/sts/errors.go
0 → 100644
+
73
-
0
View file @
5e204292
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package
sts
const
(
// ErrCodeExpiredTokenException for service response error code
// "ExpiredTokenException".
//
// The web identity token that was passed is expired or is not valid. Get a
// new identity token from the identity provider and then retry the request.
ErrCodeExpiredTokenException
=
"ExpiredTokenException"
// ErrCodeIDPCommunicationErrorException for service response error code
// "IDPCommunicationError".
//
// The request could not be fulfilled because the non-AWS identity provider
// (IDP) that was asked to verify the incoming identity token could not be reached.
// This is often a transient error caused by network conditions. Retry the request
// a limited number of times so that you don't exceed the request rate. If the
// error persists, the non-AWS identity provider might be down or not responding.
ErrCodeIDPCommunicationErrorException
=
"IDPCommunicationError"
// ErrCodeIDPRejectedClaimException for service response error code
// "IDPRejectedClaim".
//
// The identity provider (IdP) reported that authentication failed. This might
// be because the claim is invalid.
//
// If this error is returned for the AssumeRoleWithWebIdentity operation, it
// can also mean that the claim has expired or has been explicitly revoked.
ErrCodeIDPRejectedClaimException
=
"IDPRejectedClaim"
// ErrCodeInvalidAuthorizationMessageException for service response error code
// "InvalidAuthorizationMessageException".
//
// The error returned if the message passed to DecodeAuthorizationMessage was
// invalid. This can happen if the token contains invalid characters, such as
// linebreaks.
ErrCodeInvalidAuthorizationMessageException
=
"InvalidAuthorizationMessageException"
// ErrCodeInvalidIdentityTokenException for service response error code
// "InvalidIdentityToken".
//
// The web identity token that was passed could not be validated by AWS. Get
// a new identity token from the identity provider and then retry the request.
ErrCodeInvalidIdentityTokenException
=
"InvalidIdentityToken"
// ErrCodeMalformedPolicyDocumentException for service response error code
// "MalformedPolicyDocument".
//
// The request was rejected because the policy document was malformed. The error
// message describes the specific error.
ErrCodeMalformedPolicyDocumentException
=
"MalformedPolicyDocument"
// ErrCodePackedPolicyTooLargeException for service response error code
// "PackedPolicyTooLarge".
//
// The request was rejected because the policy document was too large. The error
// message describes how big the policy document is, in packed form, as a percentage
// of what the API allows.
ErrCodePackedPolicyTooLargeException
=
"PackedPolicyTooLarge"
// ErrCodeRegionDisabledException for service response error code
// "RegionDisabledException".
//
// STS is not activated in the requested region for the account that is being
// asked to generate credentials. The account administrator must use the IAM
// console to activate STS in that region. For more information, see Activating
// and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html)
// in the IAM User Guide.
ErrCodeRegionDisabledException
=
"RegionDisabledException"
)
This diff is collapsed.
Click to expand it.
vendor/github.com/circonus-labs/circonus-gometrics/README.md
+
1
-
1
View file @
5e204292
...
...
@@ -124,7 +124,7 @@ func main() {
cmc
.
CheckManager
.
API
.
URL
=
os
.
Getenv
(
"CIRCONUS_API_URL"
)
// Check configuration options
cmc
.
CheckManager
.
Check
.
SubmissionURL
=
os
.
Getenv
(
"CIRCONUS_SUBMISION_URL"
)
cmc
.
CheckManager
.
Check
.
SubmissionURL
=
os
.
Getenv
(
"CIRCONUS_SUBMIS
S
ION_URL"
)
cmc
.
CheckManager
.
Check
.
ID
=
os
.
Getenv
(
"CIRCONUS_CHECK_ID"
)
cmc
.
CheckManager
.
Check
.
InstanceID
=
""
cmc
.
CheckManager
.
Check
.
DisplayName
=
""
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/circonus-labs/circonus-gometrics/api/graph.go
+
69
-
69
View file @
5e204292
...
...
@@ -48,19 +48,19 @@ type GraphComposite struct {
// GraphDatapoint defines a datapoint
type
GraphDatapoint
struct
{
Alpha
string
`json:"alpha,omitempty"`
// string
Axis
string
`json:"axis,omitempty"`
// string
CAQL
*
string
`json:"caql,omitempty"`
// string or null
CheckID
uint
`json:"check_id,omitempty"`
// uint
Color
string
`json:"color,omitempty"`
// string
DataFormula
*
string
`json:"data_formula
,omitempty"`
// string or null
Derive
interface
{}
`json:"derive,omitempty"`
// BUG doc: string, api: string or boolean(for caql statements)
Hidden
bool
`json:"hidden
,omitempty"`
// boolean
LegendFormula
*
string
`json:"legend_formula
,omitempty"`
// string or null
MetricName
string
`json:"metric_name,omitempty"`
// string
MetricType
string
`json:"metric_type,omitempty"`
// string
Name
string
`json:"name
,omitempty"`
// string
Stack
*
uint
`json:"stack
,omitempty"`
// uint or null
Alpha
*
float64
`json:"alpha,
string,
omitempty"`
// float64
Axis
string
`json:"axis,omitempty"`
// string
CAQL
*
string
`json:"caql,omitempty"`
// string or null
CheckID
uint
`json:"check_id,omitempty"`
// uint
Color
*
string
`json:"color,omitempty"`
// string
DataFormula
*
string
`json:"data_formula
"`
// string or null
Derive
interface
{}
`json:"derive,omitempty"`
// BUG doc: string, api: string or boolean(for caql statements)
Hidden
bool
`json:"hidden
"`
// boolean
LegendFormula
*
string
`json:"legend_formula
"`
// string or null
MetricName
string
`json:"metric_name,omitempty"`
// string
MetricType
string
`json:"metric_type,omitempty"`
// string
Name
string
`json:"name
"`
// string
Stack
*
uint
`json:"stack
"`
// uint or null
}
// GraphGuide defines a guide
...
...
@@ -74,47 +74,47 @@ type GraphGuide struct {
// GraphMetricCluster defines a metric cluster
type
GraphMetricCluster
struct
{
AggregateFunc
string
`json:"aggregat
ion
_function,omitempty"`
// string
Axis
string
`json:"axis,omitempty"`
// string
DataFormula
*
string
`json:"data_formula
,omitempty"`
// string or null
Hidden
bool
`json:"hidden
,omitempty"`
// boolean
LegendFormula
*
string
`json:"legend_formula
,omitempty"`
// string or null
MetricCluster
string
`json:"metric_cluster,omitempty"`
// string
Name
string
`json:"name,omitempty"`
// string
Stack
*
uint
`json:"stack
,omitempty"`
// uint or null
AggregateFunc
string
`json:"aggregat
e
_function,omitempty"`
// string
Axis
string
`json:"axis,omitempty"`
// string
DataFormula
*
string
`json:"data_formula
"`
// string or null
Hidden
bool
`json:"hidden
"`
// boolean
LegendFormula
*
string
`json:"legend_formula
"`
// string or null
MetricCluster
string
`json:"metric_cluster,omitempty"`
// string
Name
string
`json:"name,omitempty"`
// string
Stack
*
uint
`json:"stack
"`
// uint or null
}
// OverlayDataOptions defines overlay options for data. Note, each overlay type requires
// a _subset_ of the options. See Graph API documentation (URL above) for details.
type
OverlayDataOptions
struct
{
Alerts
string
`json:"alerts,omitempty"`
// string BUG doc: numeric, api: string
ArrayOutput
string
`json:"array_output,omitempty"`
// string BUG doc: numeric, api: string
BasePeriod
string
`json:"base_period,omitempty"`
// string BUG doc: numeric, api: string
Delay
string
`json:"delay,omitempty"`
// string BUG doc: numeric, api: string
Extension
string
`json:"extension,omitempty"`
// string
GraphTitle
string
`json:"graph_title,omitempty"`
// string
GraphUUID
string
`json:"graph_id,omitempty"`
// string
InPercent
string
`json:"in_percent,omitempty"`
// string BUG doc: boolean, api: string
Inverse
string
`json:"inverse,omitempty"`
// string BUG doc: numeric, api: string
Method
string
`json:"method,omitempty"`
// string
Model
string
`json:"model,omitempty"`
// string
ModelEnd
string
`json:"model_end,omitempty"`
// string
ModelPeriod
string
`json:"model_period,omitempty"`
// string
ModelRelative
string
`json:"model_relative,omitempty"`
// string BUG doc: numeric, api: string
Out
string
`json:"out,omitempty"`
// string
Prequel
string
`json:"prequel,omitempty"`
// string
Presets
string
`json:"presets,omitempty"`
// string
Quantiles
string
`json:"quantiles,omitempty"`
// string
SeasonLength
string
`json:"season_length,omitempty"`
// string BUG doc: numeric, api: string
Sensitivity
string
`json:"sensitivity,omitempty"`
// string BUG doc: numeric, api: string
SingleValue
string
`json:"single_value,omitempty"`
// string BUG doc: numeric, api: string
TargetPeriod
string
`json:"target_period,omitempty"`
// string
TimeOffset
string
`json:"time_offset,omitempty"`
// string
TimeShift
string
`json:"time_shift,omitempty"`
// string BUG doc: numeric, api: string
Transform
string
`json:"transform,omitempty"`
// string
Version
string
`json:"version,omitempty"`
// string BUG doc: numeric, api: string
Window
string
`json:"window,omitempty"`
// string BUG doc: numeric, api: string
XShift
string
`json:"x_shift,omitempty"`
// string
Alerts
*
int
`json:"alerts,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
ArrayOutput
*
int
`json:"array_output,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
BasePeriod
*
int
`json:"base_period,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
Delay
*
int
`json:"delay,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
Extension
string
`json:"extension,omitempty"`
// string
GraphTitle
string
`json:"graph_title,omitempty"`
// string
GraphUUID
string
`json:"graph_id,omitempty"`
// string
InPercent
*
bool
`json:"in_percent,
string,
omitempty"`
//
boolean encoded as
string BUG doc: boolean, api: string
Inverse
*
int
`json:"inverse,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
Method
string
`json:"method,omitempty"`
// string
Model
string
`json:"model,omitempty"`
// string
ModelEnd
string
`json:"model_end,omitempty"`
// string
ModelPeriod
string
`json:"model_period,omitempty"`
// string
ModelRelative
*
int
`json:"model_relative,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
Out
string
`json:"out,omitempty"`
// string
Prequel
string
`json:"prequel,omitempty"`
// string
Presets
string
`json:"presets,omitempty"`
// string
Quantiles
string
`json:"quantiles,omitempty"`
// string
SeasonLength
*
int
`json:"season_length,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
Sensitivity
*
int
`json:"sensitivity,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
SingleValue
*
int
`json:"single_value,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
TargetPeriod
string
`json:"target_period,omitempty"`
// string
TimeOffset
string
`json:"time_offset,omitempty"`
// string
TimeShift
*
int
`json:"time_shift,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
Transform
string
`json:"transform,omitempty"`
// string
Version
*
int
`json:"version,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
Window
*
int
`json:"window,
string,
omitempty"`
//
int encoded as
string BUG doc: numeric, api: string
XShift
string
`json:"x_shift,omitempty"`
// string
}
// OverlayUISpecs defines UI specs for overlay
...
...
@@ -123,7 +123,7 @@ type OverlayUISpecs struct {
ID
string
`json:"id,omitempty"`
// string
Label
string
`json:"label,omitempty"`
// string
Type
string
`json:"type,omitempty"`
// string
Z
string
`json:"z,omitempty"`
//
string BUG doc: numeric, api: string
Z
*
int
`json:"z,
string,
omitempty"`
// int encoded as
string BUG doc: numeric, api: string
}
// GraphOverlaySet defines overlays for graph
...
...
@@ -136,25 +136,25 @@ type GraphOverlaySet struct {
// Graph defines a graph. See https://login.circonus.com/resources/api/calls/graph for more information.
type
Graph
struct
{
AccessKeys
[]
GraphAccessKey
`json:"access_keys,omitempty"`
// [] len >= 0
CID
string
`json:"_cid,omitempty"`
// string
Composites
[]
GraphComposite
`json:"composites,omitempty"`
// [] len >= 0
Datapoints
[]
GraphDatapoint
`json:"datapoints,omitempt"`
// [] len >= 0
Description
string
`json:"description,omitempty"`
// string
Guides
[]
GraphGuide
`json:"guides,omitempty"`
// [] len >= 0
LineStyle
string
`json:"line_style
,omitempty"`
// string
LogLeftY
int
`json:"logarithmi
t
c_left_y,omitempty"`
// string or null BUG doc: number (not string)
LogRightY
int
`json:"logarithmi
t
c_right_y,omitempty"`
// string or null BUG doc: number (not string)
MaxLeftY
*
string
`json:"max_left_y,omitempty"`
// string or null BUG doc: number (not string)
MaxRightY
*
string
`json:"max_right_y,omitempty"`
// string or null BUG doc: number (not string)
MetricClusters
[]
GraphMetricCluster
`json:"metric_clusters,omitempty"`
// [] len >= 0
MinLeftY
*
string
`json:"min_left_y,omitempty"`
// string or null BUG doc: number (not string)
MinRightY
*
string
`json:"min_right_y,omitempty"`
// string or null BUG doc: number (not string)
Notes
*
string
`json:"notes,omitempty"`
// string or null
OverlaySets
*
map
[
string
]
GraphOverlaySet
`json:"overlay_sets,omitempty"`
// GroupOverLaySets or null
Style
string
`json:"style
,omitempty"`
// string
Tags
[]
string
`json:"tags,omitempty"`
// [] len >= 0
Title
string
`json:"title,omitempty"`
// string
AccessKeys
[]
GraphAccessKey
`json:"access_keys,omitempty"`
// [] len >= 0
CID
string
`json:"_cid,omitempty"`
// string
Composites
[]
GraphComposite
`json:"composites,omitempty"`
// [] len >= 0
Datapoints
[]
GraphDatapoint
`json:"datapoints,omitempt"`
// [] len >= 0
Description
string
`json:"description,omitempty"`
// string
Guides
[]
GraphGuide
`json:"guides,omitempty"`
// [] len >= 0
LineStyle
*
string
`json:"line_style
"`
// string
or null
LogLeftY
*
int
`json:"logarithmic_left_y,
string,
omitempty"`
//
int encoded as
string or null BUG doc: number (not string)
LogRightY
*
int
`json:"logarithmic_right_y,
string,
omitempty"`
//
int encoded as
string or null BUG doc: number (not string)
MaxLeftY
*
float64
`json:"max_left_y,
string,
omitempty"`
//
float64 encoded as
string or null BUG doc: number (not string)
MaxRightY
*
float64
`json:"max_right_y,
string,
omitempty"`
//
float64 encoded as
string or null BUG doc: number (not string)
MetricClusters
[]
GraphMetricCluster
`json:"metric_clusters,omitempty"`
// [] len >= 0
MinLeftY
*
float64
`json:"min_left_y,
string,
omitempty"`
//
float64 encoded as
string or null BUG doc: number (not string)
MinRightY
*
float64
`json:"min_right_y,
string,
omitempty"`
//
float64 encoded as
string or null BUG doc: number (not string)
Notes
*
string
`json:"notes,omitempty"`
// string or null
OverlaySets
*
map
[
string
]
GraphOverlaySet
`json:"overlay_sets,omitempty"`
// GroupOverLaySets or null
Style
*
string
`json:"style
"`
// string
or null
Tags
[]
string
`json:"tags,omitempty"`
// [] len >= 0
Title
string
`json:"title,omitempty"`
// string
}
// NewGraph returns a Graph (with defaults, if applicable)
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/circonus-labs/circonus-gometrics/checkmgr/broker.go
+
19
-
23
View file @
5e204292
...
...
@@ -187,34 +187,30 @@ func (cm *CheckManager) isValidBroker(broker *api.Broker) bool {
brokerHost
=
*
detail
.
IP
}
// broker must be reachable and respond within designated time
conn
,
err
:=
net
.
DialTimeout
(
"tcp"
,
fmt
.
Sprintf
(
"%s:%s"
,
brokerHost
,
brokerPort
),
cm
.
brokerMaxResponseTime
)
if
err
!=
nil
{
if
detail
.
CN
!=
"trap.noit.circonus.net"
{
if
cm
.
Debug
{
cm
.
Log
.
Printf
(
"[DEBUG] Broker '%s' unable to connect, %v
\n
"
,
broker
.
Name
,
err
)
}
continue
// not able to reach the broker (or respone slow enough for it to be considered not usable)
}
// if circonus trap broker, try port 443
if
brokerHost
==
"trap.noit.circonus.net"
&&
brokerPort
!=
"443"
{
brokerPort
=
"443"
conn
,
err
=
net
.
DialTimeout
(
"tcp"
,
fmt
.
Sprintf
(
"%s:%s"
,
detail
.
CN
,
brokerPort
),
cm
.
brokerMaxResponseTime
)
if
err
!=
nil
{
if
cm
.
Debug
{
cm
.
Log
.
Printf
(
"[DEBUG] Broker '%s' unable to connect %v
\n
"
,
broker
.
Name
,
err
)
}
continue
// not able to reach the broker on 443 either (or respone slow enough for it to be considered not usable)
}
}
conn
.
Close
()
if
cm
.
Debug
{
cm
.
Log
.
Printf
(
"[DEBUG] Broker '%s' is valid
\n
"
,
broker
.
Name
)
}
retries
:=
5
for
attempt
:=
1
;
attempt
<=
retries
;
attempt
++
{
// broker must be reachable and respond within designated time
conn
,
err
:=
net
.
DialTimeout
(
"tcp"
,
fmt
.
Sprintf
(
"%s:%s"
,
brokerHost
,
brokerPort
),
cm
.
brokerMaxResponseTime
)
if
err
==
nil
{
conn
.
Close
()
valid
=
true
break
}
valid
=
true
break
cm
.
Log
.
Printf
(
"[WARN] Broker '%s' unable to connect, %v. Retrying in 2 seconds, attempt %d of %d."
,
broker
.
Name
,
err
,
attempt
,
retries
)
time
.
Sleep
(
2
*
time
.
Second
)
}
if
valid
{
if
cm
.
Debug
{
cm
.
Log
.
Printf
(
"[DEBUG] Broker '%s' is valid
\n
"
,
broker
.
Name
)
}
break
}
}
return
valid
}
This diff is collapsed.
Click to expand it.
vendor/github.com/circonus-labs/circonus-gometrics/circonus-gometrics.go
+
6
-
1
View file @
5e204292
...
...
@@ -126,7 +126,7 @@ func New(cfg *Config) (*CirconusMetrics, error) {
cm
.
Debug
=
cfg
.
Debug
cm
.
Log
=
cfg
.
Log
if
cm
.
Debug
&&
c
fg
.
Log
==
nil
{
if
cm
.
Debug
&&
c
m
.
Log
==
nil
{
cm
.
Log
=
log
.
New
(
os
.
Stderr
,
""
,
log
.
LstdFlags
)
}
if
cm
.
Log
==
nil
{
...
...
@@ -219,6 +219,11 @@ func (m *CirconusMetrics) Start() {
return
}
// Ready returns true or false indicating if the check is ready to accept metrics
func
(
m
*
CirconusMetrics
)
Ready
()
bool
{
return
m
.
check
.
IsReady
()
}
// Flush metrics kicks off the process of sending metrics to Circonus
func
(
m
*
CirconusMetrics
)
Flush
()
{
if
m
.
flushing
{
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/coreos/etcd/clientv3/concurrency/session.go
+
19
-
6
View file @
5e204292
...
...
@@ -41,11 +41,14 @@ func NewSession(client *v3.Client, opts ...SessionOption) (*Session, error) {
opt
(
ops
)
}
resp
,
err
:=
client
.
Grant
(
ops
.
ctx
,
int64
(
ops
.
ttl
))
if
err
!=
nil
{
return
nil
,
err
id
:=
ops
.
leaseID
if
id
==
v3
.
NoLease
{
resp
,
err
:=
client
.
Grant
(
ops
.
ctx
,
int64
(
ops
.
ttl
))
if
err
!=
nil
{
return
nil
,
err
}
id
=
v3
.
LeaseID
(
resp
.
ID
)
}
id
:=
v3
.
LeaseID
(
resp
.
ID
)
ctx
,
cancel
:=
context
.
WithCancel
(
ops
.
ctx
)
keepAlive
,
err
:=
client
.
KeepAlive
(
ctx
,
id
)
...
...
@@ -98,8 +101,9 @@ func (s *Session) Close() error {
}
type
sessionOptions
struct
{
ttl
int
ctx
context
.
Context
ttl
int
leaseID
v3
.
LeaseID
ctx
context
.
Context
}
// SessionOption configures Session.
...
...
@@ -115,6 +119,15 @@ func WithTTL(ttl int) SessionOption {
}
}
// WithLease specifies the existing leaseID to be used for the session.
// This is useful in process restart scenario, for example, to reclaim
// leadership from an election prior to restart.
func
WithLease
(
leaseID
v3
.
LeaseID
)
SessionOption
{
return
func
(
so
*
sessionOptions
)
{
so
.
leaseID
=
leaseID
}
}
// WithContext assigns a context to the session instead of defaulting to
// using the client context. This is useful for canceling NewSession and
// Close operations immediately without having to close the client. If the
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/go-ldap/ldap/Makefile
+
11
-
1
View file @
5e204292
.PHONY
:
default install build test quicktest fmt vet lint
GO_VERSION
:=
$(
shell
go version |
cut
-d
' '
-f3
|
cut
-d
.
-f2
)
# Only use the `-race` flag on newer versions of Go
IS_OLD_GO
:=
$(
shell
test
$(GO_VERSION)
-le
2
&&
echo true
)
ifeq
($(IS_OLD_GO),true)
RACE_FLAG
:=
else
RACE_FLAG
:=
-race
endif
default
:
fmt vet lint build quicktest
install
:
...
...
@@ -9,7 +19,7 @@ build:
go build
-v
./...
test
:
go
test
-v
-cover
./...
go
test
-v
$(RACE_FLAG)
-cover
./...
quicktest
:
go
test
./...
...
...
This diff is collapsed.
Click to expand it.
vendor/github.com/go-ldap/ldap/atomic_value.go
0 → 100644
+
13
-
0
View file @
5e204292
// +build go1.4
package
ldap
import
(
"sync/atomic"
)
// For compilers that support it, we just use the underlying sync/atomic.Value
// type.
type
atomicValue
struct
{
atomic
.
Value
}
This diff is collapsed.
Click to expand it.
vendor/github.com/go-ldap/ldap/atomic_value_go13.go
0 → 100644
+
28
-
0
View file @
5e204292
// +build !go1.4
package
ldap
import
(
"sync"
)
// This is a helper type that emulates the use of the "sync/atomic.Value"
// struct that's available in Go 1.4 and up.
type
atomicValue
struct
{
value
interface
{}
lock
sync
.
RWMutex
}
func
(
av
*
atomicValue
)
Store
(
val
interface
{})
{
av
.
lock
.
Lock
()
av
.
value
=
val
av
.
lock
.
Unlock
()
}
func
(
av
*
atomicValue
)
Load
()
interface
{}
{
av
.
lock
.
RLock
()
ret
:=
av
.
value
av
.
lock
.
RUnlock
()
return
ret
}
This diff is collapsed.
Click to expand it.
vendor/github.com/go-ldap/ldap/conn.go
+
22
-
11
View file @
5e204292
...
...
@@ -11,6 +11,7 @@ import (
"log"
"net"
"sync"
"sync/atomic"
"time"
"gopkg.in/asn1-ber.v1"
...
...
@@ -82,8 +83,8 @@ const (
type
Conn
struct
{
conn
net
.
Conn
isTLS
bool
isClosing
bool
closeErr
error
closeCount
uint32
closeErr
atomicValue
isStartingTLS
bool
Debug
debugging
chanConfirm
chan
bool
...
...
@@ -158,10 +159,20 @@ func (l *Conn) Start() {
l
.
wgClose
.
Add
(
1
)
}
// isClosing returns whether or not we're currently closing.
func
(
l
*
Conn
)
isClosing
()
bool
{
return
atomic
.
LoadUint32
(
&
l
.
closeCount
)
>
0
}
// setClosing sets the closing value to true
func
(
l
*
Conn
)
setClosing
()
{
atomic
.
AddUint32
(
&
l
.
closeCount
,
1
)
}
// Close closes the connection.
func
(
l
*
Conn
)
Close
()
{
l
.
once
.
Do
(
func
()
{
l
.
i
sClosing
=
true
l
.
s
et
Closing
()
l
.
wgSender
.
Wait
()
l
.
Debug
.
Printf
(
"Sending quit message and waiting for confirmation"
)
...
...
@@ -258,7 +269,7 @@ func (l *Conn) sendMessage(packet *ber.Packet) (*messageContext, error) {
}
func
(
l
*
Conn
)
sendMessageWithFlags
(
packet
*
ber
.
Packet
,
flags
sendMessageFlags
)
(
*
messageContext
,
error
)
{
if
l
.
isClosing
{
if
l
.
isClosing
()
{
return
nil
,
NewError
(
ErrorNetwork
,
errors
.
New
(
"ldap: connection closed"
))
}
l
.
messageMutex
.
Lock
()
...
...
@@ -297,7 +308,7 @@ func (l *Conn) sendMessageWithFlags(packet *ber.Packet, flags sendMessageFlags)
func
(
l
*
Conn
)
finishMessage
(
msgCtx
*
messageContext
)
{
close
(
msgCtx
.
done
)
if
l
.
isClosing
{
if
l
.
isClosing
()
{
return
}
...
...
@@ -316,7 +327,7 @@ func (l *Conn) finishMessage(msgCtx *messageContext) {
}
func
(
l
*
Conn
)
sendProcessMessage
(
message
*
messagePacket
)
bool
{
if
l
.
isClosing
{
if
l
.
isClosing
()
{
return
false
}
l
.
wgSender
.
Add
(
1
)
...
...
@@ -333,8 +344,8 @@ func (l *Conn) processMessages() {
for
messageID
,
msgCtx
:=
range
l
.
messageContexts
{
// If we are closing due to an error, inform anyone who
// is waiting about the error.
if
l
.
isClosing
&&
l
.
closeErr
!=
nil
{
msgCtx
.
sendResponse
(
&
PacketResponse
{
Error
:
l
.
closeErr
})
if
l
.
isClosing
()
&&
l
.
closeErr
.
Load
()
!=
nil
{
msgCtx
.
sendResponse
(
&
PacketResponse
{
Error
:
l
.
closeErr
.
Load
()
.
(
error
)
})
}
l
.
Debug
.
Printf
(
"Closing channel for MessageID %d"
,
messageID
)
close
(
msgCtx
.
responses
)
...
...
@@ -397,7 +408,7 @@ func (l *Conn) processMessages() {
if
msgCtx
,
ok
:=
l
.
messageContexts
[
message
.
MessageID
];
ok
{
msgCtx
.
sendResponse
(
&
PacketResponse
{
message
.
Packet
,
nil
})
}
else
{
log
.
Printf
(
"Received unexpected message %d, %v"
,
message
.
MessageID
,
l
.
isClosing
)
log
.
Printf
(
"Received unexpected message %d, %v"
,
message
.
MessageID
,
l
.
isClosing
()
)
ber
.
PrintPacket
(
message
.
Packet
)
}
case
MessageTimeout
:
...
...
@@ -439,8 +450,8 @@ func (l *Conn) reader() {
packet
,
err
:=
ber
.
ReadPacket
(
l
.
conn
)
if
err
!=
nil
{
// A read error is expected here if we are closing the connection...
if
!
l
.
isClosing
{
l
.
closeErr
=
fmt
.
Errorf
(
"unable to read LDAP response packet: %s"
,
err
)
if
!
l
.
isClosing
()
{
l
.
closeErr
.
Store
(
fmt
.
Errorf
(
"unable to read LDAP response packet: %s"
,
err
)
)
l
.
Debug
.
Printf
(
"reader error: %s"
,
err
.
Error
())
}
return
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help