user_credentials

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: MPL-2.0 Imports: 11 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) (*DeleteCredentialNoContent, error)

DeleteCredential deletes provided storage access credentials for the given user

func (*Client) GenerateCredentials

func (a *Client) GenerateCredentials(params *GenerateCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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 ClientService

type ClientService interface {
	DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialNoContent, error)

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

	GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*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 CredentialsItems0

type CredentialsItems0 struct {

	// The ID for the access key
	AccessKey string `json:"accessKey,omitempty"`
}

CredentialsItems0 Storage credentials for a user swagger:model CredentialsItems0

func (*CredentialsItems0) MarshalBinary

func (o *CredentialsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CredentialsItems0) UnmarshalBinary

func (o *CredentialsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CredentialsItems0) Validate

func (o *CredentialsItems0) Validate(formats strfmt.Registry) error

Validate validates this credentials items0

type DeleteCredentialDefault

type DeleteCredentialDefault struct {
	Payload *DeleteCredentialDefaultBody
	// contains filtered or unexported fields
}

DeleteCredentialDefault handles this case 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 DeleteCredentialDefaultBody

type DeleteCredentialDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

DeleteCredentialDefaultBody delete credential default body swagger:model DeleteCredentialDefaultBody

func (*DeleteCredentialDefaultBody) MarshalBinary

func (o *DeleteCredentialDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteCredentialDefaultBody) UnmarshalBinary

func (o *DeleteCredentialDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteCredentialDefaultBody) Validate

func (o *DeleteCredentialDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this delete credential default body

type DeleteCredentialNoContent

type DeleteCredentialNoContent struct {
}

DeleteCredentialNoContent handles this case 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 values initialized.

func NewDeleteCredentialParamsWithContext

func NewDeleteCredentialParamsWithContext(ctx context.Context) *DeleteCredentialParams

NewDeleteCredentialParamsWithContext creates a new DeleteCredentialParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 GenerateCredentialsDefault

type GenerateCredentialsDefault struct {
	Payload *GenerateCredentialsDefaultBody
	// contains filtered or unexported fields
}

GenerateCredentialsDefault handles this case 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 GenerateCredentialsDefaultBody

type GenerateCredentialsDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

GenerateCredentialsDefaultBody generate credentials default body swagger:model GenerateCredentialsDefaultBody

func (*GenerateCredentialsDefaultBody) MarshalBinary

func (o *GenerateCredentialsDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenerateCredentialsDefaultBody) UnmarshalBinary

func (o *GenerateCredentialsDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenerateCredentialsDefaultBody) Validate

func (o *GenerateCredentialsDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this generate credentials default body

type GenerateCredentialsOK

type GenerateCredentialsOK struct {
	Payload *GenerateCredentialsOKBody
}

GenerateCredentialsOK handles this case 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 GenerateCredentialsOKBody

type GenerateCredentialsOKBody struct {

	// The ID for the access key
	AccessKey string `json:"accessKey,omitempty"`

	// The secret key used to sign requests
	SecretKey string `json:"secretKey,omitempty"`
}

GenerateCredentialsOKBody A response with new credentials swagger:model GenerateCredentialsOKBody

func (*GenerateCredentialsOKBody) MarshalBinary

func (o *GenerateCredentialsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenerateCredentialsOKBody) UnmarshalBinary

func (o *GenerateCredentialsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenerateCredentialsOKBody) Validate

func (o *GenerateCredentialsOKBody) Validate(formats strfmt.Registry) error

Validate validates this generate credentials o k body

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 values initialized.

func NewGenerateCredentialsParamsWithContext

func NewGenerateCredentialsParamsWithContext(ctx context.Context) *GenerateCredentialsParams

NewGenerateCredentialsParamsWithContext creates a new GenerateCredentialsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 GetCredentialsDefault

type GetCredentialsDefault struct {
	Payload *GetCredentialsDefaultBody
	// contains filtered or unexported fields
}

GetCredentialsDefault handles this case 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 GetCredentialsDefaultBody

type GetCredentialsDefaultBody struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

GetCredentialsDefaultBody get credentials default body swagger:model GetCredentialsDefaultBody

func (*GetCredentialsDefaultBody) MarshalBinary

func (o *GetCredentialsDefaultBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCredentialsDefaultBody) UnmarshalBinary

func (o *GetCredentialsDefaultBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCredentialsDefaultBody) Validate

func (o *GetCredentialsDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this get credentials default body

type GetCredentialsOK

type GetCredentialsOK struct {
	Payload *GetCredentialsOKBody
}

GetCredentialsOK handles this case 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

func (o *GetCredentialsOK) GetPayload() *GetCredentialsOKBody

type GetCredentialsOKBody

type GetCredentialsOKBody struct {

	// The list of active credentials on account
	Credentials []*CredentialsItems0 `json:"credentials"`
}

GetCredentialsOKBody A response with new credentials swagger:model GetCredentialsOKBody

func (*GetCredentialsOKBody) MarshalBinary

func (o *GetCredentialsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCredentialsOKBody) UnmarshalBinary

func (o *GetCredentialsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCredentialsOKBody) Validate

func (o *GetCredentialsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get credentials o k body

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 values initialized.

func NewGetCredentialsParamsWithContext

func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams

NewGetCredentialsParamsWithContext creates a new GetCredentialsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.

Jump to

Keyboard shortcuts

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