threat

package
v0.0.0-...-b3f093e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 threat API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) ThreatFindList

func (a *Client) ThreatFindList(params *ThreatFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ThreatFindListOK, error)

ThreatFindList retrieves a list of threats based on a comma delimited list of object i ds

Retrieve a list of threats (like a Plan of Actions and Milestones POA&M), for a specific object (like an ATO) using the object's unique ID.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ThreatFindList(params *ThreatFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ThreatFindListOK, 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 threat API client.

type ThreatFindListBadRequest

type ThreatFindListBadRequest struct {
	Payload *models.Response
}

ThreatFindListBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewThreatFindListBadRequest

func NewThreatFindListBadRequest() *ThreatFindListBadRequest

NewThreatFindListBadRequest creates a ThreatFindListBadRequest with default headers values

func (*ThreatFindListBadRequest) Code

func (o *ThreatFindListBadRequest) Code() int

Code gets the status code for the threat find list bad request response

func (*ThreatFindListBadRequest) Error

func (o *ThreatFindListBadRequest) Error() string

func (*ThreatFindListBadRequest) GetPayload

func (o *ThreatFindListBadRequest) GetPayload() *models.Response

func (*ThreatFindListBadRequest) IsClientError

func (o *ThreatFindListBadRequest) IsClientError() bool

IsClientError returns true when this threat find list bad request response has a 4xx status code

func (*ThreatFindListBadRequest) IsCode

func (o *ThreatFindListBadRequest) IsCode(code int) bool

IsCode returns true when this threat find list bad request response a status code equal to that given

func (*ThreatFindListBadRequest) IsRedirect

func (o *ThreatFindListBadRequest) IsRedirect() bool

IsRedirect returns true when this threat find list bad request response has a 3xx status code

func (*ThreatFindListBadRequest) IsServerError

func (o *ThreatFindListBadRequest) IsServerError() bool

IsServerError returns true when this threat find list bad request response has a 5xx status code

func (*ThreatFindListBadRequest) IsSuccess

func (o *ThreatFindListBadRequest) IsSuccess() bool

IsSuccess returns true when this threat find list bad request response has a 2xx status code

func (*ThreatFindListBadRequest) String

func (o *ThreatFindListBadRequest) String() string

type ThreatFindListInternalServerError

type ThreatFindListInternalServerError struct {
	Payload *models.Response
}

ThreatFindListInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewThreatFindListInternalServerError

func NewThreatFindListInternalServerError() *ThreatFindListInternalServerError

NewThreatFindListInternalServerError creates a ThreatFindListInternalServerError with default headers values

func (*ThreatFindListInternalServerError) Code

Code gets the status code for the threat find list internal server error response

func (*ThreatFindListInternalServerError) Error

func (*ThreatFindListInternalServerError) GetPayload

func (*ThreatFindListInternalServerError) IsClientError

func (o *ThreatFindListInternalServerError) IsClientError() bool

IsClientError returns true when this threat find list internal server error response has a 4xx status code

func (*ThreatFindListInternalServerError) IsCode

func (o *ThreatFindListInternalServerError) IsCode(code int) bool

IsCode returns true when this threat find list internal server error response a status code equal to that given

func (*ThreatFindListInternalServerError) IsRedirect

func (o *ThreatFindListInternalServerError) IsRedirect() bool

IsRedirect returns true when this threat find list internal server error response has a 3xx status code

func (*ThreatFindListInternalServerError) IsServerError

func (o *ThreatFindListInternalServerError) IsServerError() bool

IsServerError returns true when this threat find list internal server error response has a 5xx status code

func (*ThreatFindListInternalServerError) IsSuccess

func (o *ThreatFindListInternalServerError) IsSuccess() bool

IsSuccess returns true when this threat find list internal server error response has a 2xx status code

func (*ThreatFindListInternalServerError) String

type ThreatFindListOK

type ThreatFindListOK struct {
	Payload *models.ThreatFindResponse
}

ThreatFindListOK describes a response with status code 200, with default header values.

OK

func NewThreatFindListOK

func NewThreatFindListOK() *ThreatFindListOK

NewThreatFindListOK creates a ThreatFindListOK with default headers values

func (*ThreatFindListOK) Code

func (o *ThreatFindListOK) Code() int

Code gets the status code for the threat find list o k response

func (*ThreatFindListOK) Error

func (o *ThreatFindListOK) Error() string

func (*ThreatFindListOK) GetPayload

func (o *ThreatFindListOK) GetPayload() *models.ThreatFindResponse

func (*ThreatFindListOK) IsClientError

func (o *ThreatFindListOK) IsClientError() bool

IsClientError returns true when this threat find list o k response has a 4xx status code

func (*ThreatFindListOK) IsCode

func (o *ThreatFindListOK) IsCode(code int) bool

IsCode returns true when this threat find list o k response a status code equal to that given

func (*ThreatFindListOK) IsRedirect

func (o *ThreatFindListOK) IsRedirect() bool

IsRedirect returns true when this threat find list o k response has a 3xx status code

func (*ThreatFindListOK) IsServerError

func (o *ThreatFindListOK) IsServerError() bool

IsServerError returns true when this threat find list o k response has a 5xx status code

