Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type Get1OK
- func (o *Get1OK) Code() int
- func (o *Get1OK) Error() string
- func (o *Get1OK) GetPayload() *models.UploadDefinitionXO
- func (o *Get1OK) IsClientError() bool
- func (o *Get1OK) IsCode(code int) bool
- func (o *Get1OK) IsRedirect() bool
- func (o *Get1OK) IsServerError() bool
- func (o *Get1OK) IsSuccess() bool
- func (o *Get1OK) String() string
- type Get1Params
- func (o *Get1Params) SetContext(ctx context.Context)
- func (o *Get1Params) SetDefaults()
- func (o *Get1Params) SetFormat(format string)
- func (o *Get1Params) SetHTTPClient(client *http.Client)
- func (o *Get1Params) SetTimeout(timeout time.Duration)
- func (o *Get1Params) WithContext(ctx context.Context) *Get1Params
- func (o *Get1Params) WithDefaults() *Get1Params
- func (o *Get1Params) WithFormat(format string) *Get1Params
- func (o *Get1Params) WithHTTPClient(client *http.Client) *Get1Params
- func (o *Get1Params) WithTimeout(timeout time.Duration) *Get1Params
- func (o *Get1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type Get1Reader
- type Get2OK
- func (o *Get2OK) Code() int
- func (o *Get2OK) Error() string
- func (o *Get2OK) GetPayload() []*models.UploadDefinitionXO
- func (o *Get2OK) IsClientError() bool
- func (o *Get2OK) IsCode(code int) bool
- func (o *Get2OK) IsRedirect() bool
- func (o *Get2OK) IsServerError() bool
- func (o *Get2OK) IsSuccess() bool
- func (o *Get2OK) String() string
- type Get2Params
- func (o *Get2Params) SetContext(ctx context.Context)
- func (o *Get2Params) SetDefaults()
- func (o *Get2Params) SetHTTPClient(client *http.Client)
- func (o *Get2Params) SetTimeout(timeout time.Duration)
- func (o *Get2Params) WithContext(ctx context.Context) *Get2Params
- func (o *Get2Params) WithDefaults() *Get2Params
- func (o *Get2Params) WithHTTPClient(client *http.Client) *Get2Params
- func (o *Get2Params) WithTimeout(timeout time.Duration) *Get2Params
- func (o *Get2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type Get2Reader
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 formats API
func (*Client) Get1 ¶
func (a *Client) Get1(params *Get1Params, opts ...ClientOption) (*Get1OK, error)
Get1 gets upload field requirements for the desired format
func (*Client) Get2 ¶
func (a *Client) Get2(params *Get2Params, opts ...ClientOption) (*Get2OK, error)
Get2 gets upload field requirements for each supported format
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 { Get1(params *Get1Params, opts ...ClientOption) (*Get1OK, error) Get2(params *Get2Params, opts ...ClientOption) (*Get2OK, 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 formats API client.
type Get1OK ¶
type Get1OK struct {
Payload *models.UploadDefinitionXO
}
Get1OK describes a response with status code 200, with default header values.
successful operation
func (*Get1OK) GetPayload ¶
func (o *Get1OK) GetPayload() *models.UploadDefinitionXO
func (*Get1OK) IsClientError ¶
IsClientError returns true when this get1 o k response has a 4xx status code
func (*Get1OK) IsCode ¶
IsCode returns true when this get1 o k response a status code equal to that given
func (*Get1OK) IsRedirect ¶
IsRedirect returns true when this get1 o k response has a 3xx status code
func (*Get1OK) IsServerError ¶
IsServerError returns true when this get1 o k response has a 5xx status code
type Get1Params ¶
type Get1Params struct { /* Format. The desired repository format */ Format string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
Get1Params contains all the parameters to send to the API endpoint
for the get 1 operation. Typically these are written to a http.Request.
func NewGet1Params ¶
func NewGet1Params() *Get1Params
NewGet1Params creates a new Get1Params 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 NewGet1ParamsWithContext ¶
func NewGet1ParamsWithContext(ctx context.Context) *Get1Params
NewGet1ParamsWithContext creates a new Get1Params object with the ability to set a context for a request.
func NewGet1ParamsWithHTTPClient ¶
func NewGet1ParamsWithHTTPClient(client *http.Client) *Get1Params
NewGet1ParamsWithHTTPClient creates a new Get1Params object with the ability to set a custom HTTPClient for a request.
func NewGet1ParamsWithTimeout ¶
func NewGet1ParamsWithTimeout(timeout time.Duration) *Get1Params
NewGet1ParamsWithTimeout creates a new Get1Params object with the ability to set a timeout on a request.
func (*Get1Params) SetContext ¶
func (o *Get1Params) SetContext(ctx context.Context)
SetContext adds the context to the get 1 params
func (*Get1Params) SetDefaults ¶
func (o *Get1Params) SetDefaults()
SetDefaults hydrates default values in the get 1 params (not the query body).
All values with no default are reset to their zero value.
func (*Get1Params) SetFormat ¶
func (o *Get1Params) SetFormat(format string)
SetFormat adds the format to the get 1 params
func (*Get1Params) SetHTTPClient ¶
func (o *Get1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get 1 params
func (*Get1Params) SetTimeout ¶
func (o *Get1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get 1 params
func (*Get1Params) WithContext ¶
func (o *Get1Params) WithContext(ctx context.Context) *Get1Params
WithContext adds the context to the get 1 params
func (*Get1Params) WithDefaults ¶
func (o *Get1Params) WithDefaults() *Get1Params
WithDefaults hydrates default values in the get 1 params (not the query body).
All values with no default are reset to their zero value.
func (*Get1Params) WithFormat ¶
func (o *Get1Params) WithFormat(format string) *Get1Params
WithFormat adds the format to the get 1 params
func (*Get1Params) WithHTTPClient ¶
func (o *Get1Params) WithHTTPClient(client *http.Client) *Get1Params
WithHTTPClient adds the HTTPClient to the get 1 params
func (*Get1Params) WithTimeout ¶
func (o *Get1Params) WithTimeout(timeout time.Duration) *Get1Params
WithTimeout adds the timeout to the get 1 params
func (*Get1Params) WriteToRequest ¶
func (o *Get1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type Get1Reader ¶
type Get1Reader struct {
// contains filtered or unexported fields
}
Get1Reader is a Reader for the Get1 structure.
func (*Get1Reader) ReadResponse ¶
func (o *Get1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Get2OK ¶
type Get2OK struct {
Payload []*models.UploadDefinitionXO
}
Get2OK describes a response with status code 200, with default header values.
successful operation
func (*Get2OK) GetPayload ¶
func (o *Get2OK) GetPayload() []*models.UploadDefinitionXO
func (*Get2OK) IsClientError ¶
IsClientError returns true when this get2 o k response has a 4xx status code
func (*Get2OK) IsCode ¶
IsCode returns true when this get2 o k response a status code equal to that given
func (*Get2OK) IsRedirect ¶
IsRedirect returns true when this get2 o k response has a 3xx status code
func (*Get2OK) IsServerError ¶
IsServerError returns true when this get2 o k response has a 5xx status code
type Get2Params ¶
type Get2Params struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
Get2Params contains all the parameters to send to the API endpoint
for the get 2 operation. Typically these are written to a http.Request.
func NewGet2Params ¶
func NewGet2Params() *Get2Params
NewGet2Params creates a new Get2Params 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 NewGet2ParamsWithContext ¶
func NewGet2ParamsWithContext(ctx context.Context) *Get2Params
NewGet2ParamsWithContext creates a new Get2Params object with the ability to set a context for a request.
func NewGet2ParamsWithHTTPClient ¶
func NewGet2ParamsWithHTTPClient(client *http.Client) *Get2Params
NewGet2ParamsWithHTTPClient creates a new Get2Params object with the ability to set a custom HTTPClient for a request.
func NewGet2ParamsWithTimeout ¶
func NewGet2ParamsWithTimeout(timeout time.Duration) *Get2Params
NewGet2ParamsWithTimeout creates a new Get2Params object with the ability to set a timeout on a request.
func (*Get2Params) SetContext ¶
func (o *Get2Params) SetContext(ctx context.Context)
SetContext adds the context to the get 2 params
func (*Get2Params) SetDefaults ¶
func (o *Get2Params) SetDefaults()
SetDefaults hydrates default values in the get 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Get2Params) SetHTTPClient ¶
func (o *Get2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get 2 params
func (*Get2Params) SetTimeout ¶
func (o *Get2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get 2 params
func (*Get2Params) WithContext ¶
func (o *Get2Params) WithContext(ctx context.Context) *Get2Params
WithContext adds the context to the get 2 params
func (*Get2Params) WithDefaults ¶
func (o *Get2Params) WithDefaults() *Get2Params
WithDefaults hydrates default values in the get 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Get2Params) WithHTTPClient ¶
func (o *Get2Params) WithHTTPClient(client *http.Client) *Get2Params
WithHTTPClient adds the HTTPClient to the get 2 params
func (*Get2Params) WithTimeout ¶
func (o *Get2Params) WithTimeout(timeout time.Duration) *Get2Params
WithTimeout adds the timeout to the get 2 params
func (*Get2Params) WriteToRequest ¶
func (o *Get2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type Get2Reader ¶
type Get2Reader struct {
// contains filtered or unexported fields
}
Get2Reader is a Reader for the Get2 structure.
func (*Get2Reader) ReadResponse ¶
func (o *Get2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.