Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ModelAppRegRequest
- type ModelAppRegistry
- type PostAppOK
- type PostAppParams
- func (o *PostAppParams) SetContext(ctx context.Context)
- func (o *PostAppParams) SetDefaults()
- func (o *PostAppParams) SetHTTPClient(client *http.Client)
- func (o *PostAppParams) SetRegistry(registry *ModelAppRegRequest)
- func (o *PostAppParams) SetTimeout(timeout time.Duration)
- func (o *PostAppParams) WithContext(ctx context.Context) *PostAppParams
- func (o *PostAppParams) WithDefaults() *PostAppParams
- func (o *PostAppParams) WithHTTPClient(client *http.Client) *PostAppParams
- func (o *PostAppParams) WithRegistry(registry *ModelAppRegRequest) *PostAppParams
- func (o *PostAppParams) WithTimeout(timeout time.Duration) *PostAppParams
- func (o *PostAppParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAppReader
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 registry API
func (*Client) PostApp ¶
func (a *Client) PostApp(params *PostAppParams, opts ...ClientOption) (*PostAppOK, error)
PostApp registers a new app
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 { PostApp(params *PostAppParams, opts ...ClientOption) (*PostAppOK, 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 registry API client.
type ModelAppRegRequest ¶
type ModelAppRegRequest struct { // name Name string `json:"name,omitempty"` }
ModelAppRegRequest model app reg request
swagger:model model.AppRegRequest
func (*ModelAppRegRequest) ContextValidate ¶
ContextValidate validates this model app reg request based on context it is used
func (*ModelAppRegRequest) MarshalBinary ¶
func (m *ModelAppRegRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelAppRegRequest) UnmarshalBinary ¶
func (m *ModelAppRegRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModelAppRegistry ¶
type ModelAppRegistry struct { // app key AppKey string `json:"appKey,omitempty"` // app name AppName string `json:"appName,omitempty"` // reg date RegDate string `json:"regDate,omitempty"` }
ModelAppRegistry model app registry
swagger:model model.AppRegistry
func (*ModelAppRegistry) ContextValidate ¶
ContextValidate validates this model app registry based on context it is used
func (*ModelAppRegistry) MarshalBinary ¶
func (m *ModelAppRegistry) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModelAppRegistry) UnmarshalBinary ¶
func (m *ModelAppRegistry) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostAppOK ¶
type PostAppOK struct {
Payload *ModelAppRegistry
}
PostAppOK describes a response with status code 200, with default header values.
OK
func NewPostAppOK ¶
func NewPostAppOK() *PostAppOK
NewPostAppOK creates a PostAppOK with default headers values
func (*PostAppOK) GetPayload ¶
func (o *PostAppOK) GetPayload() *ModelAppRegistry
type PostAppParams ¶
type PostAppParams struct { /* Registry. registry */ Registry *ModelAppRegRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostAppParams contains all the parameters to send to the API endpoint
for the post app operation. Typically these are written to a http.Request.
func NewPostAppParams ¶
func NewPostAppParams() *PostAppParams
NewPostAppParams creates a new PostAppParams 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 NewPostAppParamsWithContext ¶
func NewPostAppParamsWithContext(ctx context.Context) *PostAppParams
NewPostAppParamsWithContext creates a new PostAppParams object with the ability to set a context for a request.
func NewPostAppParamsWithHTTPClient ¶
func NewPostAppParamsWithHTTPClient(client *http.Client) *PostAppParams
NewPostAppParamsWithHTTPClient creates a new PostAppParams object with the ability to set a custom HTTPClient for a request.
func NewPostAppParamsWithTimeout ¶
func NewPostAppParamsWithTimeout(timeout time.Duration) *PostAppParams
NewPostAppParamsWithTimeout creates a new PostAppParams object with the ability to set a timeout on a request.
func (*PostAppParams) SetContext ¶
func (o *PostAppParams) SetContext(ctx context.Context)
SetContext adds the context to the post app params
func (*PostAppParams) SetDefaults ¶
func (o *PostAppParams) SetDefaults()
SetDefaults hydrates default values in the post app params (not the query body).
All values with no default are reset to their zero value.
func (*PostAppParams) SetHTTPClient ¶
func (o *PostAppParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post app params
func (*PostAppParams) SetRegistry ¶
func (o *PostAppParams) SetRegistry(registry *ModelAppRegRequest)
SetRegistry adds the registry to the post app params
func (*PostAppParams) SetTimeout ¶
func (o *PostAppParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post app params
func (*PostAppParams) WithContext ¶
func (o *PostAppParams) WithContext(ctx context.Context) *PostAppParams
WithContext adds the context to the post app params
func (*PostAppParams) WithDefaults ¶
func (o *PostAppParams) WithDefaults() *PostAppParams
WithDefaults hydrates default values in the post app params (not the query body).
All values with no default are reset to their zero value.
func (*PostAppParams) WithHTTPClient ¶
func (o *PostAppParams) WithHTTPClient(client *http.Client) *PostAppParams
WithHTTPClient adds the HTTPClient to the post app params
func (*PostAppParams) WithRegistry ¶
func (o *PostAppParams) WithRegistry(registry *ModelAppRegRequest) *PostAppParams
WithRegistry adds the registry to the post app params
func (*PostAppParams) WithTimeout ¶
func (o *PostAppParams) WithTimeout(timeout time.Duration) *PostAppParams
WithTimeout adds the timeout to the post app params
func (*PostAppParams) WriteToRequest ¶
func (o *PostAppParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAppReader ¶
type PostAppReader struct {
// contains filtered or unexported fields
}
PostAppReader is a Reader for the PostApp structure.
func (*PostAppReader) ReadResponse ¶
func (o *PostAppReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.