vendor: update all dependencies
* Update all dependencies * Remove all `[[constraint]]` from Gopkg.toml * Add in the minimum number of `[[override]]` to build * Remove go get of github.com/inconshreveable/mousetrap as it is vendored * Update docs with new policy on constraints
This commit is contained in:
parent
21383877df
commit
6427029c4e
4902 changed files with 1443417 additions and 227283 deletions
368
vendor/github.com/aws/aws-sdk-go/service/xray/api.go
generated
vendored
368
vendor/github.com/aws/aws-sdk-go/service/xray/api.go
generated
vendored
|
@ -15,7 +15,7 @@ const opBatchGetTraces = "BatchGetTraces"
|
|||
|
||||
// BatchGetTracesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BatchGetTraces operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
|
@ -151,11 +151,93 @@ func (c *XRay) BatchGetTracesPagesWithContext(ctx aws.Context, input *BatchGetTr
|
|||
return p.Err()
|
||||
}
|
||||
|
||||
const opGetEncryptionConfig = "GetEncryptionConfig"
|
||||
|
||||
// GetEncryptionConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetEncryptionConfig operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// See GetEncryptionConfig for more information on using the GetEncryptionConfig
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
//
|
||||
// // Example sending a request using the GetEncryptionConfigRequest method.
|
||||
// req, resp := client.GetEncryptionConfigRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetEncryptionConfig
|
||||
func (c *XRay) GetEncryptionConfigRequest(input *GetEncryptionConfigInput) (req *request.Request, output *GetEncryptionConfigOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetEncryptionConfig,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/EncryptionConfig",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &GetEncryptionConfigInput{}
|
||||
}
|
||||
|
||||
output = &GetEncryptionConfigOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// GetEncryptionConfig API operation for AWS X-Ray.
|
||||
//
|
||||
// Retrieves the current encryption configuration for X-Ray data.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS X-Ray's
|
||||
// API operation GetEncryptionConfig for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidRequestException "InvalidRequestException"
|
||||
// The request is missing required parameters or has invalid parameters.
|
||||
//
|
||||
// * ErrCodeThrottledException "ThrottledException"
|
||||
// The request exceeds the maximum number of requests per second.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetEncryptionConfig
|
||||
func (c *XRay) GetEncryptionConfig(input *GetEncryptionConfigInput) (*GetEncryptionConfigOutput, error) {
|
||||
req, out := c.GetEncryptionConfigRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// GetEncryptionConfigWithContext is the same as GetEncryptionConfig with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See GetEncryptionConfig for details on how to use this API operation.
|
||||
//
|
||||
// The context must be non-nil and will be used for request cancellation. If
|
||||
// the context is nil a panic will occur. In the future the SDK may create
|
||||
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
||||
// for more information on using Contexts.
|
||||
func (c *XRay) GetEncryptionConfigWithContext(ctx aws.Context, input *GetEncryptionConfigInput, opts ...request.Option) (*GetEncryptionConfigOutput, error) {
|
||||
req, out := c.GetEncryptionConfigRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opGetServiceGraph = "GetServiceGraph"
|
||||
|
||||
// GetServiceGraphRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetServiceGraph operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
|
@ -297,7 +379,7 @@ const opGetTraceGraph = "GetTraceGraph"
|
|||
|
||||
// GetTraceGraphRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetTraceGraph operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
|
@ -435,7 +517,7 @@ const opGetTraceSummaries = "GetTraceSummaries"
|
|||
|
||||
// GetTraceSummariesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetTraceSummaries operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
|
@ -585,11 +667,93 @@ func (c *XRay) GetTraceSummariesPagesWithContext(ctx aws.Context, input *GetTrac
|
|||
return p.Err()
|
||||
}
|
||||
|
||||
const opPutEncryptionConfig = "PutEncryptionConfig"
|
||||
|
||||
// PutEncryptionConfigRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutEncryptionConfig operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// See PutEncryptionConfig for more information on using the PutEncryptionConfig
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
//
|
||||
// // Example sending a request using the PutEncryptionConfigRequest method.
|
||||
// req, resp := client.PutEncryptionConfigRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutEncryptionConfig
|
||||
func (c *XRay) PutEncryptionConfigRequest(input *PutEncryptionConfigInput) (req *request.Request, output *PutEncryptionConfigOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutEncryptionConfig,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/PutEncryptionConfig",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &PutEncryptionConfigInput{}
|
||||
}
|
||||
|
||||
output = &PutEncryptionConfigOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// PutEncryptionConfig API operation for AWS X-Ray.
|
||||
//
|
||||
// Updates the encryption configuration for X-Ray data.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS X-Ray's
|
||||
// API operation PutEncryptionConfig for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidRequestException "InvalidRequestException"
|
||||
// The request is missing required parameters or has invalid parameters.
|
||||
//
|
||||
// * ErrCodeThrottledException "ThrottledException"
|
||||
// The request exceeds the maximum number of requests per second.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutEncryptionConfig
|
||||
func (c *XRay) PutEncryptionConfig(input *PutEncryptionConfigInput) (*PutEncryptionConfigOutput, error) {
|
||||
req, out := c.PutEncryptionConfigRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// PutEncryptionConfigWithContext is the same as PutEncryptionConfig with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See PutEncryptionConfig for details on how to use this API operation.
|
||||
//
|
||||
// The context must be non-nil and will be used for request cancellation. If
|
||||
// the context is nil a panic will occur. In the future the SDK may create
|
||||
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
||||
// for more information on using Contexts.
|
||||
func (c *XRay) PutEncryptionConfigWithContext(ctx aws.Context, input *PutEncryptionConfigInput, opts ...request.Option) (*PutEncryptionConfigOutput, error) {
|
||||
req, out := c.PutEncryptionConfigRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opPutTelemetryRecords = "PutTelemetryRecords"
|
||||
|
||||
// PutTelemetryRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutTelemetryRecords operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
|
@ -671,7 +835,7 @@ const opPutTraceSegments = "PutTraceSegments"
|
|||
|
||||
// PutTraceSegmentsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutTraceSegments operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
|
@ -717,7 +881,7 @@ func (c *XRay) PutTraceSegmentsRequest(input *PutTraceSegmentsInput) (req *reque
|
|||
// of subsegments.
|
||||
//
|
||||
// Segments must include the following fields. For the full segment document
|
||||
// schema, see AWS X-Ray Segment Documents (http://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html)
|
||||
// schema, see AWS X-Ray Segment Documents (https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html)
|
||||
// in the AWS X-Ray Developer Guide.
|
||||
//
|
||||
// Required Segment Document Fields
|
||||
|
@ -1158,6 +1322,51 @@ func (s *EdgeStatistics) SetTotalResponseTime(v float64) *EdgeStatistics {
|
|||
return s
|
||||
}
|
||||
|
||||
// A configuration document that specifies encryption configuration settings.
|
||||
type EncryptionConfig struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The ID of the customer master key (CMK) used for encryption, if applicable.
|
||||
KeyId *string `type:"string"`
|
||||
|
||||
// The encryption status. After modifying encryption configuration with PutEncryptionConfig,
|
||||
// the status can be UPDATING for up to one hour before X-Ray starts encrypting
|
||||
// data with the new key.
|
||||
Status *string `type:"string" enum:"EncryptionStatus"`
|
||||
|
||||
// The type of encryption. Set to KMS for encryption with CMKs. Set to NONE
|
||||
// for default encryption.
|
||||
Type *string `type:"string" enum:"EncryptionType"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s EncryptionConfig) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s EncryptionConfig) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetKeyId sets the KeyId field's value.
|
||||
func (s *EncryptionConfig) SetKeyId(v string) *EncryptionConfig {
|
||||
s.KeyId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStatus sets the Status field's value.
|
||||
func (s *EncryptionConfig) SetStatus(v string) *EncryptionConfig {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetType sets the Type field's value.
|
||||
func (s *EncryptionConfig) SetType(v string) *EncryptionConfig {
|
||||
s.Type = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Information about requests that failed with a 4xx Client Error status code.
|
||||
type ErrorStatistics struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -1235,6 +1444,43 @@ func (s *FaultStatistics) SetTotalCount(v int64) *FaultStatistics {
|
|||
return s
|
||||
}
|
||||
|
||||
type GetEncryptionConfigInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s GetEncryptionConfigInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s GetEncryptionConfigInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
type GetEncryptionConfigOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The encryption configuration document.
|
||||
EncryptionConfig *EncryptionConfig `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s GetEncryptionConfigOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s GetEncryptionConfigOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetEncryptionConfig sets the EncryptionConfig field's value.
|
||||
func (s *GetEncryptionConfigOutput) SetEncryptionConfig(v *EncryptionConfig) *GetEncryptionConfigOutput {
|
||||
s.EncryptionConfig = v
|
||||
return s
|
||||
}
|
||||
|
||||
type GetServiceGraphInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -1524,7 +1770,8 @@ type GetTraceSummariesOutput struct {
|
|||
// Trace IDs and metadata for traces that were found in the specified time frame.
|
||||
TraceSummaries []*TraceSummary `type:"list"`
|
||||
|
||||
// The number of traces that were processed to get this set of summaries.
|
||||
// The total number of traces processed, including traces that did not match
|
||||
// the specified filter expression.
|
||||
TracesProcessedCount *int64 `type:"long"`
|
||||
}
|
||||
|
||||
|
@ -1656,6 +1903,90 @@ func (s *Http) SetUserAgent(v string) *Http {
|
|||
return s
|
||||
}
|
||||
|
||||
type PutEncryptionConfigInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// An AWS KMS customer master key (CMK) in one of the following formats:
|
||||
//
|
||||
// * Alias - The name of the key. For example, alias/MyKey.
|
||||
//
|
||||
// * Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456.
|
||||
//
|
||||
// * ARN - The full Amazon Resource Name of the key ID or alias. For example,
|
||||
// arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456.
|
||||
// Use this format to specify a key in a different account.
|
||||
//
|
||||
// Omit this key if you set Type to NONE.
|
||||
KeyId *string `min:"1" type:"string"`
|
||||
|
||||
// The type of encryption. Set to KMS to use your own key for encryption. Set
|
||||
// to NONE for default encryption.
|
||||
//
|
||||
// Type is a required field
|
||||
Type *string `type:"string" required:"true" enum:"EncryptionType"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PutEncryptionConfigInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PutEncryptionConfigInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *PutEncryptionConfigInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "PutEncryptionConfigInput"}
|
||||
if s.KeyId != nil && len(*s.KeyId) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("KeyId", 1))
|
||||
}
|
||||
if s.Type == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Type"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetKeyId sets the KeyId field's value.
|
||||
func (s *PutEncryptionConfigInput) SetKeyId(v string) *PutEncryptionConfigInput {
|
||||
s.KeyId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetType sets the Type field's value.
|
||||
func (s *PutEncryptionConfigInput) SetType(v string) *PutEncryptionConfigInput {
|
||||
s.Type = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type PutEncryptionConfigOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The new encryption configuration.
|
||||
EncryptionConfig *EncryptionConfig `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PutEncryptionConfigOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PutEncryptionConfigOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetEncryptionConfig sets the EncryptionConfig field's value.
|
||||
func (s *PutEncryptionConfigOutput) SetEncryptionConfig(v *EncryptionConfig) *PutEncryptionConfigOutput {
|
||||
s.EncryptionConfig = v
|
||||
return s
|
||||
}
|
||||
|
||||
type PutTelemetryRecordsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -1805,10 +2136,13 @@ func (s *PutTraceSegmentsOutput) SetUnprocessedTraceSegments(v []*UnprocessedTra
|
|||
// can be compiled from documents uploaded with PutTraceSegments, or an inferred
|
||||
// segment for a downstream service, generated from a subsegment sent by the
|
||||
// service that called it.
|
||||
//
|
||||
// For the full segment document schema, see AWS X-Ray Segment Documents (https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html)
|
||||
// in the AWS X-Ray Developer Guide.
|
||||
type Segment struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The segment document
|
||||
// The segment document.
|
||||
Document *string `min:"1" type:"string"`
|
||||
|
||||
// The segment's ID.
|
||||
|
@ -2435,3 +2769,19 @@ func (s *ValueWithServiceIds) SetServiceIds(v []*ServiceId) *ValueWithServiceIds
|
|||
s.ServiceIds = v
|
||||
return s
|
||||
}
|
||||
|
||||
const (
|
||||
// EncryptionStatusUpdating is a EncryptionStatus enum value
|
||||
EncryptionStatusUpdating = "UPDATING"
|
||||
|
||||
// EncryptionStatusActive is a EncryptionStatus enum value
|
||||
EncryptionStatusActive = "ACTIVE"
|
||||
)
|
||||
|
||||
const (
|
||||
// EncryptionTypeNone is a EncryptionType enum value
|
||||
EncryptionTypeNone = "NONE"
|
||||
|
||||
// EncryptionTypeKms is a EncryptionType enum value
|
||||
EncryptionTypeKms = "KMS"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue