role

package
v0.0.0-...-3c2e68c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 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 role API

func (*Client) ListRoles

func (a *Client) ListRoles(params *ListRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRolesOK, error)

ListRoles lists all roles

List all roles available to current user

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 {
	ListRoles(params *ListRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRolesOK, 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 role API client.

type ListRolesBadRequest

type ListRolesBadRequest struct {
	Payload string
}
ListRolesBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewListRolesBadRequest

func NewListRolesBadRequest() *ListRolesBadRequest

NewListRolesBadRequest creates a ListRolesBadRequest with default headers values

func (*ListRolesBadRequest) Error

func (o *ListRolesBadRequest) Error() string

func (*ListRolesBadRequest) GetPayload

func (o *ListRolesBadRequest) GetPayload() string

type ListRolesDefault

type ListRolesDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
ListRolesDefault describes a response with status code -1, with default header values.

generic error response

func NewListRolesDefault

func NewListRolesDefault(code int) *ListRolesDefault

NewListRolesDefault creates a ListRolesDefault with default headers values

func (*ListRolesDefault) Code

func (o *ListRolesDefault) Code() int

Code gets the status code for the list roles default response

func (*ListRolesDefault) Error

func (o *ListRolesDefault) Error() string

func (*ListRolesDefault) GetPayload

func (o *ListRolesDefault) GetPayload() *models.Error

type ListRolesOK

type ListRolesOK struct {
	Payload *models.ModelsRoleIDsResponse
}
ListRolesOK describes a response with status code 200, with default header values.

OK

func NewListRolesOK

func NewListRolesOK() *ListRolesOK

NewListRolesOK creates a ListRolesOK with default headers values

func (*ListRolesOK) Error

func (o *ListRolesOK) Error() string

func (*ListRolesOK) GetPayload

func (o *ListRolesOK) GetPayload() *models.ModelsRoleIDsResponse

type ListRolesParams

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

ListRolesParams contains all the parameters to send to the API endpoint

for the list roles operation.

Typically these are written to a http.Request.

func NewListRolesParams

func NewListRolesParams() *ListRolesParams

NewListRolesParams creates a new ListRolesParams 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 NewListRolesParamsWithContext

func NewListRolesParamsWithContext(ctx context.Context) *ListRolesParams

NewListRolesParamsWithContext creates a new ListRolesParams object with the ability to set a context for a request.

func NewListRolesParamsWithHTTPClient

func NewListRolesParamsWithHTTPClient(client *http.Client) *ListRolesParams

NewListRolesParamsWithHTTPClient creates a new ListRolesParams object with the ability to set a custom HTTPClient for a request.

func NewListRolesParamsWithTimeout

func NewListRolesParamsWithTimeout(timeout time.Duration) *ListRolesParams

NewListRolesParamsWithTimeout creates a new ListRolesParams object with the ability to set a timeout on a request.

func (*ListRolesParams) SetContext

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

SetContext adds the context to the list roles params

func (*ListRolesParams) SetDefaults

func (o *ListRolesParams) SetDefaults()

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

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

func (*ListRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list roles params

func (*ListRolesParams) SetTimeout

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

SetTimeout adds the timeout to the list roles params

func (*ListRolesParams) WithContext

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

WithContext adds the context to the list roles params

func (*ListRolesParams) WithDefaults

func (o *ListRolesParams) WithDefaults() *ListRolesParams

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

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

func (*ListRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list roles params

func (*ListRolesParams) WithTimeout

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

WithTimeout adds the timeout to the list roles params

func (*ListRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRolesReader

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

ListRolesReader is a Reader for the ListRoles structure.

func (*ListRolesReader) ReadResponse

func (o *ListRolesReader) 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