mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-01 10:20:35 +00:00
Add all dependency of go-getter
This commit is contained in:
1088
vendor/github.com/aws/aws-sdk-go/service/pi/api.go
generated
vendored
Normal file
1088
vendor/github.com/aws/aws-sdk-go/service/pi/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
44
vendor/github.com/aws/aws-sdk-go/service/pi/doc.go
generated
vendored
Normal file
44
vendor/github.com/aws/aws-sdk-go/service/pi/doc.go
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package pi provides the client and types for making API
|
||||
// requests to AWS Performance Insights.
|
||||
//
|
||||
// AWS Performance Insights enables you to monitor and explore different dimensions
|
||||
// of database load based on data captured from a running RDS instance. The
|
||||
// guide provides detailed information about Performance Insights data types,
|
||||
// parameters and errors. For more information about Performance Insights capabilities
|
||||
// see Using Amazon RDS Performance Insights (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html)
|
||||
// in the Amazon RDS User Guide.
|
||||
//
|
||||
// The AWS Performance Insights API provides visibility into the performance
|
||||
// of your RDS instance, when Performance Insights is enabled for supported
|
||||
// engine types. While Amazon CloudWatch provides the authoritative source for
|
||||
// AWS service vended monitoring metrics, AWS Performance Insights offers a
|
||||
// domain-specific view of database load measured as Average Active Sessions
|
||||
// and provided to API consumers as a 2-dimensional time-series dataset. The
|
||||
// time dimension of the data provides DB load data for each time point in the
|
||||
// queried time range, and each time point decomposes overall load in relation
|
||||
// to the requested dimensions, such as SQL, Wait-event, User or Host, measured
|
||||
// at that time point.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27 for more information on this service.
|
||||
//
|
||||
// See pi package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/pi/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS Performance Insights with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Performance Insights client PI for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/pi/#New
|
||||
package pi
|
||||
24
vendor/github.com/aws/aws-sdk-go/service/pi/errors.go
generated
vendored
Normal file
24
vendor/github.com/aws/aws-sdk-go/service/pi/errors.go
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package pi
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeInternalServiceError for service response error code
|
||||
// "InternalServiceError".
|
||||
//
|
||||
// The request failed due to an unknown error.
|
||||
ErrCodeInternalServiceError = "InternalServiceError"
|
||||
|
||||
// ErrCodeInvalidArgumentException for service response error code
|
||||
// "InvalidArgumentException".
|
||||
//
|
||||
// One of the arguments provided is invalid for this request.
|
||||
ErrCodeInvalidArgumentException = "InvalidArgumentException"
|
||||
|
||||
// ErrCodeNotAuthorizedException for service response error code
|
||||
// "NotAuthorizedException".
|
||||
//
|
||||
// The user is not authorized to perform this request.
|
||||
ErrCodeNotAuthorizedException = "NotAuthorizedException"
|
||||
)
|
||||
72
vendor/github.com/aws/aws-sdk-go/service/pi/piiface/interface.go
generated
vendored
Normal file
72
vendor/github.com/aws/aws-sdk-go/service/pi/piiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package piiface provides an interface to enable mocking the AWS Performance Insights service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package piiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/pi"
|
||||
)
|
||||
|
||||
// PIAPI provides an interface to enable mocking the
|
||||
// pi.PI service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Performance Insights.
|
||||
// func myFunc(svc piiface.PIAPI) bool {
|
||||
// // Make svc.DescribeDimensionKeys request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := pi.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockPIClient struct {
|
||||
// piiface.PIAPI
|
||||
// }
|
||||
// func (m *mockPIClient) DescribeDimensionKeys(input *pi.DescribeDimensionKeysInput) (*pi.DescribeDimensionKeysOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockPIClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type PIAPI interface {
|
||||
DescribeDimensionKeys(*pi.DescribeDimensionKeysInput) (*pi.DescribeDimensionKeysOutput, error)
|
||||
DescribeDimensionKeysWithContext(aws.Context, *pi.DescribeDimensionKeysInput, ...request.Option) (*pi.DescribeDimensionKeysOutput, error)
|
||||
DescribeDimensionKeysRequest(*pi.DescribeDimensionKeysInput) (*request.Request, *pi.DescribeDimensionKeysOutput)
|
||||
|
||||
GetResourceMetrics(*pi.GetResourceMetricsInput) (*pi.GetResourceMetricsOutput, error)
|
||||
GetResourceMetricsWithContext(aws.Context, *pi.GetResourceMetricsInput, ...request.Option) (*pi.GetResourceMetricsOutput, error)
|
||||
GetResourceMetricsRequest(*pi.GetResourceMetricsInput) (*request.Request, *pi.GetResourceMetricsOutput)
|
||||
}
|
||||
|
||||
var _ PIAPI = (*pi.PI)(nil)
|
||||
100
vendor/github.com/aws/aws-sdk-go/service/pi/service.go
generated
vendored
Normal file
100
vendor/github.com/aws/aws-sdk-go/service/pi/service.go
generated
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package pi
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// PI provides the API operation methods for making requests to
|
||||
// AWS Performance Insights. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// PI methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type PI struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "pi" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "PI" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the PI client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a PI client from just a session.
|
||||
// svc := pi.New(mySession)
|
||||
//
|
||||
// // Create a PI client with additional configuration
|
||||
// svc := pi.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *PI {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "pi"
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *PI {
|
||||
svc := &PI{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2018-02-27",
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "PerformanceInsightsv20180227",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a PI operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *PI) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
Reference in New Issue
Block a user