Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type SignS3URIBadRequest
- type SignS3URIForbidden
- type SignS3URIInternalServerError
- type SignS3URIOK
- type SignS3URIParams
- func (o *SignS3URIParams) SetContext(ctx context.Context)
- func (o *SignS3URIParams) SetDefaults()
- func (o *SignS3URIParams) SetHTTPClient(client *http.Client)
- func (o *SignS3URIParams) SetTimeout(timeout time.Duration)
- func (o *SignS3URIParams) SetURI(uri strfmt.URI)
- func (o *SignS3URIParams) WithContext(ctx context.Context) *SignS3URIParams
- func (o *SignS3URIParams) WithDefaults() *SignS3URIParams
- func (o *SignS3URIParams) WithHTTPClient(client *http.Client) *SignS3URIParams
- func (o *SignS3URIParams) WithTimeout(timeout time.Duration) *SignS3URIParams
- func (o *SignS3URIParams) WithURI(uri strfmt.URI) *SignS3URIParams
- func (o *SignS3URIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SignS3URIReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for s3 API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SignS3URI ¶
func (a *Client) SignS3URI(params *SignS3URIParams, opts ...ClientOption) (*SignS3URIOK, error)
SignS3URI signs an s3 URI
Returns a signed, limited-duration S3 URI
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { SignS3URI(params *SignS3URIParams, opts ...ClientOption) (*SignS3URIOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new s3 API client.
type SignS3URIBadRequest ¶
type SignS3URIBadRequest struct {
Payload *mono_models.Message
}
SignS3URIBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewSignS3URIBadRequest ¶
func NewSignS3URIBadRequest() *SignS3URIBadRequest
NewSignS3URIBadRequest creates a SignS3URIBadRequest with default headers values
func (*SignS3URIBadRequest) Error ¶
func (o *SignS3URIBadRequest) Error() string
func (*SignS3URIBadRequest) GetPayload ¶
func (o *SignS3URIBadRequest) GetPayload() *mono_models.Message
type SignS3URIForbidden ¶
type SignS3URIForbidden struct {
Payload *mono_models.Message
}
SignS3URIForbidden describes a response with status code 403, with default header values.
Forbidden
func NewSignS3URIForbidden ¶
func NewSignS3URIForbidden() *SignS3URIForbidden
NewSignS3URIForbidden creates a SignS3URIForbidden with default headers values
func (*SignS3URIForbidden) Error ¶
func (o *SignS3URIForbidden) Error() string
func (*SignS3URIForbidden) GetPayload ¶
func (o *SignS3URIForbidden) GetPayload() *mono_models.Message
type SignS3URIInternalServerError ¶
type SignS3URIInternalServerError struct {
Payload *mono_models.Message
}
SignS3URIInternalServerError describes a response with status code 500, with default header values.
Server Error
func NewSignS3URIInternalServerError ¶
func NewSignS3URIInternalServerError() *SignS3URIInternalServerError
NewSignS3URIInternalServerError creates a SignS3URIInternalServerError with default headers values
func (*SignS3URIInternalServerError) Error ¶
func (o *SignS3URIInternalServerError) Error() string
func (*SignS3URIInternalServerError) GetPayload ¶
func (o *SignS3URIInternalServerError) GetPayload() *mono_models.Message
type SignS3URIOK ¶
type SignS3URIOK struct {
Payload *mono_models.SignedURI
}
SignS3URIOK describes a response with status code 200, with default header values.
Success
func NewSignS3URIOK ¶
func NewSignS3URIOK() *SignS3URIOK
NewSignS3URIOK creates a SignS3URIOK with default headers values
func (*SignS3URIOK) Error ¶
func (o *SignS3URIOK) Error() string
func (*SignS3URIOK) GetPayload ¶
func (o *SignS3URIOK) GetPayload() *mono_models.SignedURI
type SignS3URIParams ¶
type SignS3URIParams struct { /* URI. S3 URI to sign Format: uri */ URI strfmt.URI Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SignS3URIParams contains all the parameters to send to the API endpoint
for the sign s3 URI operation. Typically these are written to a http.Request.
func NewSignS3URIParams ¶
func NewSignS3URIParams() *SignS3URIParams
NewSignS3URIParams creates a new SignS3URIParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSignS3URIParamsWithContext ¶
func NewSignS3URIParamsWithContext(ctx context.Context) *SignS3URIParams
NewSignS3URIParamsWithContext creates a new SignS3URIParams object with the ability to set a context for a request.
func NewSignS3URIParamsWithHTTPClient ¶
func NewSignS3URIParamsWithHTTPClient(client *http.Client) *SignS3URIParams
NewSignS3URIParamsWithHTTPClient creates a new SignS3URIParams object with the ability to set a custom HTTPClient for a request.
func NewSignS3URIParamsWithTimeout ¶
func NewSignS3URIParamsWithTimeout(timeout time.Duration) *SignS3URIParams
NewSignS3URIParamsWithTimeout creates a new SignS3URIParams object with the ability to set a timeout on a request.
func (*SignS3URIParams) SetContext ¶
func (o *SignS3URIParams) SetContext(ctx context.Context)
SetContext adds the context to the sign s3 URI params
func (*SignS3URIParams) SetDefaults ¶
func (o *SignS3URIParams) SetDefaults()
SetDefaults hydrates default values in the sign s3 URI params (not the query body).
All values with no default are reset to their zero value.
func (*SignS3URIParams) SetHTTPClient ¶
func (o *SignS3URIParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the sign s3 URI params
func (*SignS3URIParams) SetTimeout ¶
func (o *SignS3URIParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the sign s3 URI params
func (*SignS3URIParams) SetURI ¶
func (o *SignS3URIParams) SetURI(uri strfmt.URI)
SetURI adds the uri to the sign s3 URI params
func (*SignS3URIParams) WithContext ¶
func (o *SignS3URIParams) WithContext(ctx context.Context) *SignS3URIParams
WithContext adds the context to the sign s3 URI params
func (*SignS3URIParams) WithDefaults ¶
func (o *SignS3URIParams) WithDefaults() *SignS3URIParams
WithDefaults hydrates default values in the sign s3 URI params (not the query body).
All values with no default are reset to their zero value.
func (*SignS3URIParams) WithHTTPClient ¶
func (o *SignS3URIParams) WithHTTPClient(client *http.Client) *SignS3URIParams
WithHTTPClient adds the HTTPClient to the sign s3 URI params
func (*SignS3URIParams) WithTimeout ¶
func (o *SignS3URIParams) WithTimeout(timeout time.Duration) *SignS3URIParams
WithTimeout adds the timeout to the sign s3 URI params
func (*SignS3URIParams) WithURI ¶
func (o *SignS3URIParams) WithURI(uri strfmt.URI) *SignS3URIParams
WithURI adds the uri to the sign s3 URI params
func (*SignS3URIParams) WriteToRequest ¶
func (o *SignS3URIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SignS3URIReader ¶
type SignS3URIReader struct {
// contains filtered or unexported fields
}
SignS3URIReader is a Reader for the SignS3URI structure.
func (*SignS3URIReader) ReadResponse ¶
func (o *SignS3URIReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.