credentials

package
v0.0.0-...-b339f66 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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 credentials API

func (*Client) ListCredentials

func (a *Client) ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, error)

ListCredentials Lists credential names for the provider

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 {
	ListCredentials(params *ListCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCredentialsOK, 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 credentials API client.

type ListCredentialsDefault

type ListCredentialsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListCredentialsDefault describes a response with status code -1, with default header values.

errorResponse

func NewListCredentialsDefault

func NewListCredentialsDefault(code int) *ListCredentialsDefault

NewListCredentialsDefault creates a ListCredentialsDefault with default headers values

func (*ListCredentialsDefault) Code

func (o *ListCredentialsDefault) Code() int

Code gets the status code for the list credentials default response

func (*ListCredentialsDefault) Error

func (o *ListCredentialsDefault) Error() string

func (*ListCredentialsDefault) GetPayload

func (o *ListCredentialsDefault) GetPayload() *models.ErrorResponse

func (*ListCredentialsDefault) IsClientError

func (o *ListCredentialsDefault) IsClientError() bool

IsClientError returns true when this list credentials default response has a 4xx status code

func (*ListCredentialsDefault) IsCode

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

IsCode returns true when this list credentials default response a status code equal to that given

func (*ListCredentialsDefault) IsRedirect

func (o *ListCredentialsDefault) IsRedirect() bool

IsRedirect returns true when this list credentials default response has a 3xx status code

func (*ListCredentialsDefault) IsServerError

func (o *ListCredentialsDefault) IsServerError() bool

IsServerError returns true when this list credentials default response has a 5xx status code

func (*ListCredentialsDefault) IsSuccess

func (o *ListCredentialsDefault) IsSuccess() bool

IsSuccess returns true when this list credentials default response has a 2xx status code

func (*ListCredentialsDefault) String

func (o *ListCredentialsDefault) String() string

type ListCredentialsOK

type ListCredentialsOK struct {
	Payload *models.CredentialList
}

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

CredentialList

func NewListCredentialsOK

func NewListCredentialsOK() *ListCredentialsOK

NewListCredentialsOK creates a ListCredentialsOK with default headers values

func (*ListCredentialsOK) Error

func (o *ListCredentialsOK) Error() string

func (*ListCredentialsOK) GetPayload

func (o *ListCredentialsOK) GetPayload() *models.CredentialList

func (*ListCredentialsOK) IsClientError

func (o *ListCredentialsOK) IsClientError() bool

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

func (*ListCredentialsOK) IsCode

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

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

func (*ListCredentialsOK) IsRedirect

func (o *ListCredentialsOK) IsRedirect() bool

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

func (*ListCredentialsOK) IsServerError

func (o *ListCredentialsOK) IsServerError() bool

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

func (*ListCredentialsOK) IsSuccess

func (o *ListCredentialsOK) IsSuccess() bool

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

func (*ListCredentialsOK) String

func (o *ListCredentialsOK) String() string

type ListCredentialsParams

type ListCredentialsParams struct {

	// Datacenter.
	Datacenter *string

	// ProviderName.
	ProviderName string

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

ListCredentialsParams contains all the parameters to send to the API endpoint

for the list credentials operation.

Typically these are written to a http.Request.

func NewListCredentialsParams

func NewListCredentialsParams() *ListCredentialsParams

NewListCredentialsParams creates a new ListCredentialsParams 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 NewListCredentialsParamsWithContext

func NewListCredentialsParamsWithContext(ctx context.Context) *ListCredentialsParams

NewListCredentialsParamsWithContext creates a new ListCredentialsParams object with the ability to set a context for a request.

func NewListCredentialsParamsWithHTTPClient

func NewListCredentialsParamsWithHTTPClient(client *http.Client) *ListCredentialsParams

NewListCredentialsParamsWithHTTPClient creates a new ListCredentialsParams object with the ability to set a custom HTTPClient for a request.

func NewListCredentialsParamsWithTimeout

func NewListCredentialsParamsWithTimeout(timeout time.Duration) *ListCredentialsParams

NewListCredentialsParamsWithTimeout creates a new ListCredentialsParams object with the ability to set a timeout on a request.

func (*ListCredentialsParams) SetContext

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

SetContext adds the context to the list credentials params

func (*ListCredentialsParams) SetDatacenter

func (o *ListCredentialsParams) SetDatacenter(datacenter *string)

SetDatacenter adds the datacenter to the list credentials params

func (*ListCredentialsParams) SetDefaults

func (o *ListCredentialsParams) SetDefaults()

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

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

func (*ListCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list credentials params

func (*ListCredentialsParams) SetProviderName

func (o *ListCredentialsParams) SetProviderName(providerName string)

SetProviderName adds the providerName to the list credentials params

func (*ListCredentialsParams) SetTimeout

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

SetTimeout adds the timeout to the list credentials params

func (*ListCredentialsParams) WithContext

WithContext adds the context to the list credentials params

func (*ListCredentialsParams) WithDatacenter

func (o *ListCredentialsParams) WithDatacenter(datacenter *string) *ListCredentialsParams

WithDatacenter adds the datacenter to the list credentials params

func (*ListCredentialsParams) WithDefaults

func (o *ListCredentialsParams) WithDefaults() *ListCredentialsParams

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

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

func (*ListCredentialsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list credentials params

func (*ListCredentialsParams) WithProviderName

func (o *ListCredentialsParams) WithProviderName(providerName string) *ListCredentialsParams

WithProviderName adds the providerName to the list credentials params

func (*ListCredentialsParams) WithTimeout

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

WithTimeout adds the timeout to the list credentials params

func (*ListCredentialsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListCredentialsReader

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

ListCredentialsReader is a Reader for the ListCredentials structure.

func (*ListCredentialsReader) ReadResponse

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