func (*ThreatFindListOK) IsSuccess

func (o *ThreatFindListOK) IsSuccess() bool

IsSuccess returns true when this threat find list o k response has a 2xx status code

func (*ThreatFindListOK) String

func (o *ThreatFindListOK) String() string

type ThreatFindListParams

type ThreatFindListParams struct {

	/* Ids.

	   A comma delimited list of object IDs, for example, an ATO ID.
	*/
	Ids []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ThreatFindListParams contains all the parameters to send to the API endpoint

for the threat find list operation.

Typically these are written to a http.Request.

func NewThreatFindListParams

func NewThreatFindListParams() *ThreatFindListParams

NewThreatFindListParams creates a new ThreatFindListParams 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 NewThreatFindListParamsWithContext

func NewThreatFindListParamsWithContext(ctx context.Context) *ThreatFindListParams

NewThreatFindListParamsWithContext creates a new ThreatFindListParams object with the ability to set a context for a request.

func NewThreatFindListParamsWithHTTPClient

func NewThreatFindListParamsWithHTTPClient(client *http.Client) *ThreatFindListParams

NewThreatFindListParamsWithHTTPClient creates a new ThreatFindListParams object with the ability to set a custom HTTPClient for a request.

func NewThreatFindListParamsWithTimeout

func NewThreatFindListParamsWithTimeout(timeout time.Duration) *ThreatFindListParams

NewThreatFindListParamsWithTimeout creates a new ThreatFindListParams object with the ability to set a timeout on a request.

func (*ThreatFindListParams) SetContext

func (o *ThreatFindListParams) SetContext(ctx context.Context)

SetContext adds the context to the threat find list params

func (*ThreatFindListParams) SetDefaults

func (o *ThreatFindListParams) SetDefaults()

SetDefaults hydrates default values in the threat find list params (not the query body).

All values with no default are reset to their zero value.

func (*ThreatFindListParams) SetHTTPClient

func (o *ThreatFindListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the threat find list params

func (*ThreatFindListParams) SetIds

func (o *ThreatFindListParams) SetIds(ids []string)

SetIds adds the ids to the threat find list params

func (*ThreatFindListParams) SetTimeout

func (o *ThreatFindListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the threat find list params

func (*ThreatFindListParams) WithContext

WithContext adds the context to the threat find list params

func (*ThreatFindListParams) WithDefaults

func (o *ThreatFindListParams) WithDefaults() *ThreatFindListParams

WithDefaults hydrates default values in the threat find list params (not the query body).

All values with no default are reset to their zero value.

func (*ThreatFindListParams) WithHTTPClient

func (o *ThreatFindListParams) WithHTTPClient(client *http.Client) *ThreatFindListParams

WithHTTPClient adds the HTTPClient to the threat find list params

func (*ThreatFindListParams) WithIds

WithIds adds the ids to the threat find list params

func (*ThreatFindListParams) WithTimeout

func (o *ThreatFindListParams) WithTimeout(timeout time.Duration) *ThreatFindListParams

WithTimeout adds the timeout to the threat find list params

func (*ThreatFindListParams) WriteToRequest

func (o *ThreatFindListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ThreatFindListReader

type ThreatFindListReader struct {
	// contains filtered or unexported fields
}

ThreatFindListReader is a Reader for the ThreatFindList structure.

func (*ThreatFindListReader) ReadResponse

func (o *ThreatFindListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ThreatFindListUnauthorized

type ThreatFindListUnauthorized struct {
	Payload *models.Response
}

ThreatFindListUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewThreatFindListUnauthorized

func NewThreatFindListUnauthorized() *ThreatFindListUnauthorized

NewThreatFindListUnauthorized creates a ThreatFindListUnauthorized with default headers values

func (*ThreatFindListUnauthorized) Code

func (o *ThreatFindListUnauthorized) Code() int

Code gets the status code for the threat find list unauthorized response

func (*ThreatFindListUnauthorized) Error

func (*ThreatFindListUnauthorized) GetPayload

func (o *ThreatFindListUnauthorized) GetPayload() *models.Response

func (*ThreatFindListUnauthorized) IsClientError

func (o *ThreatFindListUnauthorized) IsClientError() bool

IsClientError returns true when this threat find list unauthorized response has a 4xx status code

func (*ThreatFindListUnauthorized) IsCode

func (o *ThreatFindListUnauthorized) IsCode(code int) bool

IsCode returns true when this threat find list unauthorized response a status code equal to that given

func (*ThreatFindListUnauthorized) IsRedirect

func (o *ThreatFindListUnauthorized) IsRedirect() bool

IsRedirect returns true when this threat find list unauthorized response has a 3xx status code

func (*ThreatFindListUnauthorized) IsServerError

func (o *ThreatFindListUnauthorized) IsServerError() bool

IsServerError returns true when this threat find list unauthorized response has a 5xx status code

func (*ThreatFindListUnauthorized) IsSuccess

func (o *ThreatFindListUnauthorized) IsSuccess() bool

IsSuccess returns true when this threat find list unauthorized response has a 2xx status code

func (*ThreatFindListUnauthorized) String

func (o *ThreatFindListUnauthorized) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL