user_credentials

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MPL-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 user credentials API

func (*Client) DeleteCredential

func (a *Client) DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCredentialNoContent, error)

DeleteCredential deletes provided storage access credentials for the given user

func (*Client) GenerateCredentials

func (a *Client) GenerateCredentials(params *GenerateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateCredentialsOK, error)

GenerateCredentials generates storage credentials for the given user

Generate storage credentials for the given user. Users can only have one set of credentials, so calling this method will generate a new set and invalidate any existing ones.

func (*Client) GetCredentials

func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCredentialsOK, error)

GetCredentials gets credentials for a given 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 {
	DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCredentialNoContent, error)

	GenerateCredentials(params *GenerateCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateCredentialsOK, error)

	GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCredentialsOK, 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 user credentials API client.

type DeleteCredentialDefault

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

Default error structure.

func NewDeleteCredentialDefault

func NewDeleteCredentialDefault(code int) *DeleteCredentialDefault

NewDeleteCredentialDefault creates a DeleteCredentialDefault with default headers values

func (*DeleteCredentialDefault) Code

func (o *DeleteCredentialDefault) Code() int

Code gets the status code for the delete credential default response

func (*DeleteCredentialDefault) Error

func (o *DeleteCredentialDefault) Error() string

func (*DeleteCredentialDefault) GetPayload

type DeleteCredentialInternalServerError

type DeleteCredentialInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}
DeleteCredentialInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewDeleteCredentialInternalServerError

func NewDeleteCredentialInternalServerError() *DeleteCredentialInternalServerError

NewDeleteCredentialInternalServerError creates a DeleteCredentialInternalServerError with default headers values

func (*DeleteCredentialInternalServerError) Error

func (*DeleteCredentialInternalServerError) GetPayload

type DeleteCredentialNoContent

type DeleteCredentialNoContent struct {
}
DeleteCredentialNoContent describes a response with status code 204, with default header values.

No content

func NewDeleteCredentialNoContent

func NewDeleteCredentialNoContent() *DeleteCredentialNoContent

NewDeleteCredentialNoContent creates a DeleteCredentialNoContent with default headers values

func (*DeleteCredentialNoContent) Error

func (o *DeleteCredentialNoContent) Error() string

type DeleteCredentialParams

