Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetClaudeStatusOK
- func (o *GetClaudeStatusOK) Code() int
- func (o *GetClaudeStatusOK) Error() string
- func (o *GetClaudeStatusOK) GetPayload() *models.ClaudeStatusResponse
- func (o *GetClaudeStatusOK) IsClientError() bool
- func (o *GetClaudeStatusOK) IsCode(code int) bool
- func (o *GetClaudeStatusOK) IsRedirect() bool
- func (o *GetClaudeStatusOK) IsServerError() bool
- func (o *GetClaudeStatusOK) IsSuccess() bool
- func (o *GetClaudeStatusOK) String() string
- type GetClaudeStatusParams
- func NewGetClaudeStatusParams() *GetClaudeStatusParams
- func NewGetClaudeStatusParamsWithContext(ctx context.Context) *GetClaudeStatusParams
- func NewGetClaudeStatusParamsWithHTTPClient(client *http.Client) *GetClaudeStatusParams
- func NewGetClaudeStatusParamsWithTimeout(timeout time.Duration) *GetClaudeStatusParams
- func (o *GetClaudeStatusParams) SetContext(ctx context.Context)
- func (o *GetClaudeStatusParams) SetDefaults()
- func (o *GetClaudeStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetClaudeStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetClaudeStatusParams) WithContext(ctx context.Context) *GetClaudeStatusParams
- func (o *GetClaudeStatusParams) WithDefaults() *GetClaudeStatusParams
- func (o *GetClaudeStatusParams) WithHTTPClient(client *http.Client) *GetClaudeStatusParams
- func (o *GetClaudeStatusParams) WithTimeout(timeout time.Duration) *GetClaudeStatusParams
- func (o *GetClaudeStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClaudeStatusReader
- type GetHealthOK
- func (o *GetHealthOK) Code() int
- func (o *GetHealthOK) Error() string
- func (o *GetHealthOK) GetPayload() *models.HealthResponse
- func (o *GetHealthOK) IsClientError() bool
- func (o *GetHealthOK) IsCode(code int) bool
- func (o *GetHealthOK) IsRedirect() bool
- func (o *GetHealthOK) IsServerError() bool
- func (o *GetHealthOK) IsSuccess() bool
- func (o *GetHealthOK) String() string
- type GetHealthParams
- func (o *GetHealthParams) SetContext(ctx context.Context)
- func (o *GetHealthParams) SetDefaults()
- func (o *GetHealthParams) SetHTTPClient(client *http.Client)
- func (o *GetHealthParams) SetTimeout(timeout time.Duration)
- func (o *GetHealthParams) WithContext(ctx context.Context) *GetHealthParams
- func (o *GetHealthParams) WithDefaults() *GetHealthParams
- func (o *GetHealthParams) WithHTTPClient(client *http.Client) *GetHealthParams
- func (o *GetHealthParams) WithTimeout(timeout time.Duration) *GetHealthParams
- func (o *GetHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHealthReader
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 system API
func (*Client) GetClaudeStatus ¶
func (a *Client) GetClaudeStatus(params *GetClaudeStatusParams, opts ...ClientOption) (*GetClaudeStatusOK, error)
GetClaudeStatus claudes status
Checks if Claude credentials are configured
func (*Client) GetHealth ¶
func (a *Client) GetHealth(params *GetHealthParams, opts ...ClientOption) (*GetHealthOK, error)
GetHealth healths check
Returns the health status of the API with component checks
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
GetClaudeStatus(params *GetClaudeStatusParams, opts ...ClientOption) (*GetClaudeStatusOK, error)
GetHealth(params *GetHealthParams, opts ...ClientOption) (*GetHealthOK, 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 system API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new system API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new system API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetClaudeStatusOK ¶
type GetClaudeStatusOK struct {
Payload *models.ClaudeStatusResponse
}
GetClaudeStatusOK describes a response with status code 200, with default header values.
OK
func NewGetClaudeStatusOK ¶
func NewGetClaudeStatusOK() *GetClaudeStatusOK
NewGetClaudeStatusOK creates a GetClaudeStatusOK with default headers values
func (*GetClaudeStatusOK) Code ¶
func (o *GetClaudeStatusOK) Code() int
Code gets the status code for the get claude status o k response
func (*GetClaudeStatusOK) Error ¶
func (o *GetClaudeStatusOK) Error() string
func (*GetClaudeStatusOK) GetPayload ¶
func (o *GetClaudeStatusOK) GetPayload() *models.ClaudeStatusResponse
func (*GetClaudeStatusOK) IsClientError ¶
func (o *GetClaudeStatusOK) IsClientError() bool
IsClientError returns true when this get claude status o k response has a 4xx status code
func (*GetClaudeStatusOK) IsCode ¶
func (o *GetClaudeStatusOK) IsCode(code int) bool
IsCode returns true when this get claude status o k response a status code equal to that given
func (*GetClaudeStatusOK) IsRedirect ¶
func (o *GetClaudeStatusOK) IsRedirect() bool
IsRedirect returns true when this get claude status o k response has a 3xx status code
func (*GetClaudeStatusOK) IsServerError ¶
func (o *GetClaudeStatusOK) IsServerError() bool
IsServerError returns true when this get claude status o k response has a 5xx status code
func (*GetClaudeStatusOK) IsSuccess ¶
func (o *GetClaudeStatusOK) IsSuccess() bool
IsSuccess returns true when this get claude status o k response has a 2xx status code
func (*GetClaudeStatusOK) String ¶
func (o *GetClaudeStatusOK) String() string
type GetClaudeStatusParams ¶
type GetClaudeStatusParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetClaudeStatusParams contains all the parameters to send to the API endpoint
for the get claude status operation. Typically these are written to a http.Request.
func NewGetClaudeStatusParams ¶
func NewGetClaudeStatusParams() *GetClaudeStatusParams
NewGetClaudeStatusParams creates a new GetClaudeStatusParams 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 NewGetClaudeStatusParamsWithContext ¶
func NewGetClaudeStatusParamsWithContext(ctx context.Context) *GetClaudeStatusParams
NewGetClaudeStatusParamsWithContext creates a new GetClaudeStatusParams object with the ability to set a context for a request.
func NewGetClaudeStatusParamsWithHTTPClient ¶
func NewGetClaudeStatusParamsWithHTTPClient(client *http.Client) *GetClaudeStatusParams
NewGetClaudeStatusParamsWithHTTPClient creates a new GetClaudeStatusParams object with the ability to set a custom HTTPClient for a request.
func NewGetClaudeStatusParamsWithTimeout ¶
func NewGetClaudeStatusParamsWithTimeout(timeout time.Duration) *GetClaudeStatusParams
NewGetClaudeStatusParamsWithTimeout creates a new GetClaudeStatusParams object with the ability to set a timeout on a request.
func (*GetClaudeStatusParams) SetContext ¶
func (o *GetClaudeStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get claude status params
func (*GetClaudeStatusParams) SetDefaults ¶
func (o *GetClaudeStatusParams) SetDefaults()
SetDefaults hydrates default values in the get claude status params (not the query body).
All values with no default are reset to their zero value.
func (*GetClaudeStatusParams) SetHTTPClient ¶
func (o *GetClaudeStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get claude status params
func (*GetClaudeStatusParams) SetTimeout ¶
func (o *GetClaudeStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get claude status params
func (*GetClaudeStatusParams) WithContext ¶
func (o *GetClaudeStatusParams) WithContext(ctx context.Context) *GetClaudeStatusParams
WithContext adds the context to the get claude status params
func (*GetClaudeStatusParams) WithDefaults ¶
func (o *GetClaudeStatusParams) WithDefaults() *GetClaudeStatusParams
WithDefaults hydrates default values in the get claude status params (not the query body).
All values with no default are reset to their zero value.
func (*GetClaudeStatusParams) WithHTTPClient ¶
func (o *GetClaudeStatusParams) WithHTTPClient(client *http.Client) *GetClaudeStatusParams
WithHTTPClient adds the HTTPClient to the get claude status params
func (*GetClaudeStatusParams) WithTimeout ¶
func (o *GetClaudeStatusParams) WithTimeout(timeout time.Duration) *GetClaudeStatusParams
WithTimeout adds the timeout to the get claude status params
func (*GetClaudeStatusParams) WriteToRequest ¶
func (o *GetClaudeStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClaudeStatusReader ¶
type GetClaudeStatusReader struct {
// contains filtered or unexported fields
}
GetClaudeStatusReader is a Reader for the GetClaudeStatus structure.
func (*GetClaudeStatusReader) ReadResponse ¶
func (o *GetClaudeStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetHealthOK ¶
type GetHealthOK struct {
Payload *models.HealthResponse
}
GetHealthOK describes a response with status code 200, with default header values.
OK
func NewGetHealthOK ¶
func NewGetHealthOK() *GetHealthOK
NewGetHealthOK creates a GetHealthOK with default headers values
func (*GetHealthOK) Code ¶
func (o *GetHealthOK) Code() int
Code gets the status code for the get health o k response
func (*GetHealthOK) Error ¶
func (o *GetHealthOK) Error() string
func (*GetHealthOK) GetPayload ¶
func (o *GetHealthOK) GetPayload() *models.HealthResponse
func (*GetHealthOK) IsClientError ¶
func (o *GetHealthOK) IsClientError() bool
IsClientError returns true when this get health o k response has a 4xx status code
func (*GetHealthOK) IsCode ¶
func (o *GetHealthOK) IsCode(code int) bool
IsCode returns true when this get health o k response a status code equal to that given
func (*GetHealthOK) IsRedirect ¶
func (o *GetHealthOK) IsRedirect() bool
IsRedirect returns true when this get health o k response has a 3xx status code
func (*GetHealthOK) IsServerError ¶
func (o *GetHealthOK) IsServerError() bool
IsServerError returns true when this get health o k response has a 5xx status code
func (*GetHealthOK) IsSuccess ¶
func (o *GetHealthOK) IsSuccess() bool
IsSuccess returns true when this get health o k response has a 2xx status code
func (*GetHealthOK) String ¶
func (o *GetHealthOK) String() string
type GetHealthParams ¶
type GetHealthParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetHealthParams contains all the parameters to send to the API endpoint
for the get health operation. Typically these are written to a http.Request.
func NewGetHealthParams ¶
func NewGetHealthParams() *GetHealthParams
NewGetHealthParams creates a new GetHealthParams 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 NewGetHealthParamsWithContext ¶
func NewGetHealthParamsWithContext(ctx context.Context) *GetHealthParams
NewGetHealthParamsWithContext creates a new GetHealthParams object with the ability to set a context for a request.
func NewGetHealthParamsWithHTTPClient ¶
func NewGetHealthParamsWithHTTPClient(client *http.Client) *GetHealthParams
NewGetHealthParamsWithHTTPClient creates a new GetHealthParams object with the ability to set a custom HTTPClient for a request.
func NewGetHealthParamsWithTimeout ¶
func NewGetHealthParamsWithTimeout(timeout time.Duration) *GetHealthParams
NewGetHealthParamsWithTimeout creates a new GetHealthParams object with the ability to set a timeout on a request.
func (*GetHealthParams) SetContext ¶
func (o *GetHealthParams) SetContext(ctx context.Context)
SetContext adds the context to the get health params
func (*GetHealthParams) SetDefaults ¶
func (o *GetHealthParams) SetDefaults()
SetDefaults hydrates default values in the get health params (not the query body).
All values with no default are reset to their zero value.
func (*GetHealthParams) SetHTTPClient ¶
func (o *GetHealthParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get health params
func (*GetHealthParams) SetTimeout ¶
func (o *GetHealthParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get health params
func (*GetHealthParams) WithContext ¶
func (o *GetHealthParams) WithContext(ctx context.Context) *GetHealthParams
WithContext adds the context to the get health params
func (*GetHealthParams) WithDefaults ¶
func (o *GetHealthParams) WithDefaults() *GetHealthParams
WithDefaults hydrates default values in the get health params (not the query body).
All values with no default are reset to their zero value.
func (*GetHealthParams) WithHTTPClient ¶
func (o *GetHealthParams) WithHTTPClient(client *http.Client) *GetHealthParams
WithHTTPClient adds the HTTPClient to the get health params
func (*GetHealthParams) WithTimeout ¶
func (o *GetHealthParams) WithTimeout(timeout time.Duration) *GetHealthParams
WithTimeout adds the timeout to the get health params
func (*GetHealthParams) WriteToRequest ¶
func (o *GetHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHealthReader ¶
type GetHealthReader struct {
// contains filtered or unexported fields
}
GetHealthReader is a Reader for the GetHealth structure.
func (*GetHealthReader) ReadResponse ¶
func (o *GetHealthReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.