Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateStore(params *CreateStoreParams, opts ...ClientOption) (*CreateStoreOK, error)
- func (a *Client) GetStore(params *GetStoreParams, opts ...ClientOption) (*GetStoreOK, error)
- func (a *Client) GetStores(params *GetStoresParams, opts ...ClientOption) (*GetStoresOK, error)
- func (a *Client) RebrandStore(params *RebrandStoreParams, opts ...ClientOption) (*RebrandStoreOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateStoreDefault
- func (o *CreateStoreDefault) Code() int
- func (o *CreateStoreDefault) Error() string
- func (o *CreateStoreDefault) GetPayload() *models.RPCStatus
- func (o *CreateStoreDefault) IsClientError() bool
- func (o *CreateStoreDefault) IsCode(code int) bool
- func (o *CreateStoreDefault) IsRedirect() bool
- func (o *CreateStoreDefault) IsServerError() bool
- func (o *CreateStoreDefault) IsSuccess() bool
- func (o *CreateStoreDefault) String() string
- type CreateStoreOK
- func (o *CreateStoreOK) Error() string
- func (o *CreateStoreOK) GetPayload() *models.StorespbCreateStoreResponse
- func (o *CreateStoreOK) IsClientError() bool
- func (o *CreateStoreOK) IsCode(code int) bool
- func (o *CreateStoreOK) IsRedirect() bool
- func (o *CreateStoreOK) IsServerError() bool
- func (o *CreateStoreOK) IsSuccess() bool
- func (o *CreateStoreOK) String() string
- type CreateStoreParams
- func (o *CreateStoreParams) SetBody(body *models.StorespbCreateStoreRequest)
- func (o *CreateStoreParams) SetContext(ctx context.Context)
- func (o *CreateStoreParams) SetDefaults()
- func (o *CreateStoreParams) SetHTTPClient(client *http.Client)
- func (o *CreateStoreParams) SetTimeout(timeout time.Duration)
- func (o *CreateStoreParams) WithBody(body *models.StorespbCreateStoreRequest) *CreateStoreParams
- func (o *CreateStoreParams) WithContext(ctx context.Context) *CreateStoreParams
- func (o *CreateStoreParams) WithDefaults() *CreateStoreParams
- func (o *CreateStoreParams) WithHTTPClient(client *http.Client) *CreateStoreParams
- func (o *CreateStoreParams) WithTimeout(timeout time.Duration) *CreateStoreParams
- func (o *CreateStoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateStoreReader
- type GetStoreDefault
- func (o *GetStoreDefault) Code() int
- func (o *GetStoreDefault) Error() string
- func (o *GetStoreDefault) GetPayload() *models.RPCStatus
- func (o *GetStoreDefault) IsClientError() bool
- func (o *GetStoreDefault) IsCode(code int) bool
- func (o *GetStoreDefault) IsRedirect() bool
- func (o *GetStoreDefault) IsServerError() bool
- func (o *GetStoreDefault) IsSuccess() bool
- func (o *GetStoreDefault) String() string
- type GetStoreOK
- func (o *GetStoreOK) Error() string
- func (o *GetStoreOK) GetPayload() *models.StorespbGetStoreResponse
- func (o *GetStoreOK) IsClientError() bool
- func (o *GetStoreOK) IsCode(code int) bool
- func (o *GetStoreOK) IsRedirect() bool
- func (o *GetStoreOK) IsServerError() bool
- func (o *GetStoreOK) IsSuccess() bool
- func (o *GetStoreOK) String() string
- type GetStoreParams
- func (o *GetStoreParams) SetContext(ctx context.Context)
- func (o *GetStoreParams) SetDefaults()
- func (o *GetStoreParams) SetHTTPClient(client *http.Client)
- func (o *GetStoreParams) SetID(id string)
- func (o *GetStoreParams) SetTimeout(timeout time.Duration)
- func (o *GetStoreParams) WithContext(ctx context.Context) *GetStoreParams
- func (o *GetStoreParams) WithDefaults() *GetStoreParams
- func (o *GetStoreParams) WithHTTPClient(client *http.Client) *GetStoreParams
- func (o *GetStoreParams) WithID(id string) *GetStoreParams
- func (o *GetStoreParams) WithTimeout(timeout time.Duration) *GetStoreParams
- func (o *GetStoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStoreReader
- type GetStoresDefault
- func (o *GetStoresDefault) Code() int
- func (o *GetStoresDefault) Error() string
- func (o *GetStoresDefault) GetPayload() *models.RPCStatus
- func (o *GetStoresDefault) IsClientError() bool
- func (o *GetStoresDefault) IsCode(code int) bool
- func (o *GetStoresDefault) IsRedirect() bool
- func (o *GetStoresDefault) IsServerError() bool
- func (o *GetStoresDefault) IsSuccess() bool
- func (o *GetStoresDefault) String() string
- type GetStoresOK
- func (o *GetStoresOK) Error() string
- func (o *GetStoresOK) GetPayload() *models.StorespbGetStoresResponse
- func (o *GetStoresOK) IsClientError() bool
- func (o *GetStoresOK) IsCode(code int) bool
- func (o *GetStoresOK) IsRedirect() bool
- func (o *GetStoresOK) IsServerError() bool
- func (o *GetStoresOK) IsSuccess() bool
- func (o *GetStoresOK) String() string
- type GetStoresParams
- func (o *GetStoresParams) SetContext(ctx context.Context)
- func (o *GetStoresParams) SetDefaults()
- func (o *GetStoresParams) SetHTTPClient(client *http.Client)
- func (o *GetStoresParams) SetTimeout(timeout time.Duration)
- func (o *GetStoresParams) WithContext(ctx context.Context) *GetStoresParams
- func (o *GetStoresParams) WithDefaults() *GetStoresParams
- func (o *GetStoresParams) WithHTTPClient(client *http.Client) *GetStoresParams
- func (o *GetStoresParams) WithTimeout(timeout time.Duration) *GetStoresParams
- func (o *GetStoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStoresReader
- type RebrandStoreDefault
- func (o *RebrandStoreDefault) Code() int
- func (o *RebrandStoreDefault) Error() string
- func (o *RebrandStoreDefault) GetPayload() *models.RPCStatus
- func (o *RebrandStoreDefault) IsClientError() bool
- func (o *RebrandStoreDefault) IsCode(code int) bool
- func (o *RebrandStoreDefault) IsRedirect() bool
- func (o *RebrandStoreDefault) IsServerError() bool
- func (o *RebrandStoreDefault) IsSuccess() bool
- func (o *RebrandStoreDefault) String() string
- type RebrandStoreOK
- func (o *RebrandStoreOK) Error() string
- func (o *RebrandStoreOK) GetPayload() models.StorespbRebrandStoreResponse
- func (o *RebrandStoreOK) IsClientError() bool
- func (o *RebrandStoreOK) IsCode(code int) bool
- func (o *RebrandStoreOK) IsRedirect() bool
- func (o *RebrandStoreOK) IsServerError() bool
- func (o *RebrandStoreOK) IsSuccess() bool
- func (o *RebrandStoreOK) String() string
- type RebrandStoreParams
- func (o *RebrandStoreParams) SetBody(body *models.RebrandStoreParamsBody)
- func (o *RebrandStoreParams) SetContext(ctx context.Context)
- func (o *RebrandStoreParams) SetDefaults()
- func (o *RebrandStoreParams) SetHTTPClient(client *http.Client)
- func (o *RebrandStoreParams) SetID(id string)
- func (o *RebrandStoreParams) SetTimeout(timeout time.Duration)
- func (o *RebrandStoreParams) WithBody(body *models.RebrandStoreParamsBody) *RebrandStoreParams
- func (o *RebrandStoreParams) WithContext(ctx context.Context) *RebrandStoreParams
- func (o *RebrandStoreParams) WithDefaults() *RebrandStoreParams
- func (o *RebrandStoreParams) WithHTTPClient(client *http.Client) *RebrandStoreParams
- func (o *RebrandStoreParams) WithID(id string) *RebrandStoreParams
- func (o *RebrandStoreParams) WithTimeout(timeout time.Duration) *RebrandStoreParams
- func (o *RebrandStoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RebrandStoreReader
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 store API
func (*Client) CreateStore ¶
func (a *Client) CreateStore(params *CreateStoreParams, opts ...ClientOption) (*CreateStoreOK, error)
CreateStore creates a new store
func (*Client) GetStore ¶
func (a *Client) GetStore(params *GetStoreParams, opts ...ClientOption) (*GetStoreOK, error)
GetStore gets a store
func (*Client) GetStores ¶
func (a *Client) GetStores(params *GetStoresParams, opts ...ClientOption) (*GetStoresOK, error)
GetStores gets a list of stores
func (*Client) RebrandStore ¶
func (a *Client) RebrandStore(params *RebrandStoreParams, opts ...ClientOption) (*RebrandStoreOK, error)
RebrandStore rebrand store API
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 { CreateStore(params *CreateStoreParams, opts ...ClientOption) (*CreateStoreOK, error) GetStore(params *GetStoreParams, opts ...ClientOption) (*GetStoreOK, error) GetStores(params *GetStoresParams, opts ...ClientOption) (*GetStoresOK, error) RebrandStore(params *RebrandStoreParams, opts ...ClientOption) (*RebrandStoreOK, 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 store API client.
type CreateStoreDefault ¶
type CreateStoreDefault struct { Payload *models.RPCStatus // contains filtered or unexported fields }
CreateStoreDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCreateStoreDefault ¶
func NewCreateStoreDefault(code int) *CreateStoreDefault
NewCreateStoreDefault creates a CreateStoreDefault with default headers values
func (*CreateStoreDefault) Code ¶
func (o *CreateStoreDefault) Code() int
Code gets the status code for the create store default response
func (*CreateStoreDefault) Error ¶
func (o *CreateStoreDefault) Error() string
func (*CreateStoreDefault) GetPayload ¶
func (o *CreateStoreDefault) GetPayload() *models.RPCStatus
func (*CreateStoreDefault) IsClientError ¶
func (o *CreateStoreDefault) IsClientError() bool
IsClientError returns true when this create store default response has a 4xx status code
func (*CreateStoreDefault) IsCode ¶
func (o *CreateStoreDefault) IsCode(code int) bool
IsCode returns true when this create store default response a status code equal to that given
func (*CreateStoreDefault) IsRedirect ¶
func (o *CreateStoreDefault) IsRedirect() bool
IsRedirect returns true when this create store default response has a 3xx status code
func (*CreateStoreDefault) IsServerError ¶
func (o *CreateStoreDefault) IsServerError() bool
IsServerError returns true when this create store default response has a 5xx status code
func (*CreateStoreDefault) IsSuccess ¶
func (o *CreateStoreDefault) IsSuccess() bool
IsSuccess returns true when this create store default response has a 2xx status code
func (*CreateStoreDefault) String ¶
func (o *CreateStoreDefault) String() string
type CreateStoreOK ¶
type CreateStoreOK struct {
Payload *models.StorespbCreateStoreResponse
}
CreateStoreOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateStoreOK ¶
func NewCreateStoreOK() *CreateStoreOK
NewCreateStoreOK creates a CreateStoreOK with default headers values
func (*CreateStoreOK) Error ¶
func (o *CreateStoreOK) Error() string
func (*CreateStoreOK) GetPayload ¶
func (o *CreateStoreOK) GetPayload() *models.StorespbCreateStoreResponse
func (*CreateStoreOK) IsClientError ¶
func (o *CreateStoreOK) IsClientError() bool
IsClientError returns true when this create store o k response has a 4xx status code
func (*CreateStoreOK) IsCode ¶
func (o *CreateStoreOK) IsCode(code int) bool
IsCode returns true when this create store o k response a status code equal to that given
func (*CreateStoreOK) IsRedirect ¶
func (o *CreateStoreOK) IsRedirect() bool
IsRedirect returns true when this create store o k response has a 3xx status code
func (*CreateStoreOK) IsServerError ¶
func (o *CreateStoreOK) IsServerError() bool
IsServerError returns true when this create store o k response has a 5xx status code
func (*CreateStoreOK) IsSuccess ¶
func (o *CreateStoreOK) IsSuccess() bool
IsSuccess returns true when this create store o k response has a 2xx status code
func (*CreateStoreOK) String ¶
func (o *CreateStoreOK) String() string
type CreateStoreParams ¶
type CreateStoreParams struct { // Body. Body *models.StorespbCreateStoreRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateStoreParams contains all the parameters to send to the API endpoint
for the create store operation. Typically these are written to a http.Request.
func NewCreateStoreParams ¶
func NewCreateStoreParams() *CreateStoreParams
NewCreateStoreParams creates a new CreateStoreParams 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 NewCreateStoreParamsWithContext ¶
func NewCreateStoreParamsWithContext(ctx context.Context) *CreateStoreParams
NewCreateStoreParamsWithContext creates a new CreateStoreParams object with the ability to set a context for a request.
func NewCreateStoreParamsWithHTTPClient ¶
func NewCreateStoreParamsWithHTTPClient(client *http.Client) *CreateStoreParams
NewCreateStoreParamsWithHTTPClient creates a new CreateStoreParams object with the ability to set a custom HTTPClient for a request.
func NewCreateStoreParamsWithTimeout ¶
func NewCreateStoreParamsWithTimeout(timeout time.Duration) *CreateStoreParams
NewCreateStoreParamsWithTimeout creates a new CreateStoreParams object with the ability to set a timeout on a request.
func (*CreateStoreParams) SetBody ¶
func (o *CreateStoreParams) SetBody(body *models.StorespbCreateStoreRequest)
SetBody adds the body to the create store params
func (*CreateStoreParams) SetContext ¶
func (o *CreateStoreParams) SetContext(ctx context.Context)
SetContext adds the context to the create store params
func (*CreateStoreParams) SetDefaults ¶
func (o *CreateStoreParams) SetDefaults()
SetDefaults hydrates default values in the create store params (not the query body).
All values with no default are reset to their zero value.
func (*CreateStoreParams) SetHTTPClient ¶
func (o *CreateStoreParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create store params
func (*CreateStoreParams) SetTimeout ¶
func (o *CreateStoreParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create store params
func (*CreateStoreParams) WithBody ¶
func (o *CreateStoreParams) WithBody(body *models.StorespbCreateStoreRequest) *CreateStoreParams
WithBody adds the body to the create store params
func (*CreateStoreParams) WithContext ¶
func (o *CreateStoreParams) WithContext(ctx context.Context) *CreateStoreParams
WithContext adds the context to the create store params
func (*CreateStoreParams) WithDefaults ¶
func (o *CreateStoreParams) WithDefaults() *CreateStoreParams
WithDefaults hydrates default values in the create store params (not the query body).
All values with no default are reset to their zero value.
func (*CreateStoreParams) WithHTTPClient ¶
func (o *CreateStoreParams) WithHTTPClient(client *http.Client) *CreateStoreParams
WithHTTPClient adds the HTTPClient to the create store params
func (*CreateStoreParams) WithTimeout ¶
func (o *CreateStoreParams) WithTimeout(timeout time.Duration) *CreateStoreParams
WithTimeout adds the timeout to the create store params
func (*CreateStoreParams) WriteToRequest ¶
func (o *CreateStoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateStoreReader ¶
type CreateStoreReader struct {
// contains filtered or unexported fields
}
CreateStoreReader is a Reader for the CreateStore structure.
func (*CreateStoreReader) ReadResponse ¶
func (o *CreateStoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetStoreDefault ¶
GetStoreDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetStoreDefault ¶
func NewGetStoreDefault(code int) *GetStoreDefault
NewGetStoreDefault creates a GetStoreDefault with default headers values
func (*GetStoreDefault) Code ¶
func (o *GetStoreDefault) Code() int
Code gets the status code for the get store default response
func (*GetStoreDefault) Error ¶
func (o *GetStoreDefault) Error() string
func (*GetStoreDefault) GetPayload ¶
func (o *GetStoreDefault) GetPayload() *models.RPCStatus
func (*GetStoreDefault) IsClientError ¶
func (o *GetStoreDefault) IsClientError() bool
IsClientError returns true when this get store default response has a 4xx status code
func (*GetStoreDefault) IsCode ¶
func (o *GetStoreDefault) IsCode(code int) bool
IsCode returns true when this get store default response a status code equal to that given
func (*GetStoreDefault) IsRedirect ¶
func (o *GetStoreDefault) IsRedirect() bool
IsRedirect returns true when this get store default response has a 3xx status code
func (*GetStoreDefault) IsServerError ¶
func (o *GetStoreDefault) IsServerError() bool
IsServerError returns true when this get store default response has a 5xx status code
func (*GetStoreDefault) IsSuccess ¶
func (o *GetStoreDefault) IsSuccess() bool
IsSuccess returns true when this get store default response has a 2xx status code
func (*GetStoreDefault) String ¶
func (o *GetStoreDefault) String() string
type GetStoreOK ¶
type GetStoreOK struct {
Payload *models.StorespbGetStoreResponse
}
GetStoreOK describes a response with status code 200, with default header values.
A successful response.
func NewGetStoreOK ¶
func NewGetStoreOK() *GetStoreOK
NewGetStoreOK creates a GetStoreOK with default headers values
func (*GetStoreOK) Error ¶
func (o *GetStoreOK) Error() string
func (*GetStoreOK) GetPayload ¶
func (o *GetStoreOK) GetPayload() *models.StorespbGetStoreResponse
func (*GetStoreOK) IsClientError ¶
func (o *GetStoreOK) IsClientError() bool
IsClientError returns true when this get store o k response has a 4xx status code
func (*GetStoreOK) IsCode ¶
func (o *GetStoreOK) IsCode(code int) bool
IsCode returns true when this get store o k response a status code equal to that given
func (*GetStoreOK) IsRedirect ¶
func (o *GetStoreOK) IsRedirect() bool
IsRedirect returns true when this get store o k response has a 3xx status code
func (*GetStoreOK) IsServerError ¶
func (o *GetStoreOK) IsServerError() bool
IsServerError returns true when this get store o k response has a 5xx status code
func (*GetStoreOK) IsSuccess ¶
func (o *GetStoreOK) IsSuccess() bool
IsSuccess returns true when this get store o k response has a 2xx status code
func (*GetStoreOK) String ¶
func (o *GetStoreOK) String() string
type GetStoreParams ¶
type GetStoreParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetStoreParams contains all the parameters to send to the API endpoint
for the get store operation. Typically these are written to a http.Request.
func NewGetStoreParams ¶
func NewGetStoreParams() *GetStoreParams
NewGetStoreParams creates a new GetStoreParams 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 NewGetStoreParamsWithContext ¶
func NewGetStoreParamsWithContext(ctx context.Context) *GetStoreParams
NewGetStoreParamsWithContext creates a new GetStoreParams object with the ability to set a context for a request.
func NewGetStoreParamsWithHTTPClient ¶
func NewGetStoreParamsWithHTTPClient(client *http.Client) *GetStoreParams
NewGetStoreParamsWithHTTPClient creates a new GetStoreParams object with the ability to set a custom HTTPClient for a request.
func NewGetStoreParamsWithTimeout ¶
func NewGetStoreParamsWithTimeout(timeout time.Duration) *GetStoreParams
NewGetStoreParamsWithTimeout creates a new GetStoreParams object with the ability to set a timeout on a request.
func (*GetStoreParams) SetContext ¶
func (o *GetStoreParams) SetContext(ctx context.Context)
SetContext adds the context to the get store params
func (*GetStoreParams) SetDefaults ¶
func (o *GetStoreParams) SetDefaults()
SetDefaults hydrates default values in the get store params (not the query body).
All values with no default are reset to their zero value.
func (*GetStoreParams) SetHTTPClient ¶
func (o *GetStoreParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get store params
func (*GetStoreParams) SetID ¶
func (o *GetStoreParams) SetID(id string)
SetID adds the id to the get store params
func (*GetStoreParams) SetTimeout ¶
func (o *GetStoreParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get store params
func (*GetStoreParams) WithContext ¶
func (o *GetStoreParams) WithContext(ctx context.Context) *GetStoreParams
WithContext adds the context to the get store params
func (*GetStoreParams) WithDefaults ¶
func (o *GetStoreParams) WithDefaults() *GetStoreParams
WithDefaults hydrates default values in the get store params (not the query body).
All values with no default are reset to their zero value.
func (*GetStoreParams) WithHTTPClient ¶
func (o *GetStoreParams) WithHTTPClient(client *http.Client) *GetStoreParams
WithHTTPClient adds the HTTPClient to the get store params
func (*GetStoreParams) WithID ¶
func (o *GetStoreParams) WithID(id string) *GetStoreParams
WithID adds the id to the get store params
func (*GetStoreParams) WithTimeout ¶
func (o *GetStoreParams) WithTimeout(timeout time.Duration) *GetStoreParams
WithTimeout adds the timeout to the get store params
func (*GetStoreParams) WriteToRequest ¶
func (o *GetStoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStoreReader ¶
type GetStoreReader struct {
// contains filtered or unexported fields
}
GetStoreReader is a Reader for the GetStore structure.
func (*GetStoreReader) ReadResponse ¶
func (o *GetStoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetStoresDefault ¶
type GetStoresDefault struct { Payload *models.RPCStatus // contains filtered or unexported fields }
GetStoresDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetStoresDefault ¶
func NewGetStoresDefault(code int) *GetStoresDefault
NewGetStoresDefault creates a GetStoresDefault with default headers values
func (*GetStoresDefault) Code ¶
func (o *GetStoresDefault) Code() int
Code gets the status code for the get stores default response
func (*GetStoresDefault) Error ¶
func (o *GetStoresDefault) Error() string
func (*GetStoresDefault) GetPayload ¶
func (o *GetStoresDefault) GetPayload() *models.RPCStatus
func (*GetStoresDefault) IsClientError ¶
func (o *GetStoresDefault) IsClientError() bool
IsClientError returns true when this get stores default response has a 4xx status code
func (*GetStoresDefault) IsCode ¶
func (o *GetStoresDefault) IsCode(code int) bool
IsCode returns true when this get stores default response a status code equal to that given
func (*GetStoresDefault) IsRedirect ¶
func (o *GetStoresDefault) IsRedirect() bool
IsRedirect returns true when this get stores default response has a 3xx status code
func (*GetStoresDefault) IsServerError ¶
func (o *GetStoresDefault) IsServerError() bool
IsServerError returns true when this get stores default response has a 5xx status code
func (*GetStoresDefault) IsSuccess ¶
func (o *GetStoresDefault) IsSuccess() bool
IsSuccess returns true when this get stores default response has a 2xx status code
func (*GetStoresDefault) String ¶
func (o *GetStoresDefault) String() string
type GetStoresOK ¶
type GetStoresOK struct {
Payload *models.StorespbGetStoresResponse
}
GetStoresOK describes a response with status code 200, with default header values.
A successful response.
func NewGetStoresOK ¶
func NewGetStoresOK() *GetStoresOK
NewGetStoresOK creates a GetStoresOK with default headers values
func (*GetStoresOK) Error ¶
func (o *GetStoresOK) Error() string
func (*GetStoresOK) GetPayload ¶
func (o *GetStoresOK) GetPayload() *models.StorespbGetStoresResponse
func (*GetStoresOK) IsClientError ¶
func (o *GetStoresOK) IsClientError() bool
IsClientError returns true when this get stores o k response has a 4xx status code
func (*GetStoresOK) IsCode ¶
func (o *GetStoresOK) IsCode(code int) bool
IsCode returns true when this get stores o k response a status code equal to that given
func (*GetStoresOK) IsRedirect ¶
func (o *GetStoresOK) IsRedirect() bool
IsRedirect returns true when this get stores o k response has a 3xx status code
func (*GetStoresOK) IsServerError ¶
func (o *GetStoresOK) IsServerError() bool
IsServerError returns true when this get stores o k response has a 5xx status code
func (*GetStoresOK) IsSuccess ¶
func (o *GetStoresOK) IsSuccess() bool
IsSuccess returns true when this get stores o k response has a 2xx status code
func (*GetStoresOK) String ¶
func (o *GetStoresOK) String() string
type GetStoresParams ¶
type GetStoresParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetStoresParams contains all the parameters to send to the API endpoint
for the get stores operation. Typically these are written to a http.Request.
func NewGetStoresParams ¶
func NewGetStoresParams() *GetStoresParams
NewGetStoresParams creates a new GetStoresParams 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 NewGetStoresParamsWithContext ¶
func NewGetStoresParamsWithContext(ctx context.Context) *GetStoresParams
NewGetStoresParamsWithContext creates a new GetStoresParams object with the ability to set a context for a request.
func NewGetStoresParamsWithHTTPClient ¶
func NewGetStoresParamsWithHTTPClient(client *http.Client) *GetStoresParams
NewGetStoresParamsWithHTTPClient creates a new GetStoresParams object with the ability to set a custom HTTPClient for a request.
func NewGetStoresParamsWithTimeout ¶
func NewGetStoresParamsWithTimeout(timeout time.Duration) *GetStoresParams
NewGetStoresParamsWithTimeout creates a new GetStoresParams object with the ability to set a timeout on a request.
func (*GetStoresParams) SetContext ¶
func (o *GetStoresParams) SetContext(ctx context.Context)
SetContext adds the context to the get stores params
func (*GetStoresParams) SetDefaults ¶
func (o *GetStoresParams) SetDefaults()
SetDefaults hydrates default values in the get stores params (not the query body).
All values with no default are reset to their zero value.
func (*GetStoresParams) SetHTTPClient ¶
func (o *GetStoresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get stores params
func (*GetStoresParams) SetTimeout ¶
func (o *GetStoresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get stores params
func (*GetStoresParams) WithContext ¶
func (o *GetStoresParams) WithContext(ctx context.Context) *GetStoresParams
WithContext adds the context to the get stores params
func (*GetStoresParams) WithDefaults ¶
func (o *GetStoresParams) WithDefaults() *GetStoresParams
WithDefaults hydrates default values in the get stores params (not the query body).
All values with no default are reset to their zero value.
func (*GetStoresParams) WithHTTPClient ¶
func (o *GetStoresParams) WithHTTPClient(client *http.Client) *GetStoresParams
WithHTTPClient adds the HTTPClient to the get stores params
func (*GetStoresParams) WithTimeout ¶
func (o *GetStoresParams) WithTimeout(timeout time.Duration) *GetStoresParams
WithTimeout adds the timeout to the get stores params
func (*GetStoresParams) WriteToRequest ¶
func (o *GetStoresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStoresReader ¶
type GetStoresReader struct {
// contains filtered or unexported fields
}
GetStoresReader is a Reader for the GetStores structure.
func (*GetStoresReader) ReadResponse ¶
func (o *GetStoresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RebrandStoreDefault ¶
type RebrandStoreDefault struct { Payload *models.RPCStatus // contains filtered or unexported fields }
RebrandStoreDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewRebrandStoreDefault ¶
func NewRebrandStoreDefault(code int) *RebrandStoreDefault
NewRebrandStoreDefault creates a RebrandStoreDefault with default headers values
func (*RebrandStoreDefault) Code ¶
func (o *RebrandStoreDefault) Code() int
Code gets the status code for the rebrand store default response
func (*RebrandStoreDefault) Error ¶
func (o *RebrandStoreDefault) Error() string
func (*RebrandStoreDefault) GetPayload ¶
func (o *RebrandStoreDefault) GetPayload() *models.RPCStatus
func (*RebrandStoreDefault) IsClientError ¶
func (o *RebrandStoreDefault) IsClientError() bool
IsClientError returns true when this rebrand store default response has a 4xx status code
func (*RebrandStoreDefault) IsCode ¶
func (o *RebrandStoreDefault) IsCode(code int) bool
IsCode returns true when this rebrand store default response a status code equal to that given
func (*RebrandStoreDefault) IsRedirect ¶
func (o *RebrandStoreDefault) IsRedirect() bool
IsRedirect returns true when this rebrand store default response has a 3xx status code
func (*RebrandStoreDefault) IsServerError ¶
func (o *RebrandStoreDefault) IsServerError() bool
IsServerError returns true when this rebrand store default response has a 5xx status code
func (*RebrandStoreDefault) IsSuccess ¶
func (o *RebrandStoreDefault) IsSuccess() bool
IsSuccess returns true when this rebrand store default response has a 2xx status code
func (*RebrandStoreDefault) String ¶
func (o *RebrandStoreDefault) String() string
type RebrandStoreOK ¶
type RebrandStoreOK struct {
Payload models.StorespbRebrandStoreResponse
}
RebrandStoreOK describes a response with status code 200, with default header values.
A successful response.
func NewRebrandStoreOK ¶
func NewRebrandStoreOK() *RebrandStoreOK
NewRebrandStoreOK creates a RebrandStoreOK with default headers values
func (*RebrandStoreOK) Error ¶
func (o *RebrandStoreOK) Error() string
func (*RebrandStoreOK) GetPayload ¶
func (o *RebrandStoreOK) GetPayload() models.StorespbRebrandStoreResponse
func (*RebrandStoreOK) IsClientError ¶
func (o *RebrandStoreOK) IsClientError() bool
IsClientError returns true when this rebrand store o k response has a 4xx status code
func (*RebrandStoreOK) IsCode ¶
func (o *RebrandStoreOK) IsCode(code int) bool
IsCode returns true when this rebrand store o k response a status code equal to that given
func (*RebrandStoreOK) IsRedirect ¶
func (o *RebrandStoreOK) IsRedirect() bool
IsRedirect returns true when this rebrand store o k response has a 3xx status code
func (*RebrandStoreOK) IsServerError ¶
func (o *RebrandStoreOK) IsServerError() bool
IsServerError returns true when this rebrand store o k response has a 5xx status code
func (*RebrandStoreOK) IsSuccess ¶
func (o *RebrandStoreOK) IsSuccess() bool
IsSuccess returns true when this rebrand store o k response has a 2xx status code
func (*RebrandStoreOK) String ¶
func (o *RebrandStoreOK) String() string
type RebrandStoreParams ¶
type RebrandStoreParams struct { // Body. Body *models.RebrandStoreParamsBody // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RebrandStoreParams contains all the parameters to send to the API endpoint
for the rebrand store operation. Typically these are written to a http.Request.
func NewRebrandStoreParams ¶
func NewRebrandStoreParams() *RebrandStoreParams
NewRebrandStoreParams creates a new RebrandStoreParams 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 NewRebrandStoreParamsWithContext ¶
func NewRebrandStoreParamsWithContext(ctx context.Context) *RebrandStoreParams
NewRebrandStoreParamsWithContext creates a new RebrandStoreParams object with the ability to set a context for a request.
func NewRebrandStoreParamsWithHTTPClient ¶
func NewRebrandStoreParamsWithHTTPClient(client *http.Client) *RebrandStoreParams
NewRebrandStoreParamsWithHTTPClient creates a new RebrandStoreParams object with the ability to set a custom HTTPClient for a request.
func NewRebrandStoreParamsWithTimeout ¶
func NewRebrandStoreParamsWithTimeout(timeout time.Duration) *RebrandStoreParams
NewRebrandStoreParamsWithTimeout creates a new RebrandStoreParams object with the ability to set a timeout on a request.
func (*RebrandStoreParams) SetBody ¶
func (o *RebrandStoreParams) SetBody(body *models.RebrandStoreParamsBody)
SetBody adds the body to the rebrand store params
func (*RebrandStoreParams) SetContext ¶
func (o *RebrandStoreParams) SetContext(ctx context.Context)
SetContext adds the context to the rebrand store params
func (*RebrandStoreParams) SetDefaults ¶
func (o *RebrandStoreParams) SetDefaults()
SetDefaults hydrates default values in the rebrand store params (not the query body).
All values with no default are reset to their zero value.
func (*RebrandStoreParams) SetHTTPClient ¶
func (o *RebrandStoreParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the rebrand store params
func (*RebrandStoreParams) SetID ¶
func (o *RebrandStoreParams) SetID(id string)
SetID adds the id to the rebrand store params
func (*RebrandStoreParams) SetTimeout ¶
func (o *RebrandStoreParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the rebrand store params
func (*RebrandStoreParams) WithBody ¶
func (o *RebrandStoreParams) WithBody(body *models.RebrandStoreParamsBody) *RebrandStoreParams
WithBody adds the body to the rebrand store params
func (*RebrandStoreParams) WithContext ¶
func (o *RebrandStoreParams) WithContext(ctx context.Context) *RebrandStoreParams
WithContext adds the context to the rebrand store params
func (*RebrandStoreParams) WithDefaults ¶
func (o *RebrandStoreParams) WithDefaults() *RebrandStoreParams
WithDefaults hydrates default values in the rebrand store params (not the query body).
All values with no default are reset to their zero value.
func (*RebrandStoreParams) WithHTTPClient ¶
func (o *RebrandStoreParams) WithHTTPClient(client *http.Client) *RebrandStoreParams
WithHTTPClient adds the HTTPClient to the rebrand store params
func (*RebrandStoreParams) WithID ¶
func (o *RebrandStoreParams) WithID(id string) *RebrandStoreParams
WithID adds the id to the rebrand store params
func (*RebrandStoreParams) WithTimeout ¶
func (o *RebrandStoreParams) WithTimeout(timeout time.Duration) *RebrandStoreParams
WithTimeout adds the timeout to the rebrand store params
func (*RebrandStoreParams) WriteToRequest ¶
func (o *RebrandStoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RebrandStoreReader ¶
type RebrandStoreReader struct {
// contains filtered or unexported fields
}
RebrandStoreReader is a Reader for the RebrandStore structure.
func (*RebrandStoreReader) ReadResponse ¶
func (o *RebrandStoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.