Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetPieceIDMetadataBadRequest
- func (o *GetPieceIDMetadataBadRequest) Code() int
- func (o *GetPieceIDMetadataBadRequest) Error() string
- func (o *GetPieceIDMetadataBadRequest) GetPayload() string
- func (o *GetPieceIDMetadataBadRequest) IsClientError() bool
- func (o *GetPieceIDMetadataBadRequest) IsCode(code int) bool
- func (o *GetPieceIDMetadataBadRequest) IsRedirect() bool
- func (o *GetPieceIDMetadataBadRequest) IsServerError() bool
- func (o *GetPieceIDMetadataBadRequest) IsSuccess() bool
- func (o *GetPieceIDMetadataBadRequest) String() string
- type GetPieceIDMetadataInternalServerError
- func (o *GetPieceIDMetadataInternalServerError) Code() int
- func (o *GetPieceIDMetadataInternalServerError) Error() string
- func (o *GetPieceIDMetadataInternalServerError) GetPayload() string
- func (o *GetPieceIDMetadataInternalServerError) IsClientError() bool
- func (o *GetPieceIDMetadataInternalServerError) IsCode(code int) bool
- func (o *GetPieceIDMetadataInternalServerError) IsRedirect() bool
- func (o *GetPieceIDMetadataInternalServerError) IsServerError() bool
- func (o *GetPieceIDMetadataInternalServerError) IsSuccess() bool
- func (o *GetPieceIDMetadataInternalServerError) String() string
- type GetPieceIDMetadataNotFound
- func (o *GetPieceIDMetadataNotFound) Code() int
- func (o *GetPieceIDMetadataNotFound) Error() string
- func (o *GetPieceIDMetadataNotFound) GetPayload() string
- func (o *GetPieceIDMetadataNotFound) IsClientError() bool
- func (o *GetPieceIDMetadataNotFound) IsCode(code int) bool
- func (o *GetPieceIDMetadataNotFound) IsRedirect() bool
- func (o *GetPieceIDMetadataNotFound) IsServerError() bool
- func (o *GetPieceIDMetadataNotFound) IsSuccess() bool
- func (o *GetPieceIDMetadataNotFound) String() string
- type GetPieceIDMetadataOK
- func (o *GetPieceIDMetadataOK) Code() int
- func (o *GetPieceIDMetadataOK) Error() string
- func (o *GetPieceIDMetadataOK) GetPayload() models.StorePieceReader
- func (o *GetPieceIDMetadataOK) IsClientError() bool
- func (o *GetPieceIDMetadataOK) IsCode(code int) bool
- func (o *GetPieceIDMetadataOK) IsRedirect() bool
- func (o *GetPieceIDMetadataOK) IsServerError() bool
- func (o *GetPieceIDMetadataOK) IsSuccess() bool
- func (o *GetPieceIDMetadataOK) String() string
- type GetPieceIDMetadataParams
- func NewGetPieceIDMetadataParams() *GetPieceIDMetadataParams
- func NewGetPieceIDMetadataParamsWithContext(ctx context.Context) *GetPieceIDMetadataParams
- func NewGetPieceIDMetadataParamsWithHTTPClient(client *http.Client) *GetPieceIDMetadataParams
- func NewGetPieceIDMetadataParamsWithTimeout(timeout time.Duration) *GetPieceIDMetadataParams
- func (o *GetPieceIDMetadataParams) SetContext(ctx context.Context)
- func (o *GetPieceIDMetadataParams) SetDefaults()
- func (o *GetPieceIDMetadataParams) SetHTTPClient(client *http.Client)
- func (o *GetPieceIDMetadataParams) SetID(id string)
- func (o *GetPieceIDMetadataParams) SetTimeout(timeout time.Duration)
- func (o *GetPieceIDMetadataParams) WithContext(ctx context.Context) *GetPieceIDMetadataParams
- func (o *GetPieceIDMetadataParams) WithDefaults() *GetPieceIDMetadataParams
- func (o *GetPieceIDMetadataParams) WithHTTPClient(client *http.Client) *GetPieceIDMetadataParams
- func (o *GetPieceIDMetadataParams) WithID(id string) *GetPieceIDMetadataParams
- func (o *GetPieceIDMetadataParams) WithTimeout(timeout time.Duration) *GetPieceIDMetadataParams
- func (o *GetPieceIDMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPieceIDMetadataReader
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 metadata API
func (*Client) GetPieceIDMetadata ¶
func (a *Client) GetPieceIDMetadata(params *GetPieceIDMetadataParams, opts ...ClientOption) (*GetPieceIDMetadataOK, error)
GetPieceIDMetadata gets metadata for a piece
Get metadata for a piece for how it may be reassembled from the data source
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
GetPieceIDMetadata(params *GetPieceIDMetadataParams, opts ...ClientOption) (*GetPieceIDMetadataOK, 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 metadata API client.
type GetPieceIDMetadataBadRequest ¶
type GetPieceIDMetadataBadRequest struct {
Payload string
}
GetPieceIDMetadataBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetPieceIDMetadataBadRequest ¶
func NewGetPieceIDMetadataBadRequest() *GetPieceIDMetadataBadRequest
NewGetPieceIDMetadataBadRequest creates a GetPieceIDMetadataBadRequest with default headers values
func (*GetPieceIDMetadataBadRequest) Code ¶
func (o *GetPieceIDMetadataBadRequest) Code() int
Code gets the status code for the get piece Id metadata bad request response
func (*GetPieceIDMetadataBadRequest) Error ¶
func (o *GetPieceIDMetadataBadRequest) Error() string
func (*GetPieceIDMetadataBadRequest) GetPayload ¶
func (o *GetPieceIDMetadataBadRequest) GetPayload() string
func (*GetPieceIDMetadataBadRequest) IsClientError ¶
func (o *GetPieceIDMetadataBadRequest) IsClientError() bool
IsClientError returns true when this get piece Id metadata bad request response has a 4xx status code
func (*GetPieceIDMetadataBadRequest) IsCode ¶
func (o *GetPieceIDMetadataBadRequest) IsCode(code int) bool
IsCode returns true when this get piece Id metadata bad request response a status code equal to that given
func (*GetPieceIDMetadataBadRequest) IsRedirect ¶
func (o *GetPieceIDMetadataBadRequest) IsRedirect() bool
IsRedirect returns true when this get piece Id metadata bad request response has a 3xx status code
func (*GetPieceIDMetadataBadRequest) IsServerError ¶
func (o *GetPieceIDMetadataBadRequest) IsServerError() bool
IsServerError returns true when this get piece Id metadata bad request response has a 5xx status code
func (*GetPieceIDMetadataBadRequest) IsSuccess ¶
func (o *GetPieceIDMetadataBadRequest) IsSuccess() bool
IsSuccess returns true when this get piece Id metadata bad request response has a 2xx status code
func (*GetPieceIDMetadataBadRequest) String ¶
func (o *GetPieceIDMetadataBadRequest) String() string
type GetPieceIDMetadataInternalServerError ¶
type GetPieceIDMetadataInternalServerError struct {
Payload string
}
GetPieceIDMetadataInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetPieceIDMetadataInternalServerError ¶
func NewGetPieceIDMetadataInternalServerError() *GetPieceIDMetadataInternalServerError
NewGetPieceIDMetadataInternalServerError creates a GetPieceIDMetadataInternalServerError with default headers values
func (*GetPieceIDMetadataInternalServerError) Code ¶
func (o *GetPieceIDMetadataInternalServerError) Code() int
Code gets the status code for the get piece Id metadata internal server error response
func (*GetPieceIDMetadataInternalServerError) Error ¶
func (o *GetPieceIDMetadataInternalServerError) Error() string
func (*GetPieceIDMetadataInternalServerError) GetPayload ¶
func (o *GetPieceIDMetadataInternalServerError) GetPayload() string
func (*GetPieceIDMetadataInternalServerError) IsClientError ¶
func (o *GetPieceIDMetadataInternalServerError) IsClientError() bool
IsClientError returns true when this get piece Id metadata internal server error response has a 4xx status code
func (*GetPieceIDMetadataInternalServerError) IsCode ¶
func (o *GetPieceIDMetadataInternalServerError) IsCode(code int) bool
IsCode returns true when this get piece Id metadata internal server error response a status code equal to that given
func (*GetPieceIDMetadataInternalServerError) IsRedirect ¶
func (o *GetPieceIDMetadataInternalServerError) IsRedirect() bool
IsRedirect returns true when this get piece Id metadata internal server error response has a 3xx status code
func (*GetPieceIDMetadataInternalServerError) IsServerError ¶
func (o *GetPieceIDMetadataInternalServerError) IsServerError() bool
IsServerError returns true when this get piece Id metadata internal server error response has a 5xx status code
func (*GetPieceIDMetadataInternalServerError) IsSuccess ¶
func (o *GetPieceIDMetadataInternalServerError) IsSuccess() bool
IsSuccess returns true when this get piece Id metadata internal server error response has a 2xx status code
func (*GetPieceIDMetadataInternalServerError) String ¶
func (o *GetPieceIDMetadataInternalServerError) String() string
type GetPieceIDMetadataNotFound ¶
type GetPieceIDMetadataNotFound struct {
Payload string
}
GetPieceIDMetadataNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetPieceIDMetadataNotFound ¶
func NewGetPieceIDMetadataNotFound() *GetPieceIDMetadataNotFound
NewGetPieceIDMetadataNotFound creates a GetPieceIDMetadataNotFound with default headers values
func (*GetPieceIDMetadataNotFound) Code ¶
func (o *GetPieceIDMetadataNotFound) Code() int
Code gets the status code for the get piece Id metadata not found response
func (*GetPieceIDMetadataNotFound) Error ¶
func (o *GetPieceIDMetadataNotFound) Error() string
func (*GetPieceIDMetadataNotFound) GetPayload ¶
func (o *GetPieceIDMetadataNotFound) GetPayload() string
func (*GetPieceIDMetadataNotFound) IsClientError ¶
func (o *GetPieceIDMetadataNotFound) IsClientError() bool
IsClientError returns true when this get piece Id metadata not found response has a 4xx status code
func (*GetPieceIDMetadataNotFound) IsCode ¶
func (o *GetPieceIDMetadataNotFound) IsCode(code int) bool
IsCode returns true when this get piece Id metadata not found response a status code equal to that given
func (*GetPieceIDMetadataNotFound) IsRedirect ¶
func (o *GetPieceIDMetadataNotFound) IsRedirect() bool
IsRedirect returns true when this get piece Id metadata not found response has a 3xx status code
func (*GetPieceIDMetadataNotFound) IsServerError ¶
func (o *GetPieceIDMetadataNotFound) IsServerError() bool
IsServerError returns true when this get piece Id metadata not found response has a 5xx status code
func (*GetPieceIDMetadataNotFound) IsSuccess ¶
func (o *GetPieceIDMetadataNotFound) IsSuccess() bool
IsSuccess returns true when this get piece Id metadata not found response has a 2xx status code
func (*GetPieceIDMetadataNotFound) String ¶
func (o *GetPieceIDMetadataNotFound) String() string
type GetPieceIDMetadataOK ¶
type GetPieceIDMetadataOK struct {
Payload models.StorePieceReader
}
GetPieceIDMetadataOK describes a response with status code 200, with default header values.
OK
func NewGetPieceIDMetadataOK ¶
func NewGetPieceIDMetadataOK() *GetPieceIDMetadataOK
NewGetPieceIDMetadataOK creates a GetPieceIDMetadataOK with default headers values
func (*GetPieceIDMetadataOK) Code ¶
func (o *GetPieceIDMetadataOK) Code() int
Code gets the status code for the get piece Id metadata o k response
func (*GetPieceIDMetadataOK) Error ¶
func (o *GetPieceIDMetadataOK) Error() string
func (*GetPieceIDMetadataOK) GetPayload ¶
func (o *GetPieceIDMetadataOK) GetPayload() models.StorePieceReader
func (*GetPieceIDMetadataOK) IsClientError ¶
func (o *GetPieceIDMetadataOK) IsClientError() bool
IsClientError returns true when this get piece Id metadata o k response has a 4xx status code
func (*GetPieceIDMetadataOK) IsCode ¶
func (o *GetPieceIDMetadataOK) IsCode(code int) bool
IsCode returns true when this get piece Id metadata o k response a status code equal to that given
func (*GetPieceIDMetadataOK) IsRedirect ¶
func (o *GetPieceIDMetadataOK) IsRedirect() bool
IsRedirect returns true when this get piece Id metadata o k response has a 3xx status code
func (*GetPieceIDMetadataOK) IsServerError ¶
func (o *GetPieceIDMetadataOK) IsServerError() bool
IsServerError returns true when this get piece Id metadata o k response has a 5xx status code
func (*GetPieceIDMetadataOK) IsSuccess ¶
func (o *GetPieceIDMetadataOK) IsSuccess() bool
IsSuccess returns true when this get piece Id metadata o k response has a 2xx status code
func (*GetPieceIDMetadataOK) String ¶
func (o *GetPieceIDMetadataOK) String() string
type GetPieceIDMetadataParams ¶
type GetPieceIDMetadataParams struct {
/* ID.
Piece CID
*/
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetPieceIDMetadataParams contains all the parameters to send to the API endpoint
for the get piece ID metadata operation. Typically these are written to a http.Request.
func NewGetPieceIDMetadataParams ¶
func NewGetPieceIDMetadataParams() *GetPieceIDMetadataParams
NewGetPieceIDMetadataParams creates a new GetPieceIDMetadataParams 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 NewGetPieceIDMetadataParamsWithContext ¶
func NewGetPieceIDMetadataParamsWithContext(ctx context.Context) *GetPieceIDMetadataParams
NewGetPieceIDMetadataParamsWithContext creates a new GetPieceIDMetadataParams object with the ability to set a context for a request.
func NewGetPieceIDMetadataParamsWithHTTPClient ¶
func NewGetPieceIDMetadataParamsWithHTTPClient(client *http.Client) *GetPieceIDMetadataParams
NewGetPieceIDMetadataParamsWithHTTPClient creates a new GetPieceIDMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewGetPieceIDMetadataParamsWithTimeout ¶
func NewGetPieceIDMetadataParamsWithTimeout(timeout time.Duration) *GetPieceIDMetadataParams
NewGetPieceIDMetadataParamsWithTimeout creates a new GetPieceIDMetadataParams object with the ability to set a timeout on a request.
func (*GetPieceIDMetadataParams) SetContext ¶
func (o *GetPieceIDMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the get piece ID metadata params
func (*GetPieceIDMetadataParams) SetDefaults ¶
func (o *GetPieceIDMetadataParams) SetDefaults()
SetDefaults hydrates default values in the get piece ID metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetPieceIDMetadataParams) SetHTTPClient ¶
func (o *GetPieceIDMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get piece ID metadata params
func (*GetPieceIDMetadataParams) SetID ¶
func (o *GetPieceIDMetadataParams) SetID(id string)
SetID adds the id to the get piece ID metadata params
func (*GetPieceIDMetadataParams) SetTimeout ¶
func (o *GetPieceIDMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get piece ID metadata params
func (*GetPieceIDMetadataParams) WithContext ¶
func (o *GetPieceIDMetadataParams) WithContext(ctx context.Context) *GetPieceIDMetadataParams
WithContext adds the context to the get piece ID metadata params
func (*GetPieceIDMetadataParams) WithDefaults ¶
func (o *GetPieceIDMetadataParams) WithDefaults() *GetPieceIDMetadataParams
WithDefaults hydrates default values in the get piece ID metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetPieceIDMetadataParams) WithHTTPClient ¶
func (o *GetPieceIDMetadataParams) WithHTTPClient(client *http.Client) *GetPieceIDMetadataParams
WithHTTPClient adds the HTTPClient to the get piece ID metadata params
func (*GetPieceIDMetadataParams) WithID ¶
func (o *GetPieceIDMetadataParams) WithID(id string) *GetPieceIDMetadataParams
WithID adds the id to the get piece ID metadata params
func (*GetPieceIDMetadataParams) WithTimeout ¶
func (o *GetPieceIDMetadataParams) WithTimeout(timeout time.Duration) *GetPieceIDMetadataParams
WithTimeout adds the timeout to the get piece ID metadata params
func (*GetPieceIDMetadataParams) WriteToRequest ¶
func (o *GetPieceIDMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPieceIDMetadataReader ¶
type GetPieceIDMetadataReader struct {
// contains filtered or unexported fields
}
GetPieceIDMetadataReader is a Reader for the GetPieceIDMetadata structure.
func (*GetPieceIDMetadataReader) ReadResponse ¶
func (o *GetPieceIDMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.