url

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: 10 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 url API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) URLFindList

func (a *Client) URLFindList(params *URLFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*URLFindListOK, error)

URLFindList retrieves a list of u r ls associated with an object in c e d a r

Retrieve a list of URLs associated with an object in CEDAR. An object could include a System, ATO, etc

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	URLFindList(params *URLFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*URLFindListOK, 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 url API client.

type URLFindListBadRequest

type URLFindListBadRequest struct {
	Payload *models.Response
}

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

Bad Request

func NewURLFindListBadRequest

func NewURLFindListBadRequest() *URLFindListBadRequest

NewURLFindListBadRequest creates a URLFindListBadRequest with default headers values

func (*URLFindListBadRequest) Code

func (o *URLFindListBadRequest) Code() int

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

func (*URLFindListBadRequest) Error

func (o *URLFindListBadRequest) Error() string

func (*URLFindListBadRequest) GetPayload

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

func (*URLFindListBadRequest) IsClientError

func (o *URLFindListBadRequest) IsClientError() bool

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

func (*URLFindListBadRequest) IsCode

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

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

func (*URLFindListBadRequest) IsRedirect

func (o *URLFindListBadRequest) IsRedirect() bool

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

func (*URLFindListBadRequest) IsServerError

func (o *URLFindListBadRequest) IsServerError() bool

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

func (*URLFindListBadRequest) IsSuccess

func (o *URLFindListBadRequest) IsSuccess() bool

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

func (*URLFindListBadRequest) String

func (o *URLFindListBadRequest) String() string

type URLFindListInternalServerError

type URLFindListInternalServerError struct {
	Payload *models.Response
}

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

Internal Server Error

func NewURLFindListInternalServerError

func NewURLFindListInternalServerError() *URLFindListInternalServerError

NewURLFindListInternalServerError creates a URLFindListInternalServerError with default headers values

func (*URLFindListInternalServerError) Code

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

func (*URLFindListInternalServerError) Error

func (*URLFindListInternalServerError) GetPayload

func (*URLFindListInternalServerError) IsClientError

func (o *URLFindListInternalServerError) IsClientError() bool

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

func (*URLFindListInternalServerError) IsCode

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

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

func (*URLFindListInternalServerError) IsRedirect

func (o *URLFindListInternalServerError) IsRedirect() bool

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

func (*URLFindListInternalServerError) IsServerError

func (o *URLFindListInternalServerError) IsServerError() bool

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

func (*URLFindListInternalServerError) IsSuccess

func (o *URLFindListInternalServerError) IsSuccess() bool

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

func (*URLFindListInternalServerError) String

type URLFindListOK

type URLFindListOK struct {
	Payload *models.URLFindResponse
}

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

OK

func NewURLFindListOK

func NewURLFindListOK() *URLFindListOK

NewURLFindListOK creates a URLFindListOK with default headers values

func (*URLFindListOK) Code

func (o *URLFindListOK) Code() int

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

func (*URLFindListOK) Error

func (o *URLFindListOK) Error() string

func (*URLFindListOK) GetPayload

func (o *URLFindListOK) GetPayload() *models.URLFindResponse

func (*URLFindListOK) IsClientError

func (o *URLFindListOK) IsClientError() bool

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

func (*URLFindListOK) IsCode

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

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

func (*URLFindListOK) IsRedirect

func (o *URLFindListOK) IsRedirect() bool

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

func (*URLFindListOK) IsServerError

func (o *URLFindListOK) IsServerError() bool

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

func (*URLFindListOK) IsSuccess

func (o *URLFindListOK) IsSuccess() bool

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

func (*URLFindListOK) String

func (o *URLFindListOK) String() string

type URLFindListParams

type URLFindListParams struct {

	/* ID.

	   ID of object the URLs are associated with.
	*/
	ID string

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

URLFindListParams contains all the parameters to send to the API endpoint

for the url find list operation.

Typically these are written to a http.Request.

func NewURLFindListParams

func NewURLFindListParams() *URLFindListParams

NewURLFindListParams creates a new URLFindListParams 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 NewURLFindListParamsWithContext

func NewURLFindListParamsWithContext(ctx context.Context) *URLFindListParams

NewURLFindListParamsWithContext creates a new URLFindListParams object with the ability to set a context for a request.

func NewURLFindListParamsWithHTTPClient

func NewURLFindListParamsWithHTTPClient(client *http.Client) *URLFindListParams

NewURLFindListParamsWithHTTPClient creates a new URLFindListParams object with the ability to set a custom HTTPClient for a request.

func NewURLFindListParamsWithTimeout

func NewURLFindListParamsWithTimeout(timeout time.Duration) *URLFindListParams

NewURLFindListParamsWithTimeout creates a new URLFindListParams object with the ability to set a timeout on a request.

func (*URLFindListParams) SetContext

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

SetContext adds the context to the url find list params

func (*URLFindListParams) SetDefaults

func (o *URLFindListParams) SetDefaults()

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

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

func (*URLFindListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the url find list params

func (*URLFindListParams) SetID

func (o *URLFindListParams) SetID(id string)

SetID adds the id to the url find list params

func (*URLFindListParams) SetTimeout

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

SetTimeout adds the timeout to the url find list params

func (*URLFindListParams) WithContext

func (o *URLFindListParams) WithContext(ctx context.Context) *URLFindListParams

WithContext adds the context to the url find list params

func (*URLFindListParams) WithDefaults

func (o *URLFindListParams) WithDefaults() *URLFindListParams

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

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

func (*URLFindListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the url find list params

func (*URLFindListParams) WithID

WithID adds the id to the url find list params

func (*URLFindListParams) WithTimeout

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

WithTimeout adds the timeout to the url find list params

func (*URLFindListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type URLFindListReader

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

URLFindListReader is a Reader for the URLFindList structure.

func (*URLFindListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type URLFindListUnauthorized

type URLFindListUnauthorized struct {
	Payload *models.Response
}

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

Access Denied

func NewURLFindListUnauthorized

func NewURLFindListUnauthorized() *URLFindListUnauthorized

NewURLFindListUnauthorized creates a URLFindListUnauthorized with default headers values

func (*URLFindListUnauthorized) Code

func (o *URLFindListUnauthorized) Code() int

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

func (*URLFindListUnauthorized) Error

func (o *URLFindListUnauthorized) Error() string

func (*URLFindListUnauthorized) GetPayload

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

func (*URLFindListUnauthorized) IsClientError

func (o *URLFindListUnauthorized) IsClientError() bool

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

func (*URLFindListUnauthorized) IsCode

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

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

func (*URLFindListUnauthorized) IsRedirect

func (o *URLFindListUnauthorized) IsRedirect() bool

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

func (*URLFindListUnauthorized) IsServerError

func (o *URLFindListUnauthorized) IsServerError() bool

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

func (*URLFindListUnauthorized) IsSuccess

func (o *URLFindListUnauthorized) IsSuccess() bool

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

func (*URLFindListUnauthorized) String

func (o *URLFindListUnauthorized) String() string

Jump to

Keyboard shortcuts

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