Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
1092
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go
generated
vendored
Normal file
1092
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
30
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/doc.go
generated
vendored
Normal file
30
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/doc.go
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package mediastoredata provides the client and types for making API
|
||||
// requests to AWS Elemental MediaStore Data Plane.
|
||||
//
|
||||
// An AWS Elemental MediaStore asset is an object, similar to an object in the
|
||||
// Amazon S3 service. Objects are the fundamental entities that are stored in
|
||||
// AWS Elemental MediaStore.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01 for more information on this service.
|
||||
//
|
||||
// See mediastoredata package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/mediastoredata/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact AWS Elemental MediaStore Data Plane 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 Elemental MediaStore Data Plane client MediaStoreData for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/mediastoredata/#New
|
||||
package mediastoredata
|
||||
30
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/errors.go
generated
vendored
Normal file
30
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/errors.go
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package mediastoredata
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeContainerNotFoundException for service response error code
|
||||
// "ContainerNotFoundException".
|
||||
//
|
||||
// The specified container was not found for the specified account.
|
||||
ErrCodeContainerNotFoundException = "ContainerNotFoundException"
|
||||
|
||||
// ErrCodeInternalServerError for service response error code
|
||||
// "InternalServerError".
|
||||
//
|
||||
// The service is temporarily unavailable.
|
||||
ErrCodeInternalServerError = "InternalServerError"
|
||||
|
||||
// ErrCodeObjectNotFoundException for service response error code
|
||||
// "ObjectNotFoundException".
|
||||
//
|
||||
// Could not perform an operation on an object that does not exist.
|
||||
ErrCodeObjectNotFoundException = "ObjectNotFoundException"
|
||||
|
||||
// ErrCodeRequestedRangeNotSatisfiableException for service response error code
|
||||
// "RequestedRangeNotSatisfiableException".
|
||||
//
|
||||
// The requested content range is not valid.
|
||||
ErrCodeRequestedRangeNotSatisfiableException = "RequestedRangeNotSatisfiableException"
|
||||
)
|
||||
84
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/mediastoredataiface/interface.go
generated
vendored
Normal file
84
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/mediastoredataiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package mediastoredataiface provides an interface to enable mocking the AWS Elemental MediaStore Data Plane 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 mediastoredataiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/mediastoredata"
|
||||
)
|
||||
|
||||
// MediaStoreDataAPI provides an interface to enable mocking the
|
||||
// mediastoredata.MediaStoreData 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 Elemental MediaStore Data Plane.
|
||||
// func myFunc(svc mediastoredataiface.MediaStoreDataAPI) bool {
|
||||
// // Make svc.DeleteObject request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := mediastoredata.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockMediaStoreDataClient struct {
|
||||
// mediastoredataiface.MediaStoreDataAPI
|
||||
// }
|
||||
// func (m *mockMediaStoreDataClient) DeleteObject(input *mediastoredata.DeleteObjectInput) (*mediastoredata.DeleteObjectOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockMediaStoreDataClient{}
|
||||
//
|
||||
// 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 MediaStoreDataAPI interface {
|
||||
DeleteObject(*mediastoredata.DeleteObjectInput) (*mediastoredata.DeleteObjectOutput, error)
|
||||
DeleteObjectWithContext(aws.Context, *mediastoredata.DeleteObjectInput, ...request.Option) (*mediastoredata.DeleteObjectOutput, error)
|
||||
DeleteObjectRequest(*mediastoredata.DeleteObjectInput) (*request.Request, *mediastoredata.DeleteObjectOutput)
|
||||
|
||||
DescribeObject(*mediastoredata.DescribeObjectInput) (*mediastoredata.DescribeObjectOutput, error)
|
||||
DescribeObjectWithContext(aws.Context, *mediastoredata.DescribeObjectInput, ...request.Option) (*mediastoredata.DescribeObjectOutput, error)
|
||||
DescribeObjectRequest(*mediastoredata.DescribeObjectInput) (*request.Request, *mediastoredata.DescribeObjectOutput)
|
||||
|
||||
GetObject(*mediastoredata.GetObjectInput) (*mediastoredata.GetObjectOutput, error)
|
||||
GetObjectWithContext(aws.Context, *mediastoredata.GetObjectInput, ...request.Option) (*mediastoredata.GetObjectOutput, error)
|
||||
GetObjectRequest(*mediastoredata.GetObjectInput) (*request.Request, *mediastoredata.GetObjectOutput)
|
||||
|
||||
ListItems(*mediastoredata.ListItemsInput) (*mediastoredata.ListItemsOutput, error)
|
||||
ListItemsWithContext(aws.Context, *mediastoredata.ListItemsInput, ...request.Option) (*mediastoredata.ListItemsOutput, error)
|
||||
ListItemsRequest(*mediastoredata.ListItemsInput) (*request.Request, *mediastoredata.ListItemsOutput)
|
||||
|
||||
PutObject(*mediastoredata.PutObjectInput) (*mediastoredata.PutObjectOutput, error)
|
||||
PutObjectWithContext(aws.Context, *mediastoredata.PutObjectInput, ...request.Option) (*mediastoredata.PutObjectOutput, error)
|
||||
PutObjectRequest(*mediastoredata.PutObjectInput) (*request.Request, *mediastoredata.PutObjectOutput)
|
||||
}
|
||||
|
||||
var _ MediaStoreDataAPI = (*mediastoredata.MediaStoreData)(nil)
|
||||
96
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/service.go
generated
vendored
Normal file
96
vendor/github.com/aws/aws-sdk-go/service/mediastoredata/service.go
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package mediastoredata
|
||||
|
||||
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/restjson"
|
||||
)
|
||||
|
||||
// MediaStoreData provides the API operation methods for making requests to
|
||||
// AWS Elemental MediaStore Data Plane. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// MediaStoreData methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type MediaStoreData 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 = "data.mediastore" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the MediaStoreData 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 MediaStoreData client from just a session.
|
||||
// svc := mediastoredata.New(mySession)
|
||||
//
|
||||
// // Create a MediaStoreData client with additional configuration
|
||||
// svc := mediastoredata.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *MediaStoreData {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "mediastore"
|
||||
}
|
||||
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) *MediaStoreData {
|
||||
svc := &MediaStoreData{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-09-01",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a MediaStoreData operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *MediaStoreData) 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