Vendor aws-sdk-go (dep ensure) (#178)
This commit is contained in:
2138
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go
generated
vendored
Normal file
2138
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
26
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/doc.go
generated
vendored
Normal file
26
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/doc.go
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package kinesisvideo provides the client and types for making API
|
||||
// requests to Amazon Kinesis Video Streams.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30 for more information on this service.
|
||||
//
|
||||
// See kinesisvideo package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/kinesisvideo/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact Amazon Kinesis Video Streams 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 Amazon Kinesis Video Streams client KinesisVideo for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/kinesisvideo/#New
|
||||
package kinesisvideo
|
||||
76
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/errors.go
generated
vendored
Normal file
76
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/errors.go
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package kinesisvideo
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAccountStreamLimitExceededException for service response error code
|
||||
// "AccountStreamLimitExceededException".
|
||||
//
|
||||
// The number of streams created for the account is too high.
|
||||
ErrCodeAccountStreamLimitExceededException = "AccountStreamLimitExceededException"
|
||||
|
||||
// ErrCodeClientLimitExceededException for service response error code
|
||||
// "ClientLimitExceededException".
|
||||
//
|
||||
// Kinesis Video Streams has throttled the request because you have exceeded
|
||||
// the limit of allowed client calls. Try making the call later.
|
||||
ErrCodeClientLimitExceededException = "ClientLimitExceededException"
|
||||
|
||||
// ErrCodeDeviceStreamLimitExceededException for service response error code
|
||||
// "DeviceStreamLimitExceededException".
|
||||
//
|
||||
// Not implemented.
|
||||
ErrCodeDeviceStreamLimitExceededException = "DeviceStreamLimitExceededException"
|
||||
|
||||
// ErrCodeInvalidArgumentException for service response error code
|
||||
// "InvalidArgumentException".
|
||||
//
|
||||
// The value for this input parameter is invalid.
|
||||
ErrCodeInvalidArgumentException = "InvalidArgumentException"
|
||||
|
||||
// ErrCodeInvalidDeviceException for service response error code
|
||||
// "InvalidDeviceException".
|
||||
//
|
||||
// Not implemented.
|
||||
ErrCodeInvalidDeviceException = "InvalidDeviceException"
|
||||
|
||||
// ErrCodeInvalidResourceFormatException for service response error code
|
||||
// "InvalidResourceFormatException".
|
||||
//
|
||||
// The format of the StreamARN is invalid.
|
||||
ErrCodeInvalidResourceFormatException = "InvalidResourceFormatException"
|
||||
|
||||
// ErrCodeNotAuthorizedException for service response error code
|
||||
// "NotAuthorizedException".
|
||||
//
|
||||
// The caller is not authorized to perform this operation.
|
||||
ErrCodeNotAuthorizedException = "NotAuthorizedException"
|
||||
|
||||
// ErrCodeResourceInUseException for service response error code
|
||||
// "ResourceInUseException".
|
||||
//
|
||||
// The stream is currently not available for this operation.
|
||||
ErrCodeResourceInUseException = "ResourceInUseException"
|
||||
|
||||
// ErrCodeResourceNotFoundException for service response error code
|
||||
// "ResourceNotFoundException".
|
||||
//
|
||||
// Amazon Kinesis Video Streams can't find the stream that you specified.
|
||||
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
|
||||
|
||||
// ErrCodeTagsPerResourceExceededLimitException for service response error code
|
||||
// "TagsPerResourceExceededLimitException".
|
||||
//
|
||||
// You have exceeded the limit of tags that you can associate with the resource.
|
||||
// Kinesis video streams support up to 50 tags.
|
||||
ErrCodeTagsPerResourceExceededLimitException = "TagsPerResourceExceededLimitException"
|
||||
|
||||
// ErrCodeVersionMismatchException for service response error code
|
||||
// "VersionMismatchException".
|
||||
//
|
||||
// The stream version that you specified is not the latest version. To get the
|
||||
// latest version, use the DescribeStream (http://docs.aws.amazon.com/kinesisvideo/latest/dg/API_DescribeStream.html)
|
||||
// API.
|
||||
ErrCodeVersionMismatchException = "VersionMismatchException"
|
||||
)
|
||||
104
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/kinesisvideoiface/interface.go
generated
vendored
Normal file
104
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/kinesisvideoiface/interface.go
generated
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package kinesisvideoiface provides an interface to enable mocking the Amazon Kinesis Video Streams 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 kinesisvideoiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/kinesisvideo"
|
||||
)
|
||||
|
||||
// KinesisVideoAPI provides an interface to enable mocking the
|
||||
// kinesisvideo.KinesisVideo 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
|
||||
// // Amazon Kinesis Video Streams.
|
||||
// func myFunc(svc kinesisvideoiface.KinesisVideoAPI) bool {
|
||||
// // Make svc.CreateStream request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := kinesisvideo.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockKinesisVideoClient struct {
|
||||
// kinesisvideoiface.KinesisVideoAPI
|
||||
// }
|
||||
// func (m *mockKinesisVideoClient) CreateStream(input *kinesisvideo.CreateStreamInput) (*kinesisvideo.CreateStreamOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockKinesisVideoClient{}
|
||||
//
|
||||
// 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 KinesisVideoAPI interface {
|
||||
CreateStream(*kinesisvideo.CreateStreamInput) (*kinesisvideo.CreateStreamOutput, error)
|
||||
CreateStreamWithContext(aws.Context, *kinesisvideo.CreateStreamInput, ...request.Option) (*kinesisvideo.CreateStreamOutput, error)
|
||||
CreateStreamRequest(*kinesisvideo.CreateStreamInput) (*request.Request, *kinesisvideo.CreateStreamOutput)
|
||||
|
||||
DeleteStream(*kinesisvideo.DeleteStreamInput) (*kinesisvideo.DeleteStreamOutput, error)
|
||||
DeleteStreamWithContext(aws.Context, *kinesisvideo.DeleteStreamInput, ...request.Option) (*kinesisvideo.DeleteStreamOutput, error)
|
||||
DeleteStreamRequest(*kinesisvideo.DeleteStreamInput) (*request.Request, *kinesisvideo.DeleteStreamOutput)
|
||||
|
||||
DescribeStream(*kinesisvideo.DescribeStreamInput) (*kinesisvideo.DescribeStreamOutput, error)
|
||||
DescribeStreamWithContext(aws.Context, *kinesisvideo.DescribeStreamInput, ...request.Option) (*kinesisvideo.DescribeStreamOutput, error)
|
||||
DescribeStreamRequest(*kinesisvideo.DescribeStreamInput) (*request.Request, *kinesisvideo.DescribeStreamOutput)
|
||||
|
||||
GetDataEndpoint(*kinesisvideo.GetDataEndpointInput) (*kinesisvideo.GetDataEndpointOutput, error)
|
||||
GetDataEndpointWithContext(aws.Context, *kinesisvideo.GetDataEndpointInput, ...request.Option) (*kinesisvideo.GetDataEndpointOutput, error)
|
||||
GetDataEndpointRequest(*kinesisvideo.GetDataEndpointInput) (*request.Request, *kinesisvideo.GetDataEndpointOutput)
|
||||
|
||||
ListStreams(*kinesisvideo.ListStreamsInput) (*kinesisvideo.ListStreamsOutput, error)
|
||||
ListStreamsWithContext(aws.Context, *kinesisvideo.ListStreamsInput, ...request.Option) (*kinesisvideo.ListStreamsOutput, error)
|
||||
ListStreamsRequest(*kinesisvideo.ListStreamsInput) (*request.Request, *kinesisvideo.ListStreamsOutput)
|
||||
|
||||
ListTagsForStream(*kinesisvideo.ListTagsForStreamInput) (*kinesisvideo.ListTagsForStreamOutput, error)
|
||||
ListTagsForStreamWithContext(aws.Context, *kinesisvideo.ListTagsForStreamInput, ...request.Option) (*kinesisvideo.ListTagsForStreamOutput, error)
|
||||
ListTagsForStreamRequest(*kinesisvideo.ListTagsForStreamInput) (*request.Request, *kinesisvideo.ListTagsForStreamOutput)
|
||||
|
||||
TagStream(*kinesisvideo.TagStreamInput) (*kinesisvideo.TagStreamOutput, error)
|
||||
TagStreamWithContext(aws.Context, *kinesisvideo.TagStreamInput, ...request.Option) (*kinesisvideo.TagStreamOutput, error)
|
||||
TagStreamRequest(*kinesisvideo.TagStreamInput) (*request.Request, *kinesisvideo.TagStreamOutput)
|
||||
|
||||
UntagStream(*kinesisvideo.UntagStreamInput) (*kinesisvideo.UntagStreamOutput, error)
|
||||
UntagStreamWithContext(aws.Context, *kinesisvideo.UntagStreamInput, ...request.Option) (*kinesisvideo.UntagStreamOutput, error)
|
||||
UntagStreamRequest(*kinesisvideo.UntagStreamInput) (*request.Request, *kinesisvideo.UntagStreamOutput)
|
||||
|
||||
UpdateDataRetention(*kinesisvideo.UpdateDataRetentionInput) (*kinesisvideo.UpdateDataRetentionOutput, error)
|
||||
UpdateDataRetentionWithContext(aws.Context, *kinesisvideo.UpdateDataRetentionInput, ...request.Option) (*kinesisvideo.UpdateDataRetentionOutput, error)
|
||||
UpdateDataRetentionRequest(*kinesisvideo.UpdateDataRetentionInput) (*request.Request, *kinesisvideo.UpdateDataRetentionOutput)
|
||||
|
||||
UpdateStream(*kinesisvideo.UpdateStreamInput) (*kinesisvideo.UpdateStreamOutput, error)
|
||||
UpdateStreamWithContext(aws.Context, *kinesisvideo.UpdateStreamInput, ...request.Option) (*kinesisvideo.UpdateStreamOutput, error)
|
||||
UpdateStreamRequest(*kinesisvideo.UpdateStreamInput) (*request.Request, *kinesisvideo.UpdateStreamOutput)
|
||||
}
|
||||
|
||||
var _ KinesisVideoAPI = (*kinesisvideo.KinesisVideo)(nil)
|
||||
93
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/service.go
generated
vendored
Normal file
93
vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/service.go
generated
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package kinesisvideo
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
// KinesisVideo provides the API operation methods for making requests to
|
||||
// Amazon Kinesis Video Streams. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// KinesisVideo methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type KinesisVideo 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 = "kinesisvideo" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the KinesisVideo 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 KinesisVideo client from just a session.
|
||||
// svc := kinesisvideo.New(mySession)
|
||||
//
|
||||
// // Create a KinesisVideo client with additional configuration
|
||||
// svc := kinesisvideo.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisVideo {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
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) *KinesisVideo {
|
||||
svc := &KinesisVideo{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-09-30",
|
||||
},
|
||||
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 KinesisVideo operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *KinesisVideo) 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