type DeleteCredentialParams struct {

	/* AccessKey.

	   The credentials access key to be removed
	*/
	AccessKey string

	/* StackID.

	   The stack's ID for which the user belongs to
	*/
	StackID string

	/* UserID.

	   The user's ID for which the credentials will be generated
	*/
	UserID string

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

DeleteCredentialParams contains all the parameters to send to the API endpoint

for the delete credential operation.

Typically these are written to a http.Request.

func NewDeleteCredentialParams

func NewDeleteCredentialParams() *DeleteCredentialParams

NewDeleteCredentialParams creates a new DeleteCredentialParams 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 NewDeleteCredentialParamsWithContext

func NewDeleteCredentialParamsWithContext(ctx context.Context) *DeleteCredentialParams

NewDeleteCredentialParamsWithContext creates a new DeleteCredentialParams object with the ability to set a context for a request.

func NewDeleteCredentialParamsWithHTTPClient

func NewDeleteCredentialParamsWithHTTPClient(client *http.Client) *DeleteCredentialParams

NewDeleteCredentialParamsWithHTTPClient creates a new DeleteCredentialParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCredentialParamsWithTimeout

func NewDeleteCredentialParamsWithTimeout(timeout time.Duration) *DeleteCredentialParams

NewDeleteCredentialParamsWithTimeout creates a new DeleteCredentialParams object with the ability to set a timeout on a request.

func (*DeleteCredentialParams) SetAccessKey

func (o *DeleteCredentialParams) SetAccessKey(accessKey string)

SetAccessKey adds the accessKey to the delete credential params

func (*DeleteCredentialParams) SetContext

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

SetContext adds the context to the delete credential params

func (*DeleteCredentialParams) SetDefaults

func (o *DeleteCredentialParams) SetDefaults()

SetDefaults hydrates default values in the delete credential params (not the query body).

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

func (*DeleteCredentialParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete credential params

func (*DeleteCredentialParams) SetStackID

func (o *DeleteCredentialParams) SetStackID(stackID string)

SetStackID adds the stackId to the delete credential params

func (*DeleteCredentialParams) SetTimeout

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

SetTimeout adds the timeout to the delete credential params

func (*DeleteCredentialParams) SetUserID

func (o *DeleteCredentialParams) SetUserID(userID string)

SetUserID adds the userId to the delete credential params

func (*DeleteCredentialParams) WithAccessKey

func (o *DeleteCredentialParams) WithAccessKey(accessKey string) *DeleteCredentialParams

WithAccessKey adds the accessKey to the delete credential params

func (*DeleteCredentialParams) WithContext

WithContext adds the context to the delete credential params

func (*DeleteCredentialParams) WithDefaults

WithDefaults hydrates default values in the delete credential params (not the query body).

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

func (*DeleteCredentialParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete credential params

func (*DeleteCredentialParams) WithStackID

func (o *DeleteCredentialParams) WithStackID(stackID string) *DeleteCredentialParams

WithStackID adds the stackID to the delete credential params

func (*DeleteCredentialParams) WithTimeout

WithTimeout adds the timeout to the delete credential params

func (*DeleteCredentialParams) WithUserID

func (o *DeleteCredentialParams) WithUserID(userID string) *DeleteCredentialParams

WithUserID adds the userID to the delete credential params

func (*DeleteCredentialParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCredentialReader

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

DeleteCredentialReader is a Reader for the DeleteCredential structure.

func (*DeleteCredentialReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCredentialUnauthorized

type DeleteCredentialUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}
DeleteCredentialUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewDeleteCredentialUnauthorized

func NewDeleteCredentialUnauthorized() *DeleteCredentialUnauthorized

NewDeleteCredentialUnauthorized creates a DeleteCredentialUnauthorized with default headers values

func (*DeleteCredentialUnauthorized) Error

func (*DeleteCredentialUnauthorized) GetPayload

type GenerateCredentialsDefault

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

Default error structure.

func NewGenerateCredentialsDefault

func NewGenerateCredentialsDefault(code int) *GenerateCredentialsDefault

NewGenerateCredentialsDefault creates a GenerateCredentialsDefault with default headers values

func (*GenerateCredentialsDefault) Code

func (o *GenerateCredentialsDefault) Code() int

Code gets the status code for the generate credentials default response

func (*GenerateCredentialsDefault) Error

func (*GenerateCredentialsDefault) GetPayload

type GenerateCredentialsInternalServerError

type GenerateCredentialsInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}
GenerateCredentialsInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewGenerateCredentialsInternalServerError

func NewGenerateCredentialsInternalServerError() *GenerateCredentialsInternalServerError

NewGenerateCredentialsInternalServerError creates a GenerateCredentialsInternalServerError with default headers values

func (*GenerateCredentialsInternalServerError) Error

func (*GenerateCredentialsInternalServerError) GetPayload

type GenerateCredentialsOK

type GenerateCredentialsOK struct {
	Payload *storage_models.StorageGenerateCredentialsResponse
}
GenerateCredentialsOK describes a response with status code 200, with default header values.

GenerateCredentialsOK generate credentials o k

func NewGenerateCredentialsOK

func NewGenerateCredentialsOK() *GenerateCredentialsOK

NewGenerateCredentialsOK creates a GenerateCredentialsOK with default headers values

func (*GenerateCredentialsOK) Error

func (o *GenerateCredentialsOK) Error() string

func (*GenerateCredentialsOK) GetPayload

type GenerateCredentialsParams

type GenerateCredentialsParams struct {

	/* StackID.

	   The stack's ID for which the user belongs to
	*/
	StackID string

	/* UserID.

	   The user's ID for which the credentials will be generated
	*/
	UserID string

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

GenerateCredentialsParams contains all the parameters to send to the API endpoint

for the generate credentials operation.

Typically these are written to a http.Request.

func NewGenerateCredentialsParams

func NewGenerateCredentialsParams() *GenerateCredentialsParams

NewGenerateCredentialsParams creates a new GenerateCredentialsParams 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 NewGenerateCredentialsParamsWithContext

func NewGenerateCredentialsParamsWithContext(ctx context.Context) *GenerateCredentialsParams

NewGenerateCredentialsParamsWithContext creates a new GenerateCredentialsParams object with the ability to set a context for a request.

func NewGenerateCredentialsParamsWithHTTPClient

func NewGenerateCredentialsParamsWithHTTPClient(client *http.Client) *GenerateCredentialsParams

NewGenerateCredentialsParamsWithHTTPClient creates a new GenerateCredentialsParams object with the ability to set a custom HTTPClient for a request.

func NewGenerateCredentialsParamsWithTimeout

func NewGenerateCredentialsParamsWithTimeout(timeout time.Duration) *GenerateCredentialsParams

NewGenerateCredentialsParamsWithTimeout creates a new GenerateCredentialsParams object with the ability to set a timeout on a request.

func (*GenerateCredentialsParams) SetContext

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

SetContext adds the context to the generate credentials params

func (*GenerateCredentialsParams) SetDefaults

func (o *GenerateCredentialsParams) SetDefaults()

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

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

func (*GenerateCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the generate credentials params

func (*GenerateCredentialsParams) SetStackID

func (o *GenerateCredentialsParams) SetStackID(stackID string)

SetStackID adds the stackId to the generate credentials params

func (*GenerateCredentialsParams) SetTimeout

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

SetTimeout adds the timeout to the generate credentials params

func (*GenerateCredentialsParams) SetUserID

func (o *GenerateCredentialsParams) SetUserID(userID string)

SetUserID adds the userId to the generate credentials params

func (*GenerateCredentialsParams) WithContext

WithContext adds the context to the generate credentials params

func (*GenerateCredentialsParams) WithDefaults

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

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

func (*GenerateCredentialsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the generate credentials params

func (*GenerateCredentialsParams) WithStackID

WithStackID adds the stackID to the generate credentials params

func (*GenerateCredentialsParams) WithTimeout

WithTimeout adds the timeout to the generate credentials params

func (*GenerateCredentialsParams) WithUserID

WithUserID adds the userID to the generate credentials params

func (*GenerateCredentialsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GenerateCredentialsReader

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

GenerateCredentialsReader is a Reader for the GenerateCredentials structure.

func (*GenerateCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GenerateCredentialsUnauthorized

type GenerateCredentialsUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}
GenerateCredentialsUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewGenerateCredentialsUnauthorized

func NewGenerateCredentialsUnauthorized() *GenerateCredentialsUnauthorized

NewGenerateCredentialsUnauthorized creates a GenerateCredentialsUnauthorized with default headers values

func (*GenerateCredentialsUnauthorized) Error

func (*GenerateCredentialsUnauthorized) GetPayload

type GetCredentialsDefault

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

Default error structure.

func NewGetCredentialsDefault

func NewGetCredentialsDefault(code int) *GetCredentialsDefault

NewGetCredentialsDefault creates a GetCredentialsDefault with default headers values

func (*GetCredentialsDefault) Code

func (o *GetCredentialsDefault) Code() int

Code gets the status code for the get credentials default response

func (*GetCredentialsDefault) Error

func (o *GetCredentialsDefault) Error() string

func (*GetCredentialsDefault) GetPayload

type GetCredentialsInternalServerError

type GetCredentialsInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}
GetCredentialsInternalServerError describes a response with status code 500, with default header values.

Internal server error.

func NewGetCredentialsInternalServerError

func NewGetCredentialsInternalServerError() *GetCredentialsInternalServerError

NewGetCredentialsInternalServerError creates a GetCredentialsInternalServerError with default headers values

func (*GetCredentialsInternalServerError) Error

func (*GetCredentialsInternalServerError) GetPayload

type GetCredentialsOK

type GetCredentialsOK struct {
	Payload *storage_models.StorageGetCredentialsResponse
}
GetCredentialsOK describes a response with status code 200, with default header values.

GetCredentialsOK get credentials o k

func NewGetCredentialsOK

func NewGetCredentialsOK() *GetCredentialsOK

NewGetCredentialsOK creates a GetCredentialsOK with default headers values

func (*GetCredentialsOK) Error

func (o *GetCredentialsOK) Error() string

func (*GetCredentialsOK) GetPayload

type GetCredentialsParams

type GetCredentialsParams struct {

	/* StackID.

	   The stack's ID for which the user belongs to
	*/
	StackID string

	/* UserID.

	   The user's ID for which the credentials belong to
	*/
	UserID string

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

GetCredentialsParams contains all the parameters to send to the API endpoint

for the get credentials operation.

Typically these are written to a http.Request.

func NewGetCredentialsParams

func NewGetCredentialsParams() *GetCredentialsParams

NewGetCredentialsParams creates a new GetCredentialsParams 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 NewGetCredentialsParamsWithContext

func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams

NewGetCredentialsParamsWithContext creates a new GetCredentialsParams object with the ability to set a context for a request.

func NewGetCredentialsParamsWithHTTPClient

func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams

NewGetCredentialsParamsWithHTTPClient creates a new GetCredentialsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCredentialsParamsWithTimeout

func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams

NewGetCredentialsParamsWithTimeout creates a new GetCredentialsParams object with the ability to set a timeout on a request.

func (*GetCredentialsParams) SetContext

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

SetContext adds the context to the get credentials params

func (*GetCredentialsParams) SetDefaults

func (o *GetCredentialsParams) SetDefaults()

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

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

func (*GetCredentialsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get credentials params

func (*GetCredentialsParams) SetStackID

func (o *GetCredentialsParams) SetStackID(stackID string)

SetStackID adds the stackId to the get credentials params

func (*GetCredentialsParams) SetTimeout

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

SetTimeout adds the timeout to the get credentials params

func (*GetCredentialsParams) SetUserID

func (o *GetCredentialsParams) SetUserID(userID string)

SetUserID adds the userId to the get credentials params

func (*GetCredentialsParams) WithContext

WithContext adds the context to the get credentials params

func (*GetCredentialsParams) WithDefaults

func (o *GetCredentialsParams) WithDefaults() *GetCredentialsParams

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

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

func (*GetCredentialsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get credentials params

func (*GetCredentialsParams) WithStackID

func (o *GetCredentialsParams) WithStackID(stackID string) *GetCredentialsParams

WithStackID adds the stackID to the get credentials params

func (*GetCredentialsParams) WithTimeout

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

WithTimeout adds the timeout to the get credentials params

func (*GetCredentialsParams) WithUserID

func (o *GetCredentialsParams) WithUserID(userID string) *GetCredentialsParams

WithUserID adds the userID to the get credentials params

func (*GetCredentialsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCredentialsReader

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

GetCredentialsReader is a Reader for the GetCredentials structure.

func (*GetCredentialsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCredentialsUnauthorized

type GetCredentialsUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}
GetCredentialsUnauthorized describes a response with status code 401, with default header values.

Returned when an unauthorized request is attempted.

func NewGetCredentialsUnauthorized

func NewGetCredentialsUnauthorized() *GetCredentialsUnauthorized

NewGetCredentialsUnauthorized creates a GetCredentialsUnauthorized with default headers values

func (*GetCredentialsUnauthorized) Error

func (*GetCredentialsUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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