credentials

package
v2.21.15 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 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 added in v2.18.0

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

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

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 added in v2.18.0

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 added in v2.18.0

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