Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteInstance(params *DeleteInstanceParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetInstance(params *GetInstanceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetInstanceOK, error)
- func (a *Client) ListInstances(params *ListInstancesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListInstancesOK, error)
- func (a *Client) ListPoolInstances(params *ListPoolInstancesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPoolInstancesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteInstanceDefault
- func (o *DeleteInstanceDefault) Code() int
- func (o *DeleteInstanceDefault) Error() string
- func (o *DeleteInstanceDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *DeleteInstanceDefault) IsClientError() bool
- func (o *DeleteInstanceDefault) IsCode(code int) bool
- func (o *DeleteInstanceDefault) IsRedirect() bool
- func (o *DeleteInstanceDefault) IsServerError() bool
- func (o *DeleteInstanceDefault) IsSuccess() bool
- func (o *DeleteInstanceDefault) String() string
- type DeleteInstanceParams
- func NewDeleteInstanceParams() *DeleteInstanceParams
- func NewDeleteInstanceParamsWithContext(ctx context.Context) *DeleteInstanceParams
- func NewDeleteInstanceParamsWithHTTPClient(client *http.Client) *DeleteInstanceParams
- func NewDeleteInstanceParamsWithTimeout(timeout time.Duration) *DeleteInstanceParams
- func (o *DeleteInstanceParams) SetBypassGHUnauthorized(bypassGHUnauthorized *bool)
- func (o *DeleteInstanceParams) SetContext(ctx context.Context)
- func (o *DeleteInstanceParams) SetDefaults()
- func (o *DeleteInstanceParams) SetForceRemove(forceRemove *bool)
- func (o *DeleteInstanceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteInstanceParams) SetInstanceName(instanceName string)
- func (o *DeleteInstanceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteInstanceParams) WithBypassGHUnauthorized(bypassGHUnauthorized *bool) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithContext(ctx context.Context) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithDefaults() *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithForceRemove(forceRemove *bool) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithHTTPClient(client *http.Client) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithInstanceName(instanceName string) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithTimeout(timeout time.Duration) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteInstanceReader
- type GetInstanceDefault
- func (o *GetInstanceDefault) Code() int
- func (o *GetInstanceDefault) Error() string
- func (o *GetInstanceDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetInstanceDefault) IsClientError() bool
- func (o *GetInstanceDefault) IsCode(code int) bool
- func (o *GetInstanceDefault) IsRedirect() bool
- func (o *GetInstanceDefault) IsServerError() bool
- func (o *GetInstanceDefault) IsSuccess() bool
- func (o *GetInstanceDefault) String() string
- type GetInstanceOK
- func (o *GetInstanceOK) Code() int
- func (o *GetInstanceOK) Error() string
- func (o *GetInstanceOK) GetPayload() garm_params.Instance
- func (o *GetInstanceOK) IsClientError() bool
- func (o *GetInstanceOK) IsCode(code int) bool
- func (o *GetInstanceOK) IsRedirect() bool
- func (o *GetInstanceOK) IsServerError() bool
- func (o *GetInstanceOK) IsSuccess() bool
- func (o *GetInstanceOK) String() string
- type GetInstanceParams
- func (o *GetInstanceParams) SetContext(ctx context.Context)
- func (o *GetInstanceParams) SetDefaults()
- func (o *GetInstanceParams) SetHTTPClient(client *http.Client)
- func (o *GetInstanceParams) SetInstanceName(instanceName string)
- func (o *GetInstanceParams) SetTimeout(timeout time.Duration)
- func (o *GetInstanceParams) WithContext(ctx context.Context) *GetInstanceParams
- func (o *GetInstanceParams) WithDefaults() *GetInstanceParams
- func (o *GetInstanceParams) WithHTTPClient(client *http.Client) *GetInstanceParams
- func (o *GetInstanceParams) WithInstanceName(instanceName string) *GetInstanceParams
- func (o *GetInstanceParams) WithTimeout(timeout time.Duration) *GetInstanceParams
- func (o *GetInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetInstanceReader
- type ListInstancesDefault
- func (o *ListInstancesDefault) Code() int
- func (o *ListInstancesDefault) Error() string
- func (o *ListInstancesDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListInstancesDefault) IsClientError() bool
- func (o *ListInstancesDefault) IsCode(code int) bool
- func (o *ListInstancesDefault) IsRedirect() bool
- func (o *ListInstancesDefault) IsServerError() bool
- func (o *ListInstancesDefault) IsSuccess() bool
- func (o *ListInstancesDefault) String() string
- type ListInstancesOK
- func (o *ListInstancesOK) Code() int
- func (o *ListInstancesOK) Error() string
- func (o *ListInstancesOK) GetPayload() garm_params.Instances
- func (o *ListInstancesOK) IsClientError() bool
- func (o *ListInstancesOK) IsCode(code int) bool
- func (o *ListInstancesOK) IsRedirect() bool
- func (o *ListInstancesOK) IsServerError() bool
- func (o *ListInstancesOK) IsSuccess() bool
- func (o *ListInstancesOK) String() string
- type ListInstancesParams
- func (o *ListInstancesParams) SetContext(ctx context.Context)
- func (o *ListInstancesParams) SetDefaults()
- func (o *ListInstancesParams) SetHTTPClient(client *http.Client)
- func (o *ListInstancesParams) SetTimeout(timeout time.Duration)
- func (o *ListInstancesParams) WithContext(ctx context.Context) *ListInstancesParams
- func (o *ListInstancesParams) WithDefaults() *ListInstancesParams
- func (o *ListInstancesParams) WithHTTPClient(client *http.Client) *ListInstancesParams
- func (o *ListInstancesParams) WithTimeout(timeout time.Duration) *ListInstancesParams
- func (o *ListInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListInstancesReader
- type ListPoolInstancesDefault
- func (o *ListPoolInstancesDefault) Code() int
- func (o *ListPoolInstancesDefault) Error() string
- func (o *ListPoolInstancesDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListPoolInstancesDefault) IsClientError() bool
- func (o *ListPoolInstancesDefault) IsCode(code int) bool
- func (o *ListPoolInstancesDefault) IsRedirect() bool
- func (o *ListPoolInstancesDefault) IsServerError() bool
- func (o *ListPoolInstancesDefault) IsSuccess() bool
- func (o *ListPoolInstancesDefault) String() string
- type ListPoolInstancesOK
- func (o *ListPoolInstancesOK) Code() int
- func (o *ListPoolInstancesOK) Error() string
- func (o *ListPoolInstancesOK) GetPayload() garm_params.Instances
- func (o *ListPoolInstancesOK) IsClientError() bool
- func (o *ListPoolInstancesOK) IsCode(code int) bool
- func (o *ListPoolInstancesOK) IsRedirect() bool
- func (o *ListPoolInstancesOK) IsServerError() bool
- func (o *ListPoolInstancesOK) IsSuccess() bool
- func (o *ListPoolInstancesOK) String() string
- type ListPoolInstancesParams
- func NewListPoolInstancesParams() *ListPoolInstancesParams
- func NewListPoolInstancesParamsWithContext(ctx context.Context) *ListPoolInstancesParams
- func NewListPoolInstancesParamsWithHTTPClient(client *http.Client) *ListPoolInstancesParams
- func NewListPoolInstancesParamsWithTimeout(timeout time.Duration) *ListPoolInstancesParams
- func (o *ListPoolInstancesParams) SetContext(ctx context.Context)
- func (o *ListPoolInstancesParams) SetDefaults()
- func (o *ListPoolInstancesParams) SetHTTPClient(client *http.Client)
- func (o *ListPoolInstancesParams) SetPoolID(poolID string)
- func (o *ListPoolInstancesParams) SetTimeout(timeout time.Duration)
- func (o *ListPoolInstancesParams) WithContext(ctx context.Context) *ListPoolInstancesParams
- func (o *ListPoolInstancesParams) WithDefaults() *ListPoolInstancesParams
- func (o *ListPoolInstancesParams) WithHTTPClient(client *http.Client) *ListPoolInstancesParams
- func (o *ListPoolInstancesParams) WithPoolID(poolID string) *ListPoolInstancesParams
- func (o *ListPoolInstancesParams) WithTimeout(timeout time.Duration) *ListPoolInstancesParams
- func (o *ListPoolInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPoolInstancesReader
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 instances API
func (*Client) DeleteInstance ¶
func (a *Client) DeleteInstance(params *DeleteInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteInstance deletes runner instance by name
func (*Client) GetInstance ¶
func (a *Client) GetInstance(params *GetInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceOK, error)
GetInstance gets runner instance by name
func (*Client) ListInstances ¶
func (a *Client) ListInstances(params *ListInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListInstancesOK, error)
ListInstances gets all runners instances
func (*Client) ListPoolInstances ¶ added in v0.1.3
func (a *Client) ListPoolInstances(params *ListPoolInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoolInstancesOK, error)
ListPoolInstances lists runner instances in a pool
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 { DeleteInstance(params *DeleteInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error GetInstance(params *GetInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInstanceOK, error) ListInstances(params *ListInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListInstancesOK, error) ListPoolInstances(params *ListPoolInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoolInstancesOK, 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 instances API client.
func NewClientWithBasicAuth ¶ added in v0.1.5
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new instances 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 ¶ added in v0.1.5
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new instances 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 DeleteInstanceDefault ¶
type DeleteInstanceDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
DeleteInstanceDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewDeleteInstanceDefault ¶
func NewDeleteInstanceDefault(code int) *DeleteInstanceDefault
NewDeleteInstanceDefault creates a DeleteInstanceDefault with default headers values
func (*DeleteInstanceDefault) Code ¶
func (o *DeleteInstanceDefault) Code() int
Code gets the status code for the delete instance default response
func (*DeleteInstanceDefault) Error ¶
func (o *DeleteInstanceDefault) Error() string
func (*DeleteInstanceDefault) GetPayload ¶
func (o *DeleteInstanceDefault) GetPayload() apiserver_params.APIErrorResponse
func (*DeleteInstanceDefault) IsClientError ¶
func (o *DeleteInstanceDefault) IsClientError() bool
IsClientError returns true when this delete instance default response has a 4xx status code
func (*DeleteInstanceDefault) IsCode ¶
func (o *DeleteInstanceDefault) IsCode(code int) bool
IsCode returns true when this delete instance default response a status code equal to that given
func (*DeleteInstanceDefault) IsRedirect ¶
func (o *DeleteInstanceDefault) IsRedirect() bool
IsRedirect returns true when this delete instance default response has a 3xx status code
func (*DeleteInstanceDefault) IsServerError ¶
func (o *DeleteInstanceDefault) IsServerError() bool
IsServerError returns true when this delete instance default response has a 5xx status code
func (*DeleteInstanceDefault) IsSuccess ¶
func (o *DeleteInstanceDefault) IsSuccess() bool
IsSuccess returns true when this delete instance default response has a 2xx status code
func (*DeleteInstanceDefault) String ¶
func (o *DeleteInstanceDefault) String() string
type DeleteInstanceParams ¶
type DeleteInstanceParams struct { bool /* ForceRemove. If true GARM will ignore any provider error when removing the runner and will continue to remove the runner from github and the GARM database. */ ForceRemove *bool /* InstanceName. Runner instance name. */ InstanceName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }BypassGHUnauthorized *
DeleteInstanceParams contains all the parameters to send to the API endpoint
for the delete instance operation. Typically these are written to a http.Request.
func NewDeleteInstanceParams ¶
func NewDeleteInstanceParams() *DeleteInstanceParams
NewDeleteInstanceParams creates a new DeleteInstanceParams 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 NewDeleteInstanceParamsWithContext ¶
func NewDeleteInstanceParamsWithContext(ctx context.Context) *DeleteInstanceParams
NewDeleteInstanceParamsWithContext creates a new DeleteInstanceParams object with the ability to set a context for a request.
func NewDeleteInstanceParamsWithHTTPClient ¶
func NewDeleteInstanceParamsWithHTTPClient(client *http.Client) *DeleteInstanceParams
NewDeleteInstanceParamsWithHTTPClient creates a new DeleteInstanceParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteInstanceParamsWithTimeout ¶
func NewDeleteInstanceParamsWithTimeout(timeout time.Duration) *DeleteInstanceParams
NewDeleteInstanceParamsWithTimeout creates a new DeleteInstanceParams object with the ability to set a timeout on a request.
func (*DeleteInstanceParams) SetBypassGHUnauthorized ¶ added in v0.1.5
func (o *DeleteInstanceParams) SetBypassGHUnauthorized(bypassGHUnauthorized *bool)
SetBypassGHUnauthorized adds the bypassGHUnauthorized to the delete instance params
func (*DeleteInstanceParams) SetContext ¶
func (o *DeleteInstanceParams) SetContext(ctx context.Context)
SetContext adds the context to the delete instance params
func (*DeleteInstanceParams) SetDefaults ¶
func (o *DeleteInstanceParams) SetDefaults()
SetDefaults hydrates default values in the delete instance params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteInstanceParams) SetForceRemove ¶ added in v0.1.4
func (o *DeleteInstanceParams) SetForceRemove(forceRemove *bool)
SetForceRemove adds the forceRemove to the delete instance params
func (*DeleteInstanceParams) SetHTTPClient ¶
func (o *DeleteInstanceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete instance params
func (*DeleteInstanceParams) SetInstanceName ¶
func (o *DeleteInstanceParams) SetInstanceName(instanceName string)
SetInstanceName adds the instanceName to the delete instance params
func (*DeleteInstanceParams) SetTimeout ¶
func (o *DeleteInstanceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete instance params
func (*DeleteInstanceParams) WithBypassGHUnauthorized ¶ added in v0.1.5
func (o *DeleteInstanceParams) WithBypassGHUnauthorized(bypassGHUnauthorized *bool) *DeleteInstanceParams
WithBypassGHUnauthorized adds the bypassGHUnauthorized to the delete instance params
func (*DeleteInstanceParams) WithContext ¶
func (o *DeleteInstanceParams) WithContext(ctx context.Context) *DeleteInstanceParams
WithContext adds the context to the delete instance params
func (*DeleteInstanceParams) WithDefaults ¶
func (o *DeleteInstanceParams) WithDefaults() *DeleteInstanceParams
WithDefaults hydrates default values in the delete instance params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteInstanceParams) WithForceRemove ¶ added in v0.1.4
func (o *DeleteInstanceParams) WithForceRemove(forceRemove *bool) *DeleteInstanceParams
WithForceRemove adds the forceRemove to the delete instance params
func (*DeleteInstanceParams) WithHTTPClient ¶
func (o *DeleteInstanceParams) WithHTTPClient(client *http.Client) *DeleteInstanceParams
WithHTTPClient adds the HTTPClient to the delete instance params
func (*DeleteInstanceParams) WithInstanceName ¶
func (o *DeleteInstanceParams) WithInstanceName(instanceName string) *DeleteInstanceParams
WithInstanceName adds the instanceName to the delete instance params
func (*DeleteInstanceParams) WithTimeout ¶
func (o *DeleteInstanceParams) WithTimeout(timeout time.Duration) *DeleteInstanceParams
WithTimeout adds the timeout to the delete instance params
func (*DeleteInstanceParams) WriteToRequest ¶
func (o *DeleteInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteInstanceReader ¶
type DeleteInstanceReader struct {
// contains filtered or unexported fields
}
DeleteInstanceReader is a Reader for the DeleteInstance structure.
func (*DeleteInstanceReader) ReadResponse ¶
func (o *DeleteInstanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetInstanceDefault ¶
type GetInstanceDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
GetInstanceDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewGetInstanceDefault ¶
func NewGetInstanceDefault(code int) *GetInstanceDefault
NewGetInstanceDefault creates a GetInstanceDefault with default headers values
func (*GetInstanceDefault) Code ¶
func (o *GetInstanceDefault) Code() int
Code gets the status code for the get instance default response
func (*GetInstanceDefault) Error ¶
func (o *GetInstanceDefault) Error() string
func (*GetInstanceDefault) GetPayload ¶
func (o *GetInstanceDefault) GetPayload() apiserver_params.APIErrorResponse
func (*GetInstanceDefault) IsClientError ¶
func (o *GetInstanceDefault) IsClientError() bool
IsClientError returns true when this get instance default response has a 4xx status code
func (*GetInstanceDefault) IsCode ¶
func (o *GetInstanceDefault) IsCode(code int) bool
IsCode returns true when this get instance default response a status code equal to that given
func (*GetInstanceDefault) IsRedirect ¶
func (o *GetInstanceDefault) IsRedirect() bool
IsRedirect returns true when this get instance default response has a 3xx status code
func (*GetInstanceDefault) IsServerError ¶
func (o *GetInstanceDefault) IsServerError() bool
IsServerError returns true when this get instance default response has a 5xx status code
func (*GetInstanceDefault) IsSuccess ¶
func (o *GetInstanceDefault) IsSuccess() bool
IsSuccess returns true when this get instance default response has a 2xx status code
func (*GetInstanceDefault) String ¶
func (o *GetInstanceDefault) String() string
type GetInstanceOK ¶
type GetInstanceOK struct {
Payload garm_params.Instance
}
GetInstanceOK describes a response with status code 200, with default header values.
Instance
func NewGetInstanceOK ¶
func NewGetInstanceOK() *GetInstanceOK
NewGetInstanceOK creates a GetInstanceOK with default headers values
func (*GetInstanceOK) Code ¶
func (o *GetInstanceOK) Code() int
Code gets the status code for the get instance o k response
func (*GetInstanceOK) Error ¶
func (o *GetInstanceOK) Error() string
func (*GetInstanceOK) GetPayload ¶
func (o *GetInstanceOK) GetPayload() garm_params.Instance
func (*GetInstanceOK) IsClientError ¶
func (o *GetInstanceOK) IsClientError() bool
IsClientError returns true when this get instance o k response has a 4xx status code
func (*GetInstanceOK) IsCode ¶
func (o *GetInstanceOK) IsCode(code int) bool
IsCode returns true when this get instance o k response a status code equal to that given
func (*GetInstanceOK) IsRedirect ¶
func (o *GetInstanceOK) IsRedirect() bool
IsRedirect returns true when this get instance o k response has a 3xx status code
func (*GetInstanceOK) IsServerError ¶
func (o *GetInstanceOK) IsServerError() bool
IsServerError returns true when this get instance o k response has a 5xx status code
func (*GetInstanceOK) IsSuccess ¶
func (o *GetInstanceOK) IsSuccess() bool
IsSuccess returns true when this get instance o k response has a 2xx status code
func (*GetInstanceOK) String ¶
func (o *GetInstanceOK) String() string
type GetInstanceParams ¶
type GetInstanceParams struct { /* InstanceName. Runner instance name. */ InstanceName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetInstanceParams contains all the parameters to send to the API endpoint
for the get instance operation. Typically these are written to a http.Request.
func NewGetInstanceParams ¶
func NewGetInstanceParams() *GetInstanceParams
NewGetInstanceParams creates a new GetInstanceParams 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 NewGetInstanceParamsWithContext ¶
func NewGetInstanceParamsWithContext(ctx context.Context) *GetInstanceParams
NewGetInstanceParamsWithContext creates a new GetInstanceParams object with the ability to set a context for a request.
func NewGetInstanceParamsWithHTTPClient ¶
func NewGetInstanceParamsWithHTTPClient(client *http.Client) *GetInstanceParams
NewGetInstanceParamsWithHTTPClient creates a new GetInstanceParams object with the ability to set a custom HTTPClient for a request.
func NewGetInstanceParamsWithTimeout ¶
func NewGetInstanceParamsWithTimeout(timeout time.Duration) *GetInstanceParams
NewGetInstanceParamsWithTimeout creates a new GetInstanceParams object with the ability to set a timeout on a request.
func (*GetInstanceParams) SetContext ¶
func (o *GetInstanceParams) SetContext(ctx context.Context)
SetContext adds the context to the get instance params
func (*GetInstanceParams) SetDefaults ¶
func (o *GetInstanceParams) SetDefaults()
SetDefaults hydrates default values in the get instance params (not the query body).
All values with no default are reset to their zero value.
func (*GetInstanceParams) SetHTTPClient ¶
func (o *GetInstanceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get instance params
func (*GetInstanceParams) SetInstanceName ¶
func (o *GetInstanceParams) SetInstanceName(instanceName string)
SetInstanceName adds the instanceName to the get instance params
func (*GetInstanceParams) SetTimeout ¶
func (o *GetInstanceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get instance params
func (*GetInstanceParams) WithContext ¶
func (o *GetInstanceParams) WithContext(ctx context.Context) *GetInstanceParams
WithContext adds the context to the get instance params
func (*GetInstanceParams) WithDefaults ¶
func (o *GetInstanceParams) WithDefaults() *GetInstanceParams
WithDefaults hydrates default values in the get instance params (not the query body).
All values with no default are reset to their zero value.
func (*GetInstanceParams) WithHTTPClient ¶
func (o *GetInstanceParams) WithHTTPClient(client *http.Client) *GetInstanceParams
WithHTTPClient adds the HTTPClient to the get instance params
func (*GetInstanceParams) WithInstanceName ¶
func (o *GetInstanceParams) WithInstanceName(instanceName string) *GetInstanceParams
WithInstanceName adds the instanceName to the get instance params
func (*GetInstanceParams) WithTimeout ¶
func (o *GetInstanceParams) WithTimeout(timeout time.Duration) *GetInstanceParams
WithTimeout adds the timeout to the get instance params
func (*GetInstanceParams) WriteToRequest ¶
func (o *GetInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetInstanceReader ¶
type GetInstanceReader struct {
// contains filtered or unexported fields
}
GetInstanceReader is a Reader for the GetInstance structure.
func (*GetInstanceReader) ReadResponse ¶
func (o *GetInstanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListInstancesDefault ¶
type ListInstancesDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
ListInstancesDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewListInstancesDefault ¶
func NewListInstancesDefault(code int) *ListInstancesDefault
NewListInstancesDefault creates a ListInstancesDefault with default headers values
func (*ListInstancesDefault) Code ¶
func (o *ListInstancesDefault) Code() int
Code gets the status code for the list instances default response
func (*ListInstancesDefault) Error ¶
func (o *ListInstancesDefault) Error() string
func (*ListInstancesDefault) GetPayload ¶
func (o *ListInstancesDefault) GetPayload() apiserver_params.APIErrorResponse
func (*ListInstancesDefault) IsClientError ¶
func (o *ListInstancesDefault) IsClientError() bool
IsClientError returns true when this list instances default response has a 4xx status code
func (*ListInstancesDefault) IsCode ¶
func (o *ListInstancesDefault) IsCode(code int) bool
IsCode returns true when this list instances default response a status code equal to that given
func (*ListInstancesDefault) IsRedirect ¶
func (o *ListInstancesDefault) IsRedirect() bool
IsRedirect returns true when this list instances default response has a 3xx status code
func (*ListInstancesDefault) IsServerError ¶
func (o *ListInstancesDefault) IsServerError() bool
IsServerError returns true when this list instances default response has a 5xx status code
func (*ListInstancesDefault) IsSuccess ¶
func (o *ListInstancesDefault) IsSuccess() bool
IsSuccess returns true when this list instances default response has a 2xx status code
func (*ListInstancesDefault) String ¶
func (o *ListInstancesDefault) String() string
type ListInstancesOK ¶
type ListInstancesOK struct {
Payload garm_params.Instances
}
ListInstancesOK describes a response with status code 200, with default header values.
Instances
func NewListInstancesOK ¶
func NewListInstancesOK() *ListInstancesOK
NewListInstancesOK creates a ListInstancesOK with default headers values
func (*ListInstancesOK) Code ¶
func (o *ListInstancesOK) Code() int
Code gets the status code for the list instances o k response
func (*ListInstancesOK) Error ¶
func (o *ListInstancesOK) Error() string
func (*ListInstancesOK) GetPayload ¶
func (o *ListInstancesOK) GetPayload() garm_params.Instances
func (*ListInstancesOK) IsClientError ¶
func (o *ListInstancesOK) IsClientError() bool
IsClientError returns true when this list instances o k response has a 4xx status code
func (*ListInstancesOK) IsCode ¶
func (o *ListInstancesOK) IsCode(code int) bool
IsCode returns true when this list instances o k response a status code equal to that given
func (*ListInstancesOK) IsRedirect ¶
func (o *ListInstancesOK) IsRedirect() bool
IsRedirect returns true when this list instances o k response has a 3xx status code
func (*ListInstancesOK) IsServerError ¶
func (o *ListInstancesOK) IsServerError() bool
IsServerError returns true when this list instances o k response has a 5xx status code
func (*ListInstancesOK) IsSuccess ¶
func (o *ListInstancesOK) IsSuccess() bool
IsSuccess returns true when this list instances o k response has a 2xx status code
func (*ListInstancesOK) String ¶
func (o *ListInstancesOK) String() string
type ListInstancesParams ¶
type ListInstancesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListInstancesParams contains all the parameters to send to the API endpoint
for the list instances operation. Typically these are written to a http.Request.
func NewListInstancesParams ¶
func NewListInstancesParams() *ListInstancesParams
NewListInstancesParams creates a new ListInstancesParams 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 NewListInstancesParamsWithContext ¶
func NewListInstancesParamsWithContext(ctx context.Context) *ListInstancesParams
NewListInstancesParamsWithContext creates a new ListInstancesParams object with the ability to set a context for a request.
func NewListInstancesParamsWithHTTPClient ¶
func NewListInstancesParamsWithHTTPClient(client *http.Client) *ListInstancesParams
NewListInstancesParamsWithHTTPClient creates a new ListInstancesParams object with the ability to set a custom HTTPClient for a request.
func NewListInstancesParamsWithTimeout ¶
func NewListInstancesParamsWithTimeout(timeout time.Duration) *ListInstancesParams
NewListInstancesParamsWithTimeout creates a new ListInstancesParams object with the ability to set a timeout on a request.
func (*ListInstancesParams) SetContext ¶
func (o *ListInstancesParams) SetContext(ctx context.Context)
SetContext adds the context to the list instances params
func (*ListInstancesParams) SetDefaults ¶
func (o *ListInstancesParams) SetDefaults()
SetDefaults hydrates default values in the list instances params (not the query body).
All values with no default are reset to their zero value.
func (*ListInstancesParams) SetHTTPClient ¶
func (o *ListInstancesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list instances params
func (*ListInstancesParams) SetTimeout ¶
func (o *ListInstancesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list instances params
func (*ListInstancesParams) WithContext ¶
func (o *ListInstancesParams) WithContext(ctx context.Context) *ListInstancesParams
WithContext adds the context to the list instances params
func (*ListInstancesParams) WithDefaults ¶
func (o *ListInstancesParams) WithDefaults() *ListInstancesParams
WithDefaults hydrates default values in the list instances params (not the query body).
All values with no default are reset to their zero value.
func (*ListInstancesParams) WithHTTPClient ¶
func (o *ListInstancesParams) WithHTTPClient(client *http.Client) *ListInstancesParams
WithHTTPClient adds the HTTPClient to the list instances params
func (*ListInstancesParams) WithTimeout ¶
func (o *ListInstancesParams) WithTimeout(timeout time.Duration) *ListInstancesParams
WithTimeout adds the timeout to the list instances params
func (*ListInstancesParams) WriteToRequest ¶
func (o *ListInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListInstancesReader ¶
type ListInstancesReader struct {
// contains filtered or unexported fields
}
ListInstancesReader is a Reader for the ListInstances structure.
func (*ListInstancesReader) ReadResponse ¶
func (o *ListInstancesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPoolInstancesDefault ¶ added in v0.1.3
type ListPoolInstancesDefault struct { Payload apiserver_params.APIErrorResponse // contains filtered or unexported fields }
ListPoolInstancesDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewListPoolInstancesDefault ¶ added in v0.1.3
func NewListPoolInstancesDefault(code int) *ListPoolInstancesDefault
NewListPoolInstancesDefault creates a ListPoolInstancesDefault with default headers values
func (*ListPoolInstancesDefault) Code ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) Code() int
Code gets the status code for the list pool instances default response
func (*ListPoolInstancesDefault) Error ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) Error() string
func (*ListPoolInstancesDefault) GetPayload ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) GetPayload() apiserver_params.APIErrorResponse
func (*ListPoolInstancesDefault) IsClientError ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) IsClientError() bool
IsClientError returns true when this list pool instances default response has a 4xx status code
func (*ListPoolInstancesDefault) IsCode ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) IsCode(code int) bool
IsCode returns true when this list pool instances default response a status code equal to that given
func (*ListPoolInstancesDefault) IsRedirect ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) IsRedirect() bool
IsRedirect returns true when this list pool instances default response has a 3xx status code
func (*ListPoolInstancesDefault) IsServerError ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) IsServerError() bool
IsServerError returns true when this list pool instances default response has a 5xx status code
func (*ListPoolInstancesDefault) IsSuccess ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) IsSuccess() bool
IsSuccess returns true when this list pool instances default response has a 2xx status code
func (*ListPoolInstancesDefault) String ¶ added in v0.1.3
func (o *ListPoolInstancesDefault) String() string
type ListPoolInstancesOK ¶ added in v0.1.3
type ListPoolInstancesOK struct {
Payload garm_params.Instances
}
ListPoolInstancesOK describes a response with status code 200, with default header values.
Instances
func NewListPoolInstancesOK ¶ added in v0.1.3
func NewListPoolInstancesOK() *ListPoolInstancesOK
NewListPoolInstancesOK creates a ListPoolInstancesOK with default headers values
func (*ListPoolInstancesOK) Code ¶ added in v0.1.3
func (o *ListPoolInstancesOK) Code() int
Code gets the status code for the list pool instances o k response
func (*ListPoolInstancesOK) Error ¶ added in v0.1.3
func (o *ListPoolInstancesOK) Error() string
func (*ListPoolInstancesOK) GetPayload ¶ added in v0.1.3
func (o *ListPoolInstancesOK) GetPayload() garm_params.Instances
func (*ListPoolInstancesOK) IsClientError ¶ added in v0.1.3
func (o *ListPoolInstancesOK) IsClientError() bool
IsClientError returns true when this list pool instances o k response has a 4xx status code
func (*ListPoolInstancesOK) IsCode ¶ added in v0.1.3
func (o *ListPoolInstancesOK) IsCode(code int) bool
IsCode returns true when this list pool instances o k response a status code equal to that given
func (*ListPoolInstancesOK) IsRedirect ¶ added in v0.1.3
func (o *ListPoolInstancesOK) IsRedirect() bool
IsRedirect returns true when this list pool instances o k response has a 3xx status code
func (*ListPoolInstancesOK) IsServerError ¶ added in v0.1.3
func (o *ListPoolInstancesOK) IsServerError() bool
IsServerError returns true when this list pool instances o k response has a 5xx status code
func (*ListPoolInstancesOK) IsSuccess ¶ added in v0.1.3
func (o *ListPoolInstancesOK) IsSuccess() bool
IsSuccess returns true when this list pool instances o k response has a 2xx status code
func (*ListPoolInstancesOK) String ¶ added in v0.1.3
func (o *ListPoolInstancesOK) String() string
type ListPoolInstancesParams ¶ added in v0.1.3
type ListPoolInstancesParams struct { /* PoolID. Runner pool ID. */ PoolID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPoolInstancesParams contains all the parameters to send to the API endpoint
for the list pool instances operation. Typically these are written to a http.Request.
func NewListPoolInstancesParams ¶ added in v0.1.3
func NewListPoolInstancesParams() *ListPoolInstancesParams
NewListPoolInstancesParams creates a new ListPoolInstancesParams 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 NewListPoolInstancesParamsWithContext ¶ added in v0.1.3
func NewListPoolInstancesParamsWithContext(ctx context.Context) *ListPoolInstancesParams
NewListPoolInstancesParamsWithContext creates a new ListPoolInstancesParams object with the ability to set a context for a request.
func NewListPoolInstancesParamsWithHTTPClient ¶ added in v0.1.3
func NewListPoolInstancesParamsWithHTTPClient(client *http.Client) *ListPoolInstancesParams
NewListPoolInstancesParamsWithHTTPClient creates a new ListPoolInstancesParams object with the ability to set a custom HTTPClient for a request.
func NewListPoolInstancesParamsWithTimeout ¶ added in v0.1.3
func NewListPoolInstancesParamsWithTimeout(timeout time.Duration) *ListPoolInstancesParams
NewListPoolInstancesParamsWithTimeout creates a new ListPoolInstancesParams object with the ability to set a timeout on a request.
func (*ListPoolInstancesParams) SetContext ¶ added in v0.1.3
func (o *ListPoolInstancesParams) SetContext(ctx context.Context)
SetContext adds the context to the list pool instances params
func (*ListPoolInstancesParams) SetDefaults ¶ added in v0.1.3
func (o *ListPoolInstancesParams) SetDefaults()
SetDefaults hydrates default values in the list pool instances params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoolInstancesParams) SetHTTPClient ¶ added in v0.1.3
func (o *ListPoolInstancesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list pool instances params
func (*ListPoolInstancesParams) SetPoolID ¶ added in v0.1.3
func (o *ListPoolInstancesParams) SetPoolID(poolID string)
SetPoolID adds the poolId to the list pool instances params
func (*ListPoolInstancesParams) SetTimeout ¶ added in v0.1.3
func (o *ListPoolInstancesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list pool instances params
func (*ListPoolInstancesParams) WithContext ¶ added in v0.1.3
func (o *ListPoolInstancesParams) WithContext(ctx context.Context) *ListPoolInstancesParams
WithContext adds the context to the list pool instances params
func (*ListPoolInstancesParams) WithDefaults ¶ added in v0.1.3
func (o *ListPoolInstancesParams) WithDefaults() *ListPoolInstancesParams
WithDefaults hydrates default values in the list pool instances params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoolInstancesParams) WithHTTPClient ¶ added in v0.1.3
func (o *ListPoolInstancesParams) WithHTTPClient(client *http.Client) *ListPoolInstancesParams
WithHTTPClient adds the HTTPClient to the list pool instances params
func (*ListPoolInstancesParams) WithPoolID ¶ added in v0.1.3
func (o *ListPoolInstancesParams) WithPoolID(poolID string) *ListPoolInstancesParams
WithPoolID adds the poolID to the list pool instances params
func (*ListPoolInstancesParams) WithTimeout ¶ added in v0.1.3
func (o *ListPoolInstancesParams) WithTimeout(timeout time.Duration) *ListPoolInstancesParams
WithTimeout adds the timeout to the list pool instances params
func (*ListPoolInstancesParams) WriteToRequest ¶ added in v0.1.3
func (o *ListPoolInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPoolInstancesReader ¶ added in v0.1.3
type ListPoolInstancesReader struct {
// contains filtered or unexported fields
}
ListPoolInstancesReader is a Reader for the ListPoolInstances structure.
func (*ListPoolInstancesReader) ReadResponse ¶ added in v0.1.3
func (o *ListPoolInstancesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.