security_management

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT 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 security management API

func (*Client) GetUserSources

func (a *Client) GetUserSources(params *GetUserSourcesParams, opts ...ClientOption) (*GetUserSourcesOK, error)

GetUserSources retrieves a list of the available user sources

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 is the option for Client methods

type ClientService

type ClientService interface {
	GetUserSources(params *GetUserSourcesParams, opts ...ClientOption) (*GetUserSourcesOK, 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 security management API client.

type GetUserSourcesForbidden

type GetUserSourcesForbidden struct {
}

GetUserSourcesForbidden describes a response with status code 403, with default header values.

The user does not have permission to perform the operation.

func NewGetUserSourcesForbidden

func NewGetUserSourcesForbidden() *GetUserSourcesForbidden

NewGetUserSourcesForbidden creates a GetUserSourcesForbidden with default headers values

func (*GetUserSourcesForbidden) Code

func (o *GetUserSourcesForbidden) Code() int

Code gets the status code for the get user sources forbidden response

func (*GetUserSourcesForbidden) Error

func (o *GetUserSourcesForbidden) Error() string

func (*GetUserSourcesForbidden) IsClientError

func (o *GetUserSourcesForbidden) IsClientError() bool

IsClientError returns true when this get user sources forbidden response has a 4xx status code

func (*GetUserSourcesForbidden) IsCode

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

IsCode returns true when this get user sources forbidden response a status code equal to that given

func (*GetUserSourcesForbidden) IsRedirect

func (o *GetUserSourcesForbidden) IsRedirect() bool

IsRedirect returns true when this get user sources forbidden response has a 3xx status code

func (*GetUserSourcesForbidden) IsServerError

func (o *GetUserSourcesForbidden) IsServerError() bool

IsServerError returns true when this get user sources forbidden response has a 5xx status code

func (*GetUserSourcesForbidden) IsSuccess

func (o *GetUserSourcesForbidden) IsSuccess() bool

IsSuccess returns true when this get user sources forbidden response has a 2xx status code

func (*GetUserSourcesForbidden) String

func (o *GetUserSourcesForbidden) String() string

type GetUserSourcesOK

type GetUserSourcesOK struct {
	Payload []*models.APIUserSource
}

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

successful operation

func NewGetUserSourcesOK

func NewGetUserSourcesOK() *GetUserSourcesOK

NewGetUserSourcesOK creates a GetUserSourcesOK with default headers values

func (*GetUserSourcesOK) Code

func (o *GetUserSourcesOK) Code() int

Code gets the status code for the get user sources o k response

func (*GetUserSourcesOK) Error

func (o *GetUserSourcesOK) Error() string

func (*GetUserSourcesOK) GetPayload

func (o *GetUserSourcesOK) GetPayload() []*models.APIUserSource

func (*GetUserSourcesOK) IsClientError

func (o *GetUserSourcesOK) IsClientError() bool

IsClientError returns true when this get user sources o k response has a 4xx status code

func (*GetUserSourcesOK) IsCode

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

IsCode returns true when this get user sources o k response a status code equal to that given

func (*GetUserSourcesOK) IsRedirect

func (o *GetUserSourcesOK) IsRedirect() bool

IsRedirect returns true when this get user sources o k response has a 3xx status code

func (*GetUserSourcesOK) IsServerError

func (o *GetUserSourcesOK) IsServerError() bool

IsServerError returns true when this get user sources o k response has a 5xx status code

func (*GetUserSourcesOK) IsSuccess

func (o *GetUserSourcesOK) IsSuccess() bool

IsSuccess returns true when this get user sources o k response has a 2xx status code

func (*GetUserSourcesOK) String

func (o *GetUserSourcesOK) String() string

type GetUserSourcesParams

type GetUserSourcesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUserSourcesParams contains all the parameters to send to the API endpoint

for the get user sources operation.

Typically these are written to a http.Request.

func NewGetUserSourcesParams

func NewGetUserSourcesParams() *GetUserSourcesParams

NewGetUserSourcesParams creates a new GetUserSourcesParams 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 NewGetUserSourcesParamsWithContext

func NewGetUserSourcesParamsWithContext(ctx context.Context) *GetUserSourcesParams

NewGetUserSourcesParamsWithContext creates a new GetUserSourcesParams object with the ability to set a context for a request.

func NewGetUserSourcesParamsWithHTTPClient

func NewGetUserSourcesParamsWithHTTPClient(client *http.Client) *GetUserSourcesParams

NewGetUserSourcesParamsWithHTTPClient creates a new GetUserSourcesParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserSourcesParamsWithTimeout

func NewGetUserSourcesParamsWithTimeout(timeout time.Duration) *GetUserSourcesParams

NewGetUserSourcesParamsWithTimeout creates a new GetUserSourcesParams object with the ability to set a timeout on a request.

func (*GetUserSourcesParams) SetContext

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

SetContext adds the context to the get user sources params

func (*GetUserSourcesParams) SetDefaults

func (o *GetUserSourcesParams) SetDefaults()

SetDefaults hydrates default values in the get user sources params (not the query body).

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

func (*GetUserSourcesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user sources params

func (*GetUserSourcesParams) SetTimeout

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

SetTimeout adds the timeout to the get user sources params

func (*GetUserSourcesParams) WithContext

WithContext adds the context to the get user sources params

func (*GetUserSourcesParams) WithDefaults

func (o *GetUserSourcesParams) WithDefaults() *GetUserSourcesParams

WithDefaults hydrates default values in the get user sources params (not the query body).

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

func (*GetUserSourcesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user sources params

func (*GetUserSourcesParams) WithTimeout

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

WithTimeout adds the timeout to the get user sources params

func (*GetUserSourcesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserSourcesReader

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

GetUserSourcesReader is a Reader for the GetUserSources structure.

func (*GetUserSourcesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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