secrets

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-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 secrets API

func (*Client) DeleteSecret

func (a *Client) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretOK, error)

DeleteSecret delete secret API

func (*Client) PostSecret

func (a *Client) PostSecret(params *PostSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSecretOK, error)

PostSecret post secret API

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 {
	DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretOK, error)

	PostSecret(params *PostSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSecretOK, 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 secrets API client.

type DeleteSecretOK

type DeleteSecretOK struct {
	Payload bool
}
DeleteSecretOK describes a response with status code 200, with default header values.

Success

func NewDeleteSecretOK

func NewDeleteSecretOK() *DeleteSecretOK

NewDeleteSecretOK creates a DeleteSecretOK with default headers values

func (*DeleteSecretOK) Error

func (o *DeleteSecretOK) Error() string

func (*DeleteSecretOK) GetPayload

func (o *DeleteSecretOK) GetPayload() bool

type DeleteSecretParams

type DeleteSecretParams struct {

	// ClientID.
	ClientID *string

	// SecretID.
	//
	// Format: int32
	SecretID *int32

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

DeleteSecretParams contains all the parameters to send to the API endpoint

for the delete secret operation.

Typically these are written to a http.Request.

func NewDeleteSecretParams

func NewDeleteSecretParams() *DeleteSecretParams

NewDeleteSecretParams creates a new DeleteSecretParams 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 NewDeleteSecretParamsWithContext

func NewDeleteSecretParamsWithContext(ctx context.Context) *DeleteSecretParams

NewDeleteSecretParamsWithContext creates a new DeleteSecretParams object with the ability to set a context for a request.

func NewDeleteSecretParamsWithHTTPClient

func NewDeleteSecretParamsWithHTTPClient(client *http.Client) *DeleteSecretParams

NewDeleteSecretParamsWithHTTPClient creates a new DeleteSecretParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSecretParamsWithTimeout

func NewDeleteSecretParamsWithTimeout(timeout time.Duration) *DeleteSecretParams

NewDeleteSecretParamsWithTimeout creates a new DeleteSecretParams object with the ability to set a timeout on a request.

func (*DeleteSecretParams) SetClientID

func (o *DeleteSecretParams) SetClientID(clientID *string)

SetClientID adds the clientId to the delete secret params

func (*DeleteSecretParams) SetContext

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

SetContext adds the context to the delete secret params

func (*DeleteSecretParams) SetDefaults

func (o *DeleteSecretParams) SetDefaults()

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

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

func (*DeleteSecretParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete secret params

func (*DeleteSecretParams) SetSecretID

func (o *DeleteSecretParams) SetSecretID(secretID *int32)

SetSecretID adds the secretId to the delete secret params

func (*DeleteSecretParams) SetTimeout

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

SetTimeout adds the timeout to the delete secret params

func (*DeleteSecretParams) WithClientID

func (o *DeleteSecretParams) WithClientID(clientID *string) *DeleteSecretParams

WithClientID adds the clientID to the delete secret params

func (*DeleteSecretParams) WithContext

WithContext adds the context to the delete secret params

func (*DeleteSecretParams) WithDefaults

func (o *DeleteSecretParams) WithDefaults() *DeleteSecretParams

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

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

func (*DeleteSecretParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete secret params

func (*DeleteSecretParams) WithSecretID

func (o *DeleteSecretParams) WithSecretID(secretID *int32) *DeleteSecretParams

WithSecretID adds the secretID to the delete secret params

func (*DeleteSecretParams) WithTimeout

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

WithTimeout adds the timeout to the delete secret params

func (*DeleteSecretParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteSecretReader

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

DeleteSecretReader is a Reader for the DeleteSecret structure.

func (*DeleteSecretReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostSecretOK

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

Success

func NewPostSecretOK

func NewPostSecretOK() *PostSecretOK

NewPostSecretOK creates a PostSecretOK with default headers values

func (*PostSecretOK) Error

func (o *PostSecretOK) Error() string

func (*PostSecretOK) GetPayload

func (o *PostSecretOK) GetPayload() *models.Secret

type PostSecretParams

type PostSecretParams struct {

	// Secret.
	Secret *models.Secret

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

PostSecretParams contains all the parameters to send to the API endpoint

for the post secret operation.

Typically these are written to a http.Request.

func NewPostSecretParams

func NewPostSecretParams() *PostSecretParams

NewPostSecretParams creates a new PostSecretParams 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 NewPostSecretParamsWithContext

func NewPostSecretParamsWithContext(ctx context.Context) *PostSecretParams

NewPostSecretParamsWithContext creates a new PostSecretParams object with the ability to set a context for a request.

func NewPostSecretParamsWithHTTPClient

func NewPostSecretParamsWithHTTPClient(client *http.Client) *PostSecretParams

NewPostSecretParamsWithHTTPClient creates a new PostSecretParams object with the ability to set a custom HTTPClient for a request.

func NewPostSecretParamsWithTimeout

func NewPostSecretParamsWithTimeout(timeout time.Duration) *PostSecretParams

NewPostSecretParamsWithTimeout creates a new PostSecretParams object with the ability to set a timeout on a request.

func (*PostSecretParams) SetContext

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

SetContext adds the context to the post secret params

func (*PostSecretParams) SetDefaults

func (o *PostSecretParams) SetDefaults()

SetDefaults hydrates default values in the post secret params (not the query body).

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

func (*PostSecretParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post secret params

func (*PostSecretParams) SetSecret

func (o *PostSecretParams) SetSecret(secret *models.Secret)

SetSecret adds the secret to the post secret params

func (*PostSecretParams) SetTimeout

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

SetTimeout adds the timeout to the post secret params

func (*PostSecretParams) WithContext

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

WithContext adds the context to the post secret params

func (*PostSecretParams) WithDefaults

func (o *PostSecretParams) WithDefaults() *PostSecretParams

WithDefaults hydrates default values in the post secret params (not the query body).

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

func (*PostSecretParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post secret params

func (*PostSecretParams) WithSecret

func (o *PostSecretParams) WithSecret(secret *models.Secret) *PostSecretParams

WithSecret adds the secret to the post secret params

func (*PostSecretParams) WithTimeout

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

WithTimeout adds the timeout to the post secret params

func (*PostSecretParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostSecretReader

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

PostSecretReader is a Reader for the PostSecret structure.

func (*PostSecretReader) ReadResponse

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