secrets

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 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) DeleteSecrets added in v1.1.0

func (a *Client) DeleteSecrets(params *DeleteSecretsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSecretsOK, error)

DeleteSecrets delete secrets API

func (*Client) PostSecrets added in v1.1.0

func (a *Client) PostSecrets(params *PostSecretsParams, authInfo runtime.ClientAuthInfoWriter) (*PostSecretsOK, error)

PostSecrets post secrets API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteSecrets(params *DeleteSecretsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSecretsOK, error)

	PostSecrets(params *PostSecretsParams, authInfo runtime.ClientAuthInfoWriter) (*PostSecretsOK, 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 DeleteOK

type DeleteOK struct {
	Payload bool
}

DeleteOK handles this case with default header values.

Success

func NewDeleteOK

func NewDeleteOK() *DeleteOK

NewDeleteOK creates a DeleteOK with default headers values

func (*DeleteOK) Error

func (o *DeleteOK) Error() string

func (*DeleteOK) GetPayload

func (o *DeleteOK) GetPayload() bool

type DeleteParams

type DeleteParams struct {

	/*ClientID*/
	ClientID *string
	/*SecretID*/
	SecretID *int32

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

DeleteParams contains all the parameters to send to the API endpoint for the delete operation typically these are written to a http.Request

func NewDeleteParams

func NewDeleteParams() *DeleteParams

NewDeleteParams creates a new DeleteParams object with the default values initialized.

func NewDeleteParamsWithContext

func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams

NewDeleteParamsWithContext creates a new DeleteParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteParamsWithHTTPClient

func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams

NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteParamsWithTimeout

func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams

NewDeleteParamsWithTimeout creates a new DeleteParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteParams) SetClientID

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

SetClientID adds the clientId to the delete params

func (*DeleteParams) SetContext

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

SetContext adds the context to the delete params

func (*DeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) SetSecretID

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

SetSecretID adds the secretId to the delete params

func (*DeleteParams) SetTimeout

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

SetTimeout adds the timeout to the delete params

func (*DeleteParams) WithClientID

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

WithClientID adds the clientID to the delete params

func (*DeleteParams) WithContext

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

WithContext adds the context to the delete params

func (*DeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) WithSecretID

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

WithSecretID adds the secretID to the delete params

func (*DeleteParams) WithTimeout

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

WithTimeout adds the timeout to the delete params

func (*DeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteReader

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

DeleteReader is a Reader for the Delete structure.

func (*DeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSecretsOK added in v1.1.0

type DeleteSecretsOK struct {
	Payload bool
}

DeleteSecretsOK handles this case with default header values.

Success

func NewDeleteSecretsOK added in v1.1.0

func NewDeleteSecretsOK() *DeleteSecretsOK

NewDeleteSecretsOK creates a DeleteSecretsOK with default headers values

func (*DeleteSecretsOK) Error added in v1.1.0

func (o *DeleteSecretsOK) Error() string

func (*DeleteSecretsOK) GetPayload added in v1.1.0

func (o *DeleteSecretsOK) GetPayload() bool

type DeleteSecretsParams added in v1.1.0

type DeleteSecretsParams struct {

	/*ClientID*/
	ClientID *string
	/*SecretID*/
	SecretID *int32

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

DeleteSecretsParams contains all the parameters to send to the API endpoint for the delete secrets operation typically these are written to a http.Request

func NewDeleteSecretsParams added in v1.1.0

func NewDeleteSecretsParams() *DeleteSecretsParams

NewDeleteSecretsParams creates a new DeleteSecretsParams object with the default values initialized.

func NewDeleteSecretsParamsWithContext added in v1.1.0

func NewDeleteSecretsParamsWithContext(ctx context.Context) *DeleteSecretsParams

NewDeleteSecretsParamsWithContext creates a new DeleteSecretsParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteSecretsParamsWithHTTPClient added in v1.1.0

func NewDeleteSecretsParamsWithHTTPClient(client *http.Client) *DeleteSecretsParams

NewDeleteSecretsParamsWithHTTPClient creates a new DeleteSecretsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteSecretsParamsWithTimeout added in v1.1.0

func NewDeleteSecretsParamsWithTimeout(timeout time.Duration) *DeleteSecretsParams

NewDeleteSecretsParamsWithTimeout creates a new DeleteSecretsParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteSecretsParams) SetClientID added in v1.1.0

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

SetClientID adds the clientId to the delete secrets params

func (*DeleteSecretsParams) SetContext added in v1.1.0

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

SetContext adds the context to the delete secrets params

func (*DeleteSecretsParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the delete secrets params

func (*DeleteSecretsParams) SetSecretID added in v1.1.0

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

SetSecretID adds the secretId to the delete secrets params

func (*DeleteSecretsParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the delete secrets params

func (*DeleteSecretsParams) WithClientID added in v1.1.0

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

WithClientID adds the clientID to the delete secrets params

func (*DeleteSecretsParams) WithContext added in v1.1.0

WithContext adds the context to the delete secrets params

func (*DeleteSecretsParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the delete secrets params

func (*DeleteSecretsParams) WithSecretID added in v1.1.0

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

WithSecretID adds the secretID to the delete secrets params

func (*DeleteSecretsParams) WithTimeout added in v1.1.0

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

WithTimeout adds the timeout to the delete secrets params

func (*DeleteSecretsParams) WriteToRequest added in v1.1.0

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

WriteToRequest writes these params to a swagger request

type DeleteSecretsReader added in v1.1.0

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

DeleteSecretsReader is a Reader for the DeleteSecrets structure.

func (*DeleteSecretsReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type PostSecretsOK added in v1.1.0

type PostSecretsOK struct {
	Payload *models.Secret
}

PostSecretsOK handles this case with default header values.

Success

func NewPostSecretsOK added in v1.1.0

func NewPostSecretsOK() *PostSecretsOK

NewPostSecretsOK creates a PostSecretsOK with default headers values

func (*PostSecretsOK) Error added in v1.1.0

func (o *PostSecretsOK) Error() string

func (*PostSecretsOK) GetPayload added in v1.1.0

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

type PostSecretsParams added in v1.1.0

type PostSecretsParams struct {

	/*Secret*/
	Secret *models.Secret

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

PostSecretsParams contains all the parameters to send to the API endpoint for the post secrets operation typically these are written to a http.Request

func NewPostSecretsParams added in v1.1.0

func NewPostSecretsParams() *PostSecretsParams

NewPostSecretsParams creates a new PostSecretsParams object with the default values initialized.

func NewPostSecretsParamsWithContext added in v1.1.0

func NewPostSecretsParamsWithContext(ctx context.Context) *PostSecretsParams

NewPostSecretsParamsWithContext creates a new PostSecretsParams object with the default values initialized, and the ability to set a context for a request

func NewPostSecretsParamsWithHTTPClient added in v1.1.0

func NewPostSecretsParamsWithHTTPClient(client *http.Client) *PostSecretsParams

NewPostSecretsParamsWithHTTPClient creates a new PostSecretsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostSecretsParamsWithTimeout added in v1.1.0

func NewPostSecretsParamsWithTimeout(timeout time.Duration) *PostSecretsParams

NewPostSecretsParamsWithTimeout creates a new PostSecretsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostSecretsParams) SetContext added in v1.1.0

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

SetContext adds the context to the post secrets params

func (*PostSecretsParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the post secrets params

func (*PostSecretsParams) SetSecret added in v1.1.0

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

SetSecret adds the secret to the post secrets params

func (*PostSecretsParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the post secrets params

func (*PostSecretsParams) WithContext added in v1.1.0

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

WithContext adds the context to the post secrets params

func (*PostSecretsParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the post secrets params

func (*PostSecretsParams) WithSecret added in v1.1.0

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

WithSecret adds the secret to the post secrets params

func (*PostSecretsParams) WithTimeout added in v1.1.0

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

WithTimeout adds the timeout to the post secrets params

func (*PostSecretsParams) WriteToRequest added in v1.1.0

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

WriteToRequest writes these params to a swagger request

type PostSecretsReader added in v1.1.0

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

PostSecretsReader is a Reader for the PostSecrets structure.

func (*PostSecretsReader) ReadResponse added in v1.1.0

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