Documentation
¶
Index ¶
- type ApplyTestBadGateway
- func (o *ApplyTestBadGateway) Code() int
- func (o *ApplyTestBadGateway) Error() string
- func (o *ApplyTestBadGateway) GetPayload() *models.ErrorResponse
- func (o *ApplyTestBadGateway) IsClientError() bool
- func (o *ApplyTestBadGateway) IsCode(code int) bool
- func (o *ApplyTestBadGateway) IsRedirect() bool
- func (o *ApplyTestBadGateway) IsServerError() bool
- func (o *ApplyTestBadGateway) IsSuccess() bool
- func (o *ApplyTestBadGateway) String() string
- type ApplyTestBadRequest
- func (o *ApplyTestBadRequest) Code() int
- func (o *ApplyTestBadRequest) Error() string
- func (o *ApplyTestBadRequest) GetPayload() *models.ErrorResponse
- func (o *ApplyTestBadRequest) IsClientError() bool
- func (o *ApplyTestBadRequest) IsCode(code int) bool
- func (o *ApplyTestBadRequest) IsRedirect() bool
- func (o *ApplyTestBadRequest) IsServerError() bool
- func (o *ApplyTestBadRequest) IsSuccess() bool
- func (o *ApplyTestBadRequest) String() string
- type ApplyTestOK
- func (o *ApplyTestOK) Code() int
- func (o *ApplyTestOK) Error() string
- func (o *ApplyTestOK) GetPayload() *models.Test
- func (o *ApplyTestOK) IsClientError() bool
- func (o *ApplyTestOK) IsCode(code int) bool
- func (o *ApplyTestOK) IsRedirect() bool
- func (o *ApplyTestOK) IsServerError() bool
- func (o *ApplyTestOK) IsSuccess() bool
- func (o *ApplyTestOK) String() string
- type ApplyTestParams
- func (o *ApplyTestParams) SetContext(ctx context.Context)
- func (o *ApplyTestParams) SetData(data *models.TestSpec)
- func (o *ApplyTestParams) SetDefaults()
- func (o *ApplyTestParams) SetHTTPClient(client *http.Client)
- func (o *ApplyTestParams) SetOrgName(orgName string)
- func (o *ApplyTestParams) SetTestName(testName string)
- func (o *ApplyTestParams) SetTimeout(timeout time.Duration)
- func (o *ApplyTestParams) WithContext(ctx context.Context) *ApplyTestParams
- func (o *ApplyTestParams) WithData(data *models.TestSpec) *ApplyTestParams
- func (o *ApplyTestParams) WithDefaults() *ApplyTestParams
- func (o *ApplyTestParams) WithHTTPClient(client *http.Client) *ApplyTestParams
- func (o *ApplyTestParams) WithOrgName(orgName string) *ApplyTestParams
- func (o *ApplyTestParams) WithTestName(testName string) *ApplyTestParams
- func (o *ApplyTestParams) WithTimeout(timeout time.Duration) *ApplyTestParams
- func (o *ApplyTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ApplyTestReader
- type ApplyTestUnauthorized
- func (o *ApplyTestUnauthorized) Code() int
- func (o *ApplyTestUnauthorized) Error() string
- func (o *ApplyTestUnauthorized) GetPayload() *models.ErrorResponse
- func (o *ApplyTestUnauthorized) IsClientError() bool
- func (o *ApplyTestUnauthorized) IsCode(code int) bool
- func (o *ApplyTestUnauthorized) IsRedirect() bool
- func (o *ApplyTestUnauthorized) IsServerError() bool
- func (o *ApplyTestUnauthorized) IsSuccess() bool
- func (o *ApplyTestUnauthorized) String() string
- type Client
- func (a *Client) ApplyTest(params *ApplyTestParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ApplyTestOK, error)
- func (a *Client) DeleteTest(params *DeleteTestParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteTestOK, error)
- func (a *Client) GetTest(params *GetTestParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTestOK, error)
- func (a *Client) ListTests(params *ListTestsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListTestsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteTestBadGateway
- func (o *DeleteTestBadGateway) Code() int
- func (o *DeleteTestBadGateway) Error() string
- func (o *DeleteTestBadGateway) GetPayload() *models.ErrorResponse
- func (o *DeleteTestBadGateway) IsClientError() bool
- func (o *DeleteTestBadGateway) IsCode(code int) bool
- func (o *DeleteTestBadGateway) IsRedirect() bool
- func (o *DeleteTestBadGateway) IsServerError() bool
- func (o *DeleteTestBadGateway) IsSuccess() bool
- func (o *DeleteTestBadGateway) String() string
- type DeleteTestBadRequest
- func (o *DeleteTestBadRequest) Code() int
- func (o *DeleteTestBadRequest) Error() string
- func (o *DeleteTestBadRequest) GetPayload() *models.ErrorResponse
- func (o *DeleteTestBadRequest) IsClientError() bool
- func (o *DeleteTestBadRequest) IsCode(code int) bool
- func (o *DeleteTestBadRequest) IsRedirect() bool
- func (o *DeleteTestBadRequest) IsServerError() bool
- func (o *DeleteTestBadRequest) IsSuccess() bool
- func (o *DeleteTestBadRequest) String() string
- type DeleteTestOK
- func (o *DeleteTestOK) Code() int
- func (o *DeleteTestOK) Error() string
- func (o *DeleteTestOK) GetPayload() models.EmptyResponse
- func (o *DeleteTestOK) IsClientError() bool
- func (o *DeleteTestOK) IsCode(code int) bool
- func (o *DeleteTestOK) IsRedirect() bool
- func (o *DeleteTestOK) IsServerError() bool
- func (o *DeleteTestOK) IsSuccess() bool
- func (o *DeleteTestOK) String() string
- type DeleteTestParams
- func (o *DeleteTestParams) SetContext(ctx context.Context)
- func (o *DeleteTestParams) SetDefaults()
- func (o *DeleteTestParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTestParams) SetOrgName(orgName string)
- func (o *DeleteTestParams) SetTestName(testName string)
- func (o *DeleteTestParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTestParams) WithContext(ctx context.Context) *DeleteTestParams
- func (o *DeleteTestParams) WithDefaults() *DeleteTestParams
- func (o *DeleteTestParams) WithHTTPClient(client *http.Client) *DeleteTestParams
- func (o *DeleteTestParams) WithOrgName(orgName string) *DeleteTestParams
- func (o *DeleteTestParams) WithTestName(testName string) *DeleteTestParams
- func (o *DeleteTestParams) WithTimeout(timeout time.Duration) *DeleteTestParams
- func (o *DeleteTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTestReader
- type DeleteTestUnauthorized
- func (o *DeleteTestUnauthorized) Code() int
- func (o *DeleteTestUnauthorized) Error() string
- func (o *DeleteTestUnauthorized) GetPayload() *models.ErrorResponse
- func (o *DeleteTestUnauthorized) IsClientError() bool
- func (o *DeleteTestUnauthorized) IsCode(code int) bool
- func (o *DeleteTestUnauthorized) IsRedirect() bool
- func (o *DeleteTestUnauthorized) IsServerError() bool
- func (o *DeleteTestUnauthorized) IsSuccess() bool
- func (o *DeleteTestUnauthorized) String() string
- type GetTestBadGateway
- func (o *GetTestBadGateway) Code() int
- func (o *GetTestBadGateway) Error() string
- func (o *GetTestBadGateway) GetPayload() *models.ErrorResponse
- func (o *GetTestBadGateway) IsClientError() bool
- func (o *GetTestBadGateway) IsCode(code int) bool
- func (o *GetTestBadGateway) IsRedirect() bool
- func (o *GetTestBadGateway) IsServerError() bool
- func (o *GetTestBadGateway) IsSuccess() bool
- func (o *GetTestBadGateway) String() string
- type GetTestBadRequest
- func (o *GetTestBadRequest) Code() int
- func (o *GetTestBadRequest) Error() string
- func (o *GetTestBadRequest) GetPayload() *models.ErrorResponse
- func (o *GetTestBadRequest) IsClientError() bool
- func (o *GetTestBadRequest) IsCode(code int) bool
- func (o *GetTestBadRequest) IsRedirect() bool
- func (o *GetTestBadRequest) IsServerError() bool
- func (o *GetTestBadRequest) IsSuccess() bool
- func (o *GetTestBadRequest) String() string
- type GetTestOK
- func (o *GetTestOK) Code() int
- func (o *GetTestOK) Error() string
- func (o *GetTestOK) GetPayload() *models.Test
- func (o *GetTestOK) IsClientError() bool
- func (o *GetTestOK) IsCode(code int) bool
- func (o *GetTestOK) IsRedirect() bool
- func (o *GetTestOK) IsServerError() bool
- func (o *GetTestOK) IsSuccess() bool
- func (o *GetTestOK) String() string
- type GetTestParams
- func (o *GetTestParams) SetContext(ctx context.Context)
- func (o *GetTestParams) SetDefaults()
- func (o *GetTestParams) SetHTTPClient(client *http.Client)
- func (o *GetTestParams) SetOrgName(orgName string)
- func (o *GetTestParams) SetTestName(testName string)
- func (o *GetTestParams) SetTimeout(timeout time.Duration)
- func (o *GetTestParams) WithContext(ctx context.Context) *GetTestParams
- func (o *GetTestParams) WithDefaults() *GetTestParams
- func (o *GetTestParams) WithHTTPClient(client *http.Client) *GetTestParams
- func (o *GetTestParams) WithOrgName(orgName string) *GetTestParams
- func (o *GetTestParams) WithTestName(testName string) *GetTestParams
- func (o *GetTestParams) WithTimeout(timeout time.Duration) *GetTestParams
- func (o *GetTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTestReader
- type GetTestUnauthorized
- func (o *GetTestUnauthorized) Code() int
- func (o *GetTestUnauthorized) Error() string
- func (o *GetTestUnauthorized) GetPayload() *models.ErrorResponse
- func (o *GetTestUnauthorized) IsClientError() bool
- func (o *GetTestUnauthorized) IsCode(code int) bool
- func (o *GetTestUnauthorized) IsRedirect() bool
- func (o *GetTestUnauthorized) IsServerError() bool
- func (o *GetTestUnauthorized) IsSuccess() bool
- func (o *GetTestUnauthorized) String() string
- type ListTestsBadGateway
- func (o *ListTestsBadGateway) Code() int
- func (o *ListTestsBadGateway) Error() string
- func (o *ListTestsBadGateway) GetPayload() *models.ErrorResponse
- func (o *ListTestsBadGateway) IsClientError() bool
- func (o *ListTestsBadGateway) IsCode(code int) bool
- func (o *ListTestsBadGateway) IsRedirect() bool
- func (o *ListTestsBadGateway) IsServerError() bool
- func (o *ListTestsBadGateway) IsSuccess() bool
- func (o *ListTestsBadGateway) String() string
- type ListTestsBadRequest
- func (o *ListTestsBadRequest) Code() int
- func (o *ListTestsBadRequest) Error() string
- func (o *ListTestsBadRequest) GetPayload() *models.ErrorResponse
- func (o *ListTestsBadRequest) IsClientError() bool
- func (o *ListTestsBadRequest) IsCode(code int) bool
- func (o *ListTestsBadRequest) IsRedirect() bool
- func (o *ListTestsBadRequest) IsServerError() bool
- func (o *ListTestsBadRequest) IsSuccess() bool
- func (o *ListTestsBadRequest) String() string
- type ListTestsOK
- func (o *ListTestsOK) Code() int
- func (o *ListTestsOK) Error() string
- func (o *ListTestsOK) GetPayload() []*models.Test
- func (o *ListTestsOK) IsClientError() bool
- func (o *ListTestsOK) IsCode(code int) bool
- func (o *ListTestsOK) IsRedirect() bool
- func (o *ListTestsOK) IsServerError() bool
- func (o *ListTestsOK) IsSuccess() bool
- func (o *ListTestsOK) String() string
- type ListTestsParams
- func (o *ListTestsParams) SetContext(ctx context.Context)
- func (o *ListTestsParams) SetDefaults()
- func (o *ListTestsParams) SetHTTPClient(client *http.Client)
- func (o *ListTestsParams) SetOrgName(orgName string)
- func (o *ListTestsParams) SetTimeout(timeout time.Duration)
- func (o *ListTestsParams) WithContext(ctx context.Context) *ListTestsParams
- func (o *ListTestsParams) WithDefaults() *ListTestsParams
- func (o *ListTestsParams) WithHTTPClient(client *http.Client) *ListTestsParams
- func (o *ListTestsParams) WithOrgName(orgName string) *ListTestsParams
- func (o *ListTestsParams) WithTimeout(timeout time.Duration) *ListTestsParams
- func (o *ListTestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTestsReader
- type ListTestsUnauthorized
- func (o *ListTestsUnauthorized) Code() int
- func (o *ListTestsUnauthorized) Error() string
- func (o *ListTestsUnauthorized) GetPayload() *models.ErrorResponse
- func (o *ListTestsUnauthorized) IsClientError() bool
- func (o *ListTestsUnauthorized) IsCode(code int) bool
- func (o *ListTestsUnauthorized) IsRedirect() bool
- func (o *ListTestsUnauthorized) IsServerError() bool
- func (o *ListTestsUnauthorized) IsSuccess() bool
- func (o *ListTestsUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyTestBadGateway ¶
type ApplyTestBadGateway struct {
Payload *models.ErrorResponse
}
ApplyTestBadGateway describes a response with status code 502, with default header values.
Bad Gateway
func NewApplyTestBadGateway ¶
func NewApplyTestBadGateway() *ApplyTestBadGateway
NewApplyTestBadGateway creates a ApplyTestBadGateway with default headers values
func (*ApplyTestBadGateway) Code ¶
func (o *ApplyTestBadGateway) Code() int
Code gets the status code for the apply test bad gateway response
func (*ApplyTestBadGateway) Error ¶
func (o *ApplyTestBadGateway) Error() string
func (*ApplyTestBadGateway) GetPayload ¶
func (o *ApplyTestBadGateway) GetPayload() *models.ErrorResponse
func (*ApplyTestBadGateway) IsClientError ¶
func (o *ApplyTestBadGateway) IsClientError() bool
IsClientError returns true when this apply test bad gateway response has a 4xx status code
func (*ApplyTestBadGateway) IsCode ¶
func (o *ApplyTestBadGateway) IsCode(code int) bool
IsCode returns true when this apply test bad gateway response a status code equal to that given
func (*ApplyTestBadGateway) IsRedirect ¶
func (o *ApplyTestBadGateway) IsRedirect() bool
IsRedirect returns true when this apply test bad gateway response has a 3xx status code
func (*ApplyTestBadGateway) IsServerError ¶
func (o *ApplyTestBadGateway) IsServerError() bool
IsServerError returns true when this apply test bad gateway response has a 5xx status code
func (*ApplyTestBadGateway) IsSuccess ¶
func (o *ApplyTestBadGateway) IsSuccess() bool
IsSuccess returns true when this apply test bad gateway response has a 2xx status code
func (*ApplyTestBadGateway) String ¶
func (o *ApplyTestBadGateway) String() string
type ApplyTestBadRequest ¶
type ApplyTestBadRequest struct {
Payload *models.ErrorResponse
}
ApplyTestBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewApplyTestBadRequest ¶
func NewApplyTestBadRequest() *ApplyTestBadRequest
NewApplyTestBadRequest creates a ApplyTestBadRequest with default headers values
func (*ApplyTestBadRequest) Code ¶
func (o *ApplyTestBadRequest) Code() int
Code gets the status code for the apply test bad request response
func (*ApplyTestBadRequest) Error ¶
func (o *ApplyTestBadRequest) Error() string
func (*ApplyTestBadRequest) GetPayload ¶
func (o *ApplyTestBadRequest) GetPayload() *models.ErrorResponse
func (*ApplyTestBadRequest) IsClientError ¶
func (o *ApplyTestBadRequest) IsClientError() bool
IsClientError returns true when this apply test bad request response has a 4xx status code
func (*ApplyTestBadRequest) IsCode ¶
func (o *ApplyTestBadRequest) IsCode(code int) bool
IsCode returns true when this apply test bad request response a status code equal to that given
func (*ApplyTestBadRequest) IsRedirect ¶
func (o *ApplyTestBadRequest) IsRedirect() bool
IsRedirect returns true when this apply test bad request response has a 3xx status code
func (*ApplyTestBadRequest) IsServerError ¶
func (o *ApplyTestBadRequest) IsServerError() bool
IsServerError returns true when this apply test bad request response has a 5xx status code
func (*ApplyTestBadRequest) IsSuccess ¶
func (o *ApplyTestBadRequest) IsSuccess() bool
IsSuccess returns true when this apply test bad request response has a 2xx status code
func (*ApplyTestBadRequest) String ¶
func (o *ApplyTestBadRequest) String() string
type ApplyTestOK ¶
ApplyTestOK describes a response with status code 200, with default header values.
OK
func NewApplyTestOK ¶
func NewApplyTestOK() *ApplyTestOK
NewApplyTestOK creates a ApplyTestOK with default headers values
func (*ApplyTestOK) Code ¶
func (o *ApplyTestOK) Code() int
Code gets the status code for the apply test o k response
func (*ApplyTestOK) Error ¶
func (o *ApplyTestOK) Error() string
func (*ApplyTestOK) GetPayload ¶
func (o *ApplyTestOK) GetPayload() *models.Test
func (*ApplyTestOK) IsClientError ¶
func (o *ApplyTestOK) IsClientError() bool
IsClientError returns true when this apply test o k response has a 4xx status code
func (*ApplyTestOK) IsCode ¶
func (o *ApplyTestOK) IsCode(code int) bool
IsCode returns true when this apply test o k response a status code equal to that given
func (*ApplyTestOK) IsRedirect ¶
func (o *ApplyTestOK) IsRedirect() bool
IsRedirect returns true when this apply test o k response has a 3xx status code
func (*ApplyTestOK) IsServerError ¶
func (o *ApplyTestOK) IsServerError() bool
IsServerError returns true when this apply test o k response has a 5xx status code
func (*ApplyTestOK) IsSuccess ¶
func (o *ApplyTestOK) IsSuccess() bool
IsSuccess returns true when this apply test o k response has a 2xx status code
func (*ApplyTestOK) String ¶
func (o *ApplyTestOK) String() string
type ApplyTestParams ¶
type ApplyTestParams struct { /* Data. Test Spec */ Data *models.TestSpec /* OrgName. Signadot Org Name */ OrgName string /* TestName. Test Name */ TestName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ApplyTestParams contains all the parameters to send to the API endpoint
for the apply test operation. Typically these are written to a http.Request.
func NewApplyTestParams ¶
func NewApplyTestParams() *ApplyTestParams
NewApplyTestParams creates a new ApplyTestParams 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 NewApplyTestParamsWithContext ¶
func NewApplyTestParamsWithContext(ctx context.Context) *ApplyTestParams
NewApplyTestParamsWithContext creates a new ApplyTestParams object with the ability to set a context for a request.
func NewApplyTestParamsWithHTTPClient ¶
func NewApplyTestParamsWithHTTPClient(client *http.Client) *ApplyTestParams
NewApplyTestParamsWithHTTPClient creates a new ApplyTestParams object with the ability to set a custom HTTPClient for a request.
func NewApplyTestParamsWithTimeout ¶
func NewApplyTestParamsWithTimeout(timeout time.Duration) *ApplyTestParams
NewApplyTestParamsWithTimeout creates a new ApplyTestParams object with the ability to set a timeout on a request.
func (*ApplyTestParams) SetContext ¶
func (o *ApplyTestParams) SetContext(ctx context.Context)
SetContext adds the context to the apply test params
func (*ApplyTestParams) SetData ¶
func (o *ApplyTestParams) SetData(data *models.TestSpec)
SetData adds the data to the apply test params
func (*ApplyTestParams) SetDefaults ¶
func (o *ApplyTestParams) SetDefaults()
SetDefaults hydrates default values in the apply test params (not the query body).
All values with no default are reset to their zero value.
func (*ApplyTestParams) SetHTTPClient ¶
func (o *ApplyTestParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the apply test params
func (*ApplyTestParams) SetOrgName ¶
func (o *ApplyTestParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the apply test params
func (*ApplyTestParams) SetTestName ¶
func (o *ApplyTestParams) SetTestName(testName string)
SetTestName adds the testName to the apply test params
func (*ApplyTestParams) SetTimeout ¶
func (o *ApplyTestParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the apply test params
func (*ApplyTestParams) WithContext ¶
func (o *ApplyTestParams) WithContext(ctx context.Context) *ApplyTestParams
WithContext adds the context to the apply test params
func (*ApplyTestParams) WithData ¶
func (o *ApplyTestParams) WithData(data *models.TestSpec) *ApplyTestParams
WithData adds the data to the apply test params
func (*ApplyTestParams) WithDefaults ¶
func (o *ApplyTestParams) WithDefaults() *ApplyTestParams
WithDefaults hydrates default values in the apply test params (not the query body).
All values with no default are reset to their zero value.
func (*ApplyTestParams) WithHTTPClient ¶
func (o *ApplyTestParams) WithHTTPClient(client *http.Client) *ApplyTestParams
WithHTTPClient adds the HTTPClient to the apply test params
func (*ApplyTestParams) WithOrgName ¶
func (o *ApplyTestParams) WithOrgName(orgName string) *ApplyTestParams
WithOrgName adds the orgName to the apply test params
func (*ApplyTestParams) WithTestName ¶
func (o *ApplyTestParams) WithTestName(testName string) *ApplyTestParams
WithTestName adds the testName to the apply test params
func (*ApplyTestParams) WithTimeout ¶
func (o *ApplyTestParams) WithTimeout(timeout time.Duration) *ApplyTestParams
WithTimeout adds the timeout to the apply test params
func (*ApplyTestParams) WriteToRequest ¶
func (o *ApplyTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ApplyTestReader ¶
type ApplyTestReader struct {
// contains filtered or unexported fields
}
ApplyTestReader is a Reader for the ApplyTest structure.
func (*ApplyTestReader) ReadResponse ¶
func (o *ApplyTestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ApplyTestUnauthorized ¶
type ApplyTestUnauthorized struct {
}ApplyTestUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewApplyTestUnauthorized ¶
func NewApplyTestUnauthorized() *ApplyTestUnauthorized
NewApplyTestUnauthorized creates a ApplyTestUnauthorized with default headers values
func (*ApplyTestUnauthorized) Code ¶
func (o *ApplyTestUnauthorized) Code() int
Code gets the status code for the apply test unauthorized response
func (*ApplyTestUnauthorized) Error ¶
func (o *ApplyTestUnauthorized) Error() string
func (*ApplyTestUnauthorized) GetPayload ¶
func (o *ApplyTestUnauthorized) GetPayload() *models.ErrorResponse
func (*ApplyTestUnauthorized) IsClientError ¶
func (o *ApplyTestUnauthorized) IsClientError() bool
IsClientError returns true when this apply test unauthorized response has a 4xx status code
func (*ApplyTestUnauthorized) IsCode ¶
func (o *ApplyTestUnauthorized) IsCode(code int) bool
IsCode returns true when this apply test unauthorized response a status code equal to that given
func (*ApplyTestUnauthorized) IsRedirect ¶
func (o *ApplyTestUnauthorized) IsRedirect() bool
IsRedirect returns true when this apply test unauthorized response has a 3xx status code
func (*ApplyTestUnauthorized) IsServerError ¶
func (o *ApplyTestUnauthorized) IsServerError() bool
IsServerError returns true when this apply test unauthorized response has a 5xx status code
func (*ApplyTestUnauthorized) IsSuccess ¶
func (o *ApplyTestUnauthorized) IsSuccess() bool
IsSuccess returns true when this apply test unauthorized response has a 2xx status code
func (*ApplyTestUnauthorized) String ¶
func (o *ApplyTestUnauthorized) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for tests API
func (*Client) ApplyTest ¶
func (a *Client) ApplyTest(params *ApplyTestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplyTestOK, error)
ApplyTest creates or update a test
Creates or updates a test with the provided parameters.
func (*Client) DeleteTest ¶
func (a *Client) DeleteTest(params *DeleteTestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTestOK, error)
DeleteTest deletes a test
Delete a given test.
func (*Client) GetTest ¶
func (a *Client) GetTest(params *GetTestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTestOK, error)
GetTest gets a test
Fetch the details about a given test.
func (*Client) ListTests ¶
func (a *Client) ListTests(params *ListTestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTestsOK, error)
ListTests lists tests
List Tests
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 { ApplyTest(params *ApplyTestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplyTestOK, error) DeleteTest(params *DeleteTestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTestOK, error) GetTest(params *GetTestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTestOK, error) ListTests(params *ListTestsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTestsOK, 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 tests API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new tests 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 tests 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 DeleteTestBadGateway ¶
type DeleteTestBadGateway struct {
Payload *models.ErrorResponse
}
DeleteTestBadGateway describes a response with status code 502, with default header values.
Bad Gateway
func NewDeleteTestBadGateway ¶
func NewDeleteTestBadGateway() *DeleteTestBadGateway
NewDeleteTestBadGateway creates a DeleteTestBadGateway with default headers values
func (*DeleteTestBadGateway) Code ¶
func (o *DeleteTestBadGateway) Code() int
Code gets the status code for the delete test bad gateway response
func (*DeleteTestBadGateway) Error ¶
func (o *DeleteTestBadGateway) Error() string
func (*DeleteTestBadGateway) GetPayload ¶
func (o *DeleteTestBadGateway) GetPayload() *models.ErrorResponse
func (*DeleteTestBadGateway) IsClientError ¶
func (o *DeleteTestBadGateway) IsClientError() bool
IsClientError returns true when this delete test bad gateway response has a 4xx status code
func (*DeleteTestBadGateway) IsCode ¶
func (o *DeleteTestBadGateway) IsCode(code int) bool
IsCode returns true when this delete test bad gateway response a status code equal to that given
func (*DeleteTestBadGateway) IsRedirect ¶
func (o *DeleteTestBadGateway) IsRedirect() bool
IsRedirect returns true when this delete test bad gateway response has a 3xx status code
func (*DeleteTestBadGateway) IsServerError ¶
func (o *DeleteTestBadGateway) IsServerError() bool
IsServerError returns true when this delete test bad gateway response has a 5xx status code
func (*DeleteTestBadGateway) IsSuccess ¶
func (o *DeleteTestBadGateway) IsSuccess() bool
IsSuccess returns true when this delete test bad gateway response has a 2xx status code
func (*DeleteTestBadGateway) String ¶
func (o *DeleteTestBadGateway) String() string
type DeleteTestBadRequest ¶
type DeleteTestBadRequest struct {
Payload *models.ErrorResponse
}
DeleteTestBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteTestBadRequest ¶
func NewDeleteTestBadRequest() *DeleteTestBadRequest
NewDeleteTestBadRequest creates a DeleteTestBadRequest with default headers values
func (*DeleteTestBadRequest) Code ¶
func (o *DeleteTestBadRequest) Code() int
Code gets the status code for the delete test bad request response
func (*DeleteTestBadRequest) Error ¶
func (o *DeleteTestBadRequest) Error() string
func (*DeleteTestBadRequest) GetPayload ¶
func (o *DeleteTestBadRequest) GetPayload() *models.ErrorResponse
func (*DeleteTestBadRequest) IsClientError ¶
func (o *DeleteTestBadRequest) IsClientError() bool
IsClientError returns true when this delete test bad request response has a 4xx status code
func (*DeleteTestBadRequest) IsCode ¶
func (o *DeleteTestBadRequest) IsCode(code int) bool
IsCode returns true when this delete test bad request response a status code equal to that given
func (*DeleteTestBadRequest) IsRedirect ¶
func (o *DeleteTestBadRequest) IsRedirect() bool
IsRedirect returns true when this delete test bad request response has a 3xx status code
func (*DeleteTestBadRequest) IsServerError ¶
func (o *DeleteTestBadRequest) IsServerError() bool
IsServerError returns true when this delete test bad request response has a 5xx status code
func (*DeleteTestBadRequest) IsSuccess ¶
func (o *DeleteTestBadRequest) IsSuccess() bool
IsSuccess returns true when this delete test bad request response has a 2xx status code
func (*DeleteTestBadRequest) String ¶
func (o *DeleteTestBadRequest) String() string
type DeleteTestOK ¶
type DeleteTestOK struct {
Payload models.EmptyResponse
}
DeleteTestOK describes a response with status code 200, with default header values.
OK
func NewDeleteTestOK ¶
func NewDeleteTestOK() *DeleteTestOK
NewDeleteTestOK creates a DeleteTestOK with default headers values
func (*DeleteTestOK) Code ¶
func (o *DeleteTestOK) Code() int
Code gets the status code for the delete test o k response
func (*DeleteTestOK) Error ¶
func (o *DeleteTestOK) Error() string
func (*DeleteTestOK) GetPayload ¶
func (o *DeleteTestOK) GetPayload() models.EmptyResponse
func (*DeleteTestOK) IsClientError ¶
func (o *DeleteTestOK) IsClientError() bool
IsClientError returns true when this delete test o k response has a 4xx status code
func (*DeleteTestOK) IsCode ¶
func (o *DeleteTestOK) IsCode(code int) bool
IsCode returns true when this delete test o k response a status code equal to that given
func (*DeleteTestOK) IsRedirect ¶
func (o *DeleteTestOK) IsRedirect() bool
IsRedirect returns true when this delete test o k response has a 3xx status code
func (*DeleteTestOK) IsServerError ¶
func (o *DeleteTestOK) IsServerError() bool
IsServerError returns true when this delete test o k response has a 5xx status code
func (*DeleteTestOK) IsSuccess ¶
func (o *DeleteTestOK) IsSuccess() bool
IsSuccess returns true when this delete test o k response has a 2xx status code
func (*DeleteTestOK) String ¶
func (o *DeleteTestOK) String() string
type DeleteTestParams ¶
type DeleteTestParams struct { /* OrgName. Signadot Org Name */ OrgName string /* TestName. Test Name */ TestName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteTestParams contains all the parameters to send to the API endpoint
for the delete test operation. Typically these are written to a http.Request.
func NewDeleteTestParams ¶
func NewDeleteTestParams() *DeleteTestParams
NewDeleteTestParams creates a new DeleteTestParams 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 NewDeleteTestParamsWithContext ¶
func NewDeleteTestParamsWithContext(ctx context.Context) *DeleteTestParams
NewDeleteTestParamsWithContext creates a new DeleteTestParams object with the ability to set a context for a request.
func NewDeleteTestParamsWithHTTPClient ¶
func NewDeleteTestParamsWithHTTPClient(client *http.Client) *DeleteTestParams
NewDeleteTestParamsWithHTTPClient creates a new DeleteTestParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteTestParamsWithTimeout ¶
func NewDeleteTestParamsWithTimeout(timeout time.Duration) *DeleteTestParams
NewDeleteTestParamsWithTimeout creates a new DeleteTestParams object with the ability to set a timeout on a request.
func (*DeleteTestParams) SetContext ¶
func (o *DeleteTestParams) SetContext(ctx context.Context)
SetContext adds the context to the delete test params
func (*DeleteTestParams) SetDefaults ¶
func (o *DeleteTestParams) SetDefaults()
SetDefaults hydrates default values in the delete test params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTestParams) SetHTTPClient ¶
func (o *DeleteTestParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete test params
func (*DeleteTestParams) SetOrgName ¶
func (o *DeleteTestParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the delete test params
func (*DeleteTestParams) SetTestName ¶
func (o *DeleteTestParams) SetTestName(testName string)
SetTestName adds the testName to the delete test params
func (*DeleteTestParams) SetTimeout ¶
func (o *DeleteTestParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete test params
func (*DeleteTestParams) WithContext ¶
func (o *DeleteTestParams) WithContext(ctx context.Context) *DeleteTestParams
WithContext adds the context to the delete test params
func (*DeleteTestParams) WithDefaults ¶
func (o *DeleteTestParams) WithDefaults() *DeleteTestParams
WithDefaults hydrates default values in the delete test params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTestParams) WithHTTPClient ¶
func (o *DeleteTestParams) WithHTTPClient(client *http.Client) *DeleteTestParams
WithHTTPClient adds the HTTPClient to the delete test params
func (*DeleteTestParams) WithOrgName ¶
func (o *DeleteTestParams) WithOrgName(orgName string) *DeleteTestParams
WithOrgName adds the orgName to the delete test params
func (*DeleteTestParams) WithTestName ¶
func (o *DeleteTestParams) WithTestName(testName string) *DeleteTestParams
WithTestName adds the testName to the delete test params
func (*DeleteTestParams) WithTimeout ¶
func (o *DeleteTestParams) WithTimeout(timeout time.Duration) *DeleteTestParams
WithTimeout adds the timeout to the delete test params
func (*DeleteTestParams) WriteToRequest ¶
func (o *DeleteTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteTestReader ¶
type DeleteTestReader struct {
// contains filtered or unexported fields
}
DeleteTestReader is a Reader for the DeleteTest structure.
func (*DeleteTestReader) ReadResponse ¶
func (o *DeleteTestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteTestUnauthorized ¶
type DeleteTestUnauthorized struct {
}DeleteTestUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteTestUnauthorized ¶
func NewDeleteTestUnauthorized() *DeleteTestUnauthorized
NewDeleteTestUnauthorized creates a DeleteTestUnauthorized with default headers values
func (*DeleteTestUnauthorized) Code ¶
func (o *DeleteTestUnauthorized) Code() int
Code gets the status code for the delete test unauthorized response
func (*DeleteTestUnauthorized) Error ¶
func (o *DeleteTestUnauthorized) Error() string
func (*DeleteTestUnauthorized) GetPayload ¶
func (o *DeleteTestUnauthorized) GetPayload() *models.ErrorResponse
func (*DeleteTestUnauthorized) IsClientError ¶
func (o *DeleteTestUnauthorized) IsClientError() bool
IsClientError returns true when this delete test unauthorized response has a 4xx status code
func (*DeleteTestUnauthorized) IsCode ¶
func (o *DeleteTestUnauthorized) IsCode(code int) bool
IsCode returns true when this delete test unauthorized response a status code equal to that given
func (*DeleteTestUnauthorized) IsRedirect ¶
func (o *DeleteTestUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete test unauthorized response has a 3xx status code
func (*DeleteTestUnauthorized) IsServerError ¶
func (o *DeleteTestUnauthorized) IsServerError() bool
IsServerError returns true when this delete test unauthorized response has a 5xx status code
func (*DeleteTestUnauthorized) IsSuccess ¶
func (o *DeleteTestUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete test unauthorized response has a 2xx status code
func (*DeleteTestUnauthorized) String ¶
func (o *DeleteTestUnauthorized) String() string
type GetTestBadGateway ¶
type GetTestBadGateway struct {
Payload *models.ErrorResponse
}
GetTestBadGateway describes a response with status code 502, with default header values.
Bad Gateway
func NewGetTestBadGateway ¶
func NewGetTestBadGateway() *GetTestBadGateway
NewGetTestBadGateway creates a GetTestBadGateway with default headers values
func (*GetTestBadGateway) Code ¶
func (o *GetTestBadGateway) Code() int
Code gets the status code for the get test bad gateway response
func (*GetTestBadGateway) Error ¶
func (o *GetTestBadGateway) Error() string
func (*GetTestBadGateway) GetPayload ¶
func (o *GetTestBadGateway) GetPayload() *models.ErrorResponse
func (*GetTestBadGateway) IsClientError ¶
func (o *GetTestBadGateway) IsClientError() bool
IsClientError returns true when this get test bad gateway response has a 4xx status code
func (*GetTestBadGateway) IsCode ¶
func (o *GetTestBadGateway) IsCode(code int) bool
IsCode returns true when this get test bad gateway response a status code equal to that given
func (*GetTestBadGateway) IsRedirect ¶
func (o *GetTestBadGateway) IsRedirect() bool
IsRedirect returns true when this get test bad gateway response has a 3xx status code
func (*GetTestBadGateway) IsServerError ¶
func (o *GetTestBadGateway) IsServerError() bool
IsServerError returns true when this get test bad gateway response has a 5xx status code
func (*GetTestBadGateway) IsSuccess ¶
func (o *GetTestBadGateway) IsSuccess() bool
IsSuccess returns true when this get test bad gateway response has a 2xx status code
func (*GetTestBadGateway) String ¶
func (o *GetTestBadGateway) String() string
type GetTestBadRequest ¶
type GetTestBadRequest struct {
Payload *models.ErrorResponse
}
GetTestBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetTestBadRequest ¶
func NewGetTestBadRequest() *GetTestBadRequest
NewGetTestBadRequest creates a GetTestBadRequest with default headers values
func (*GetTestBadRequest) Code ¶
func (o *GetTestBadRequest) Code() int
Code gets the status code for the get test bad request response
func (*GetTestBadRequest) Error ¶
func (o *GetTestBadRequest) Error() string
func (*GetTestBadRequest) GetPayload ¶
func (o *GetTestBadRequest) GetPayload() *models.ErrorResponse
func (*GetTestBadRequest) IsClientError ¶
func (o *GetTestBadRequest) IsClientError() bool
IsClientError returns true when this get test bad request response has a 4xx status code
func (*GetTestBadRequest) IsCode ¶
func (o *GetTestBadRequest) IsCode(code int) bool
IsCode returns true when this get test bad request response a status code equal to that given
func (*GetTestBadRequest) IsRedirect ¶
func (o *GetTestBadRequest) IsRedirect() bool
IsRedirect returns true when this get test bad request response has a 3xx status code
func (*GetTestBadRequest) IsServerError ¶
func (o *GetTestBadRequest) IsServerError() bool
IsServerError returns true when this get test bad request response has a 5xx status code
func (*GetTestBadRequest) IsSuccess ¶
func (o *GetTestBadRequest) IsSuccess() bool
IsSuccess returns true when this get test bad request response has a 2xx status code
func (*GetTestBadRequest) String ¶
func (o *GetTestBadRequest) String() string
type GetTestOK ¶
GetTestOK describes a response with status code 200, with default header values.
OK
func NewGetTestOK ¶
func NewGetTestOK() *GetTestOK
NewGetTestOK creates a GetTestOK with default headers values
func (*GetTestOK) GetPayload ¶
func (*GetTestOK) IsClientError ¶
IsClientError returns true when this get test o k response has a 4xx status code
func (*GetTestOK) IsCode ¶
IsCode returns true when this get test o k response a status code equal to that given
func (*GetTestOK) IsRedirect ¶
IsRedirect returns true when this get test o k response has a 3xx status code
func (*GetTestOK) IsServerError ¶
IsServerError returns true when this get test o k response has a 5xx status code
type GetTestParams ¶
type GetTestParams struct { /* OrgName. Signadot Org Name */ OrgName string /* TestName. Test Name */ TestName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTestParams contains all the parameters to send to the API endpoint
for the get test operation. Typically these are written to a http.Request.
func NewGetTestParams ¶
func NewGetTestParams() *GetTestParams
NewGetTestParams creates a new GetTestParams 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 NewGetTestParamsWithContext ¶
func NewGetTestParamsWithContext(ctx context.Context) *GetTestParams
NewGetTestParamsWithContext creates a new GetTestParams object with the ability to set a context for a request.
func NewGetTestParamsWithHTTPClient ¶
func NewGetTestParamsWithHTTPClient(client *http.Client) *GetTestParams
NewGetTestParamsWithHTTPClient creates a new GetTestParams object with the ability to set a custom HTTPClient for a request.
func NewGetTestParamsWithTimeout ¶
func NewGetTestParamsWithTimeout(timeout time.Duration) *GetTestParams
NewGetTestParamsWithTimeout creates a new GetTestParams object with the ability to set a timeout on a request.
func (*GetTestParams) SetContext ¶
func (o *GetTestParams) SetContext(ctx context.Context)
SetContext adds the context to the get test params
func (*GetTestParams) SetDefaults ¶
func (o *GetTestParams) SetDefaults()
SetDefaults hydrates default values in the get test params (not the query body).
All values with no default are reset to their zero value.
func (*GetTestParams) SetHTTPClient ¶
func (o *GetTestParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get test params
func (*GetTestParams) SetOrgName ¶
func (o *GetTestParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the get test params
func (*GetTestParams) SetTestName ¶
func (o *GetTestParams) SetTestName(testName string)
SetTestName adds the testName to the get test params
func (*GetTestParams) SetTimeout ¶
func (o *GetTestParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get test params
func (*GetTestParams) WithContext ¶
func (o *GetTestParams) WithContext(ctx context.Context) *GetTestParams
WithContext adds the context to the get test params
func (*GetTestParams) WithDefaults ¶
func (o *GetTestParams) WithDefaults() *GetTestParams
WithDefaults hydrates default values in the get test params (not the query body).
All values with no default are reset to their zero value.
func (*GetTestParams) WithHTTPClient ¶
func (o *GetTestParams) WithHTTPClient(client *http.Client) *GetTestParams
WithHTTPClient adds the HTTPClient to the get test params
func (*GetTestParams) WithOrgName ¶
func (o *GetTestParams) WithOrgName(orgName string) *GetTestParams
WithOrgName adds the orgName to the get test params
func (*GetTestParams) WithTestName ¶
func (o *GetTestParams) WithTestName(testName string) *GetTestParams
WithTestName adds the testName to the get test params
func (*GetTestParams) WithTimeout ¶
func (o *GetTestParams) WithTimeout(timeout time.Duration) *GetTestParams
WithTimeout adds the timeout to the get test params
func (*GetTestParams) WriteToRequest ¶
func (o *GetTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTestReader ¶
type GetTestReader struct {
// contains filtered or unexported fields
}
GetTestReader is a Reader for the GetTest structure.
func (*GetTestReader) ReadResponse ¶
func (o *GetTestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTestUnauthorized ¶
type GetTestUnauthorized struct {
}GetTestUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetTestUnauthorized ¶
func NewGetTestUnauthorized() *GetTestUnauthorized
NewGetTestUnauthorized creates a GetTestUnauthorized with default headers values
func (*GetTestUnauthorized) Code ¶
func (o *GetTestUnauthorized) Code() int
Code gets the status code for the get test unauthorized response
func (*GetTestUnauthorized) Error ¶
func (o *GetTestUnauthorized) Error() string
func (*GetTestUnauthorized) GetPayload ¶
func (o *GetTestUnauthorized) GetPayload() *models.ErrorResponse
func (*GetTestUnauthorized) IsClientError ¶
func (o *GetTestUnauthorized) IsClientError() bool
IsClientError returns true when this get test unauthorized response has a 4xx status code
func (*GetTestUnauthorized) IsCode ¶
func (o *GetTestUnauthorized) IsCode(code int) bool
IsCode returns true when this get test unauthorized response a status code equal to that given
func (*GetTestUnauthorized) IsRedirect ¶
func (o *GetTestUnauthorized) IsRedirect() bool
IsRedirect returns true when this get test unauthorized response has a 3xx status code
func (*GetTestUnauthorized) IsServerError ¶
func (o *GetTestUnauthorized) IsServerError() bool
IsServerError returns true when this get test unauthorized response has a 5xx status code
func (*GetTestUnauthorized) IsSuccess ¶
func (o *GetTestUnauthorized) IsSuccess() bool
IsSuccess returns true when this get test unauthorized response has a 2xx status code
func (*GetTestUnauthorized) String ¶
func (o *GetTestUnauthorized) String() string
type ListTestsBadGateway ¶
type ListTestsBadGateway struct {
Payload *models.ErrorResponse
}
ListTestsBadGateway describes a response with status code 502, with default header values.
Bad Gateway
func NewListTestsBadGateway ¶
func NewListTestsBadGateway() *ListTestsBadGateway
NewListTestsBadGateway creates a ListTestsBadGateway with default headers values
func (*ListTestsBadGateway) Code ¶
func (o *ListTestsBadGateway) Code() int
Code gets the status code for the list tests bad gateway response
func (*ListTestsBadGateway) Error ¶
func (o *ListTestsBadGateway) Error() string
func (*ListTestsBadGateway) GetPayload ¶
func (o *ListTestsBadGateway) GetPayload() *models.ErrorResponse
func (*ListTestsBadGateway) IsClientError ¶
func (o *ListTestsBadGateway) IsClientError() bool
IsClientError returns true when this list tests bad gateway response has a 4xx status code
func (*ListTestsBadGateway) IsCode ¶
func (o *ListTestsBadGateway) IsCode(code int) bool
IsCode returns true when this list tests bad gateway response a status code equal to that given
func (*ListTestsBadGateway) IsRedirect ¶
func (o *ListTestsBadGateway) IsRedirect() bool
IsRedirect returns true when this list tests bad gateway response has a 3xx status code
func (*ListTestsBadGateway) IsServerError ¶
func (o *ListTestsBadGateway) IsServerError() bool
IsServerError returns true when this list tests bad gateway response has a 5xx status code
func (*ListTestsBadGateway) IsSuccess ¶
func (o *ListTestsBadGateway) IsSuccess() bool
IsSuccess returns true when this list tests bad gateway response has a 2xx status code
func (*ListTestsBadGateway) String ¶
func (o *ListTestsBadGateway) String() string
type ListTestsBadRequest ¶
type ListTestsBadRequest struct {
Payload *models.ErrorResponse
}
ListTestsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewListTestsBadRequest ¶
func NewListTestsBadRequest() *ListTestsBadRequest
NewListTestsBadRequest creates a ListTestsBadRequest with default headers values
func (*ListTestsBadRequest) Code ¶
func (o *ListTestsBadRequest) Code() int
Code gets the status code for the list tests bad request response
func (*ListTestsBadRequest) Error ¶
func (o *ListTestsBadRequest) Error() string
func (*ListTestsBadRequest) GetPayload ¶
func (o *ListTestsBadRequest) GetPayload() *models.ErrorResponse
func (*ListTestsBadRequest) IsClientError ¶
func (o *ListTestsBadRequest) IsClientError() bool
IsClientError returns true when this list tests bad request response has a 4xx status code
func (*ListTestsBadRequest) IsCode ¶
func (o *ListTestsBadRequest) IsCode(code int) bool
IsCode returns true when this list tests bad request response a status code equal to that given
func (*ListTestsBadRequest) IsRedirect ¶
func (o *ListTestsBadRequest) IsRedirect() bool
IsRedirect returns true when this list tests bad request response has a 3xx status code
func (*ListTestsBadRequest) IsServerError ¶
func (o *ListTestsBadRequest) IsServerError() bool
IsServerError returns true when this list tests bad request response has a 5xx status code
func (*ListTestsBadRequest) IsSuccess ¶
func (o *ListTestsBadRequest) IsSuccess() bool
IsSuccess returns true when this list tests bad request response has a 2xx status code
func (*ListTestsBadRequest) String ¶
func (o *ListTestsBadRequest) String() string
type ListTestsOK ¶
ListTestsOK describes a response with status code 200, with default header values.
OK
func NewListTestsOK ¶
func NewListTestsOK() *ListTestsOK
NewListTestsOK creates a ListTestsOK with default headers values
func (*ListTestsOK) Code ¶
func (o *ListTestsOK) Code() int
Code gets the status code for the list tests o k response
func (*ListTestsOK) Error ¶
func (o *ListTestsOK) Error() string
func (*ListTestsOK) GetPayload ¶
func (o *ListTestsOK) GetPayload() []*models.Test
func (*ListTestsOK) IsClientError ¶
func (o *ListTestsOK) IsClientError() bool
IsClientError returns true when this list tests o k response has a 4xx status code
func (*ListTestsOK) IsCode ¶
func (o *ListTestsOK) IsCode(code int) bool
IsCode returns true when this list tests o k response a status code equal to that given
func (*ListTestsOK) IsRedirect ¶
func (o *ListTestsOK) IsRedirect() bool
IsRedirect returns true when this list tests o k response has a 3xx status code
func (*ListTestsOK) IsServerError ¶
func (o *ListTestsOK) IsServerError() bool
IsServerError returns true when this list tests o k response has a 5xx status code
func (*ListTestsOK) IsSuccess ¶
func (o *ListTestsOK) IsSuccess() bool
IsSuccess returns true when this list tests o k response has a 2xx status code
func (*ListTestsOK) String ¶
func (o *ListTestsOK) String() string
type ListTestsParams ¶
type ListTestsParams struct { /* OrgName. Signadot Org Name */ OrgName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTestsParams contains all the parameters to send to the API endpoint
for the list tests operation. Typically these are written to a http.Request.
func NewListTestsParams ¶
func NewListTestsParams() *ListTestsParams
NewListTestsParams creates a new ListTestsParams 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 NewListTestsParamsWithContext ¶
func NewListTestsParamsWithContext(ctx context.Context) *ListTestsParams
NewListTestsParamsWithContext creates a new ListTestsParams object with the ability to set a context for a request.
func NewListTestsParamsWithHTTPClient ¶
func NewListTestsParamsWithHTTPClient(client *http.Client) *ListTestsParams
NewListTestsParamsWithHTTPClient creates a new ListTestsParams object with the ability to set a custom HTTPClient for a request.
func NewListTestsParamsWithTimeout ¶
func NewListTestsParamsWithTimeout(timeout time.Duration) *ListTestsParams
NewListTestsParamsWithTimeout creates a new ListTestsParams object with the ability to set a timeout on a request.
func (*ListTestsParams) SetContext ¶
func (o *ListTestsParams) SetContext(ctx context.Context)
SetContext adds the context to the list tests params
func (*ListTestsParams) SetDefaults ¶
func (o *ListTestsParams) SetDefaults()
SetDefaults hydrates default values in the list tests params (not the query body).
All values with no default are reset to their zero value.
func (*ListTestsParams) SetHTTPClient ¶
func (o *ListTestsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list tests params
func (*ListTestsParams) SetOrgName ¶
func (o *ListTestsParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the list tests params
func (*ListTestsParams) SetTimeout ¶
func (o *ListTestsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list tests params
func (*ListTestsParams) WithContext ¶
func (o *ListTestsParams) WithContext(ctx context.Context) *ListTestsParams
WithContext adds the context to the list tests params
func (*ListTestsParams) WithDefaults ¶
func (o *ListTestsParams) WithDefaults() *ListTestsParams
WithDefaults hydrates default values in the list tests params (not the query body).
All values with no default are reset to their zero value.
func (*ListTestsParams) WithHTTPClient ¶
func (o *ListTestsParams) WithHTTPClient(client *http.Client) *ListTestsParams
WithHTTPClient adds the HTTPClient to the list tests params
func (*ListTestsParams) WithOrgName ¶
func (o *ListTestsParams) WithOrgName(orgName string) *ListTestsParams
WithOrgName adds the orgName to the list tests params
func (*ListTestsParams) WithTimeout ¶
func (o *ListTestsParams) WithTimeout(timeout time.Duration) *ListTestsParams
WithTimeout adds the timeout to the list tests params
func (*ListTestsParams) WriteToRequest ¶
func (o *ListTestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTestsReader ¶
type ListTestsReader struct {
// contains filtered or unexported fields
}
ListTestsReader is a Reader for the ListTests structure.
func (*ListTestsReader) ReadResponse ¶
func (o *ListTestsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTestsUnauthorized ¶
type ListTestsUnauthorized struct {
}ListTestsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListTestsUnauthorized ¶
func NewListTestsUnauthorized() *ListTestsUnauthorized
NewListTestsUnauthorized creates a ListTestsUnauthorized with default headers values
func (*ListTestsUnauthorized) Code ¶
func (o *ListTestsUnauthorized) Code() int
Code gets the status code for the list tests unauthorized response
func (*ListTestsUnauthorized) Error ¶
func (o *ListTestsUnauthorized) Error() string
func (*ListTestsUnauthorized) GetPayload ¶
func (o *ListTestsUnauthorized) GetPayload() *models.ErrorResponse
func (*ListTestsUnauthorized) IsClientError ¶
func (o *ListTestsUnauthorized) IsClientError() bool
IsClientError returns true when this list tests unauthorized response has a 4xx status code
func (*ListTestsUnauthorized) IsCode ¶
func (o *ListTestsUnauthorized) IsCode(code int) bool
IsCode returns true when this list tests unauthorized response a status code equal to that given
func (*ListTestsUnauthorized) IsRedirect ¶
func (o *ListTestsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list tests unauthorized response has a 3xx status code
func (*ListTestsUnauthorized) IsServerError ¶
func (o *ListTestsUnauthorized) IsServerError() bool
IsServerError returns true when this list tests unauthorized response has a 5xx status code
func (*ListTestsUnauthorized) IsSuccess ¶
func (o *ListTestsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list tests unauthorized response has a 2xx status code
func (*ListTestsUnauthorized) String ¶
func (o *ListTestsUnauthorized) String() string