secrets

package
v0.3.1-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT 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) DeleteSecretsName

func (a *Client) DeleteSecretsName(params *DeleteSecretsNameParams, opts ...ClientOption) (*DeleteSecretsNameOK, error)

DeleteSecretsName deletes secret

Permanently deletes a Podman secret. This action cannot be undone. Secrets currently in use by running containers may cause those containers to fail.

func (*Client) GetSecrets

func (a *Client) GetSecrets(params *GetSecretsParams, opts ...ClientOption) (*GetSecretsOK, error)

GetSecrets lists secrets

Returns metadata for all available Podman secrets that can be injected into agents. Secret values are never returned - only IDs, names, and creation times.

func (*Client) GetSecretsName

func (a *Client) GetSecretsName(params *GetSecretsNameParams, opts ...ClientOption) (*GetSecretsNameOK, error)

GetSecretsName gets secret metadata

Returns metadata about a specific Podman secret. For security, the actual secret value is never returned - only the ID, name, and creation time.

func (*Client) PostSecrets

func (a *Client) PostSecrets(params *PostSecretsParams, opts ...ClientOption) (*PostSecretsCreated, error)

PostSecrets creates secret

Creates a new Podman secret that can be injected into agents. Secret names must be alphanumeric (with dashes and underscores), max 253 characters. Values are limited to 1MB.

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	DeleteSecretsName(params *DeleteSecretsNameParams, opts ...ClientOption) (*DeleteSecretsNameOK, error)

	GetSecrets(params *GetSecretsParams, opts ...ClientOption) (*GetSecretsOK, error)

	GetSecretsName(params *GetSecretsNameParams, opts ...ClientOption) (*GetSecretsNameOK, error)

	PostSecrets(params *PostSecretsParams, opts ...ClientOption) (*PostSecretsCreated, 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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new secrets API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new secrets API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type DeleteSecretsNameBadRequest

type DeleteSecretsNameBadRequest struct {
	Payload *models.DeleteSecretResponse
}

DeleteSecretsNameBadRequest describes a response with status code 400, with default header values.

Invalid secret name

func NewDeleteSecretsNameBadRequest

func NewDeleteSecretsNameBadRequest() *DeleteSecretsNameBadRequest

NewDeleteSecretsNameBadRequest creates a DeleteSecretsNameBadRequest with default headers values

func (*DeleteSecretsNameBadRequest) Code

func (o *DeleteSecretsNameBadRequest) Code() int

Code gets the status code for the delete secrets name bad request response

func (*DeleteSecretsNameBadRequest) Error

func (*DeleteSecretsNameBadRequest) GetPayload

func (*DeleteSecretsNameBadRequest) IsClientError

func (o *DeleteSecretsNameBadRequest) IsClientError() bool

IsClientError returns true when this delete secrets name bad request response has a 4xx status code

func (*DeleteSecretsNameBadRequest) IsCode

func (o *DeleteSecretsNameBadRequest) IsCode(code int) bool

IsCode returns true when this delete secrets name bad request response a status code equal to that given

func (*DeleteSecretsNameBadRequest) IsRedirect

func (o *DeleteSecretsNameBadRequest) IsRedirect() bool

IsRedirect returns true when this delete secrets name bad request response has a 3xx status code

func (*DeleteSecretsNameBadRequest) IsServerError

func (o *DeleteSecretsNameBadRequest) IsServerError() bool

IsServerError returns true when this delete secrets name bad request response has a 5xx status code

func (*DeleteSecretsNameBadRequest) IsSuccess

func (o *DeleteSecretsNameBadRequest) IsSuccess() bool

IsSuccess returns true when this delete secrets name bad request response has a 2xx status code

func (*DeleteSecretsNameBadRequest) String

func (o *DeleteSecretsNameBadRequest) String() string

type DeleteSecretsNameInternalServerError

type DeleteSecretsNameInternalServerError struct {
	Payload *models.DeleteSecretResponse
}

DeleteSecretsNameInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewDeleteSecretsNameInternalServerError

func NewDeleteSecretsNameInternalServerError() *DeleteSecretsNameInternalServerError

NewDeleteSecretsNameInternalServerError creates a DeleteSecretsNameInternalServerError with default headers values

func (*DeleteSecretsNameInternalServerError) Code

Code gets the status code for the delete secrets name internal server error response

func (*DeleteSecretsNameInternalServerError) Error

func (*DeleteSecretsNameInternalServerError) GetPayload

func (*DeleteSecretsNameInternalServerError) IsClientError

func (o *DeleteSecretsNameInternalServerError) IsClientError() bool

IsClientError returns true when this delete secrets name internal server error response has a 4xx status code

func (*DeleteSecretsNameInternalServerError) IsCode

IsCode returns true when this delete secrets name internal server error response a status code equal to that given

func (*DeleteSecretsNameInternalServerError) IsRedirect

IsRedirect returns true when this delete secrets name internal server error response has a 3xx status code

func (*DeleteSecretsNameInternalServerError) IsServerError

func (o *DeleteSecretsNameInternalServerError) IsServerError() bool

IsServerError returns true when this delete secrets name internal server error response has a 5xx status code

func (*DeleteSecretsNameInternalServerError) IsSuccess

IsSuccess returns true when this delete secrets name internal server error response has a 2xx status code

func (*DeleteSecretsNameInternalServerError) String

type DeleteSecretsNameNotFound

type DeleteSecretsNameNotFound struct {
	Payload *models.DeleteSecretResponse
}

DeleteSecretsNameNotFound describes a response with status code 404, with default header values.

Secret not found

func NewDeleteSecretsNameNotFound

func NewDeleteSecretsNameNotFound() *DeleteSecretsNameNotFound

NewDeleteSecretsNameNotFound creates a DeleteSecretsNameNotFound with default headers values

func (*DeleteSecretsNameNotFound) Code

func (o *DeleteSecretsNameNotFound) Code() int

Code gets the status code for the delete secrets name not found response

func (*DeleteSecretsNameNotFound) Error

func (o *DeleteSecretsNameNotFound) Error() string

func (*DeleteSecretsNameNotFound) GetPayload

func (*DeleteSecretsNameNotFound) IsClientError

func (o *DeleteSecretsNameNotFound) IsClientError() bool

IsClientError returns true when this delete secrets name not found response has a 4xx status code

func (*DeleteSecretsNameNotFound) IsCode

func (o *DeleteSecretsNameNotFound) IsCode(code int) bool

IsCode returns true when this delete secrets name not found response a status code equal to that given

func (*DeleteSecretsNameNotFound) IsRedirect

func (o *DeleteSecretsNameNotFound) IsRedirect() bool

IsRedirect returns true when this delete secrets name not found response has a 3xx status code

func (*DeleteSecretsNameNotFound) IsServerError

func (o *DeleteSecretsNameNotFound) IsServerError() bool

IsServerError returns true when this delete secrets name not found response has a 5xx status code

func (*DeleteSecretsNameNotFound) IsSuccess

func (o *DeleteSecretsNameNotFound) IsSuccess() bool

IsSuccess returns true when this delete secrets name not found response has a 2xx status code

func (*DeleteSecretsNameNotFound) String

func (o *DeleteSecretsNameNotFound) String() string

type DeleteSecretsNameOK

type DeleteSecretsNameOK struct {
	Payload *models.DeleteSecretResponse
}

DeleteSecretsNameOK describes a response with status code 200, with default header values.

Secret deleted successfully

func NewDeleteSecretsNameOK

func NewDeleteSecretsNameOK() *DeleteSecretsNameOK

NewDeleteSecretsNameOK creates a DeleteSecretsNameOK with default headers values

func (*DeleteSecretsNameOK) Code

func (o *DeleteSecretsNameOK) Code() int

Code gets the status code for the delete secrets name o k response

func (*DeleteSecretsNameOK) Error

func (o *DeleteSecretsNameOK) Error() string

func (*DeleteSecretsNameOK) GetPayload

func (*DeleteSecretsNameOK) IsClientError

func (o *DeleteSecretsNameOK) IsClientError() bool

IsClientError returns true when this delete secrets name o k response has a 4xx status code

func (*DeleteSecretsNameOK) IsCode

func (o *DeleteSecretsNameOK) IsCode(code int) bool

IsCode returns true when this delete secrets name o k response a status code equal to that given

func (*DeleteSecretsNameOK) IsRedirect

func (o *DeleteSecretsNameOK) IsRedirect() bool

IsRedirect returns true when this delete secrets name o k response has a 3xx status code

func (*DeleteSecretsNameOK) IsServerError

func (o *DeleteSecretsNameOK) IsServerError() bool

IsServerError returns true when this delete secrets name o k response has a 5xx status code

func (*DeleteSecretsNameOK) IsSuccess

func (o *DeleteSecretsNameOK) IsSuccess() bool

IsSuccess returns true when this delete secrets name o k response has a 2xx status code

func (*DeleteSecretsNameOK) String

func (o *DeleteSecretsNameOK) String() string

type DeleteSecretsNameParams

type DeleteSecretsNameParams struct {

	/* Name.

	   Secret name
	*/
	Name string

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

DeleteSecretsNameParams contains all the parameters to send to the API endpoint

for the delete secrets name operation.

Typically these are written to a http.Request.

func NewDeleteSecretsNameParams

func NewDeleteSecretsNameParams() *DeleteSecretsNameParams

NewDeleteSecretsNameParams creates a new DeleteSecretsNameParams 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 NewDeleteSecretsNameParamsWithContext

func NewDeleteSecretsNameParamsWithContext(ctx context.Context) *DeleteSecretsNameParams

NewDeleteSecretsNameParamsWithContext creates a new DeleteSecretsNameParams object with the ability to set a context for a request.

func NewDeleteSecretsNameParamsWithHTTPClient

func NewDeleteSecretsNameParamsWithHTTPClient(client *http.Client) *DeleteSecretsNameParams

NewDeleteSecretsNameParamsWithHTTPClient creates a new DeleteSecretsNameParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSecretsNameParamsWithTimeout

func NewDeleteSecretsNameParamsWithTimeout(timeout time.Duration) *DeleteSecretsNameParams

NewDeleteSecretsNameParamsWithTimeout creates a new DeleteSecretsNameParams object with the ability to set a timeout on a request.

func (*DeleteSecretsNameParams) SetContext

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

SetContext adds the context to the delete secrets name params

func (*DeleteSecretsNameParams) SetDefaults

func (o *DeleteSecretsNameParams) SetDefaults()

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

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

func (*DeleteSecretsNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete secrets name params

func (*DeleteSecretsNameParams) SetName

func (o *DeleteSecretsNameParams) SetName(name string)

SetName adds the name to the delete secrets name params

func (*DeleteSecretsNameParams) SetTimeout

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

SetTimeout adds the timeout to the delete secrets name params

func (*DeleteSecretsNameParams) WithContext

WithContext adds the context to the delete secrets name params

func (*DeleteSecretsNameParams) WithDefaults

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

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

func (*DeleteSecretsNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete secrets name params

func (*DeleteSecretsNameParams) WithName

WithName adds the name to the delete secrets name params

func (*DeleteSecretsNameParams) WithTimeout

WithTimeout adds the timeout to the delete secrets name params

func (*DeleteSecretsNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSecretsNameReader

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

DeleteSecretsNameReader is a Reader for the DeleteSecretsName structure.

func (*DeleteSecretsNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSecretsInternalServerError

type GetSecretsInternalServerError struct {
	Payload *models.SecretsListResponse
}

GetSecretsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSecretsInternalServerError

func NewGetSecretsInternalServerError() *GetSecretsInternalServerError

NewGetSecretsInternalServerError creates a GetSecretsInternalServerError with default headers values

func (*GetSecretsInternalServerError) Code

Code gets the status code for the get secrets internal server error response

func (*GetSecretsInternalServerError) Error

func (*GetSecretsInternalServerError) GetPayload

func (*GetSecretsInternalServerError) IsClientError

func (o *GetSecretsInternalServerError) IsClientError() bool

IsClientError returns true when this get secrets internal server error response has a 4xx status code

func (*GetSecretsInternalServerError) IsCode

func (o *GetSecretsInternalServerError) IsCode(code int) bool

IsCode returns true when this get secrets internal server error response a status code equal to that given

func (*GetSecretsInternalServerError) IsRedirect

func (o *GetSecretsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get secrets internal server error response has a 3xx status code

func (*GetSecretsInternalServerError) IsServerError

func (o *GetSecretsInternalServerError) IsServerError() bool

IsServerError returns true when this get secrets internal server error response has a 5xx status code

func (*GetSecretsInternalServerError) IsSuccess

func (o *GetSecretsInternalServerError) IsSuccess() bool

IsSuccess returns true when this get secrets internal server error response has a 2xx status code

func (*GetSecretsInternalServerError) String

type GetSecretsNameBadRequest

type GetSecretsNameBadRequest struct {
	Payload *models.ErrorResponse
}

GetSecretsNameBadRequest describes a response with status code 400, with default header values.

Invalid secret name

func NewGetSecretsNameBadRequest

func NewGetSecretsNameBadRequest() *GetSecretsNameBadRequest

NewGetSecretsNameBadRequest creates a GetSecretsNameBadRequest with default headers values

func (*GetSecretsNameBadRequest) Code

func (o *GetSecretsNameBadRequest) Code() int

Code gets the status code for the get secrets name bad request response

func (*GetSecretsNameBadRequest) Error

func (o *GetSecretsNameBadRequest) Error() string

func (*GetSecretsNameBadRequest) GetPayload

func (*GetSecretsNameBadRequest) IsClientError

func (o *GetSecretsNameBadRequest) IsClientError() bool

IsClientError returns true when this get secrets name bad request response has a 4xx status code

func (*GetSecretsNameBadRequest) IsCode

func (o *GetSecretsNameBadRequest) IsCode(code int) bool

IsCode returns true when this get secrets name bad request response a status code equal to that given

func (*GetSecretsNameBadRequest) IsRedirect

func (o *GetSecretsNameBadRequest) IsRedirect() bool

IsRedirect returns true when this get secrets name bad request response has a 3xx status code

func (*GetSecretsNameBadRequest) IsServerError

func (o *GetSecretsNameBadRequest) IsServerError() bool

IsServerError returns true when this get secrets name bad request response has a 5xx status code

func (*GetSecretsNameBadRequest) IsSuccess

func (o *GetSecretsNameBadRequest) IsSuccess() bool

IsSuccess returns true when this get secrets name bad request response has a 2xx status code

func (*GetSecretsNameBadRequest) String

func (o *GetSecretsNameBadRequest) String() string

type GetSecretsNameInternalServerError

type GetSecretsNameInternalServerError struct {
	Payload *models.ErrorResponse
}

GetSecretsNameInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSecretsNameInternalServerError

func NewGetSecretsNameInternalServerError() *GetSecretsNameInternalServerError

NewGetSecretsNameInternalServerError creates a GetSecretsNameInternalServerError with default headers values

func (*GetSecretsNameInternalServerError) Code

Code gets the status code for the get secrets name internal server error response

func (*GetSecretsNameInternalServerError) Error

func (*GetSecretsNameInternalServerError) GetPayload

func (*GetSecretsNameInternalServerError) IsClientError

func (o *GetSecretsNameInternalServerError) IsClientError() bool

IsClientError returns true when this get secrets name internal server error response has a 4xx status code

func (*GetSecretsNameInternalServerError) IsCode

func (o *GetSecretsNameInternalServerError) IsCode(code int) bool

IsCode returns true when this get secrets name internal server error response a status code equal to that given

func (*GetSecretsNameInternalServerError) IsRedirect

func (o *GetSecretsNameInternalServerError) IsRedirect() bool

IsRedirect returns true when this get secrets name internal server error response has a 3xx status code

func (*GetSecretsNameInternalServerError) IsServerError

func (o *GetSecretsNameInternalServerError) IsServerError() bool

IsServerError returns true when this get secrets name internal server error response has a 5xx status code

func (*GetSecretsNameInternalServerError) IsSuccess

func (o *GetSecretsNameInternalServerError) IsSuccess() bool

IsSuccess returns true when this get secrets name internal server error response has a 2xx status code

func (*GetSecretsNameInternalServerError) String

type GetSecretsNameNotFound

type GetSecretsNameNotFound struct {
	Payload *models.ErrorResponse
}

GetSecretsNameNotFound describes a response with status code 404, with default header values.

Secret not found

func NewGetSecretsNameNotFound

func NewGetSecretsNameNotFound() *GetSecretsNameNotFound

NewGetSecretsNameNotFound creates a GetSecretsNameNotFound with default headers values

func (*GetSecretsNameNotFound) Code

func (o *GetSecretsNameNotFound) Code() int

Code gets the status code for the get secrets name not found response

func (*GetSecretsNameNotFound) Error

func (o *GetSecretsNameNotFound) Error() string

func (*GetSecretsNameNotFound) GetPayload

func (o *GetSecretsNameNotFound) GetPayload() *models.ErrorResponse

func (*GetSecretsNameNotFound) IsClientError

func (o *GetSecretsNameNotFound) IsClientError() bool

IsClientError returns true when this get secrets name not found response has a 4xx status code

func (*GetSecretsNameNotFound) IsCode

func (o *GetSecretsNameNotFound) IsCode(code int) bool

IsCode returns true when this get secrets name not found response a status code equal to that given

func (*GetSecretsNameNotFound) IsRedirect

func (o *GetSecretsNameNotFound) IsRedirect() bool

IsRedirect returns true when this get secrets name not found response has a 3xx status code

func (*GetSecretsNameNotFound) IsServerError

func (o *GetSecretsNameNotFound) IsServerError() bool

IsServerError returns true when this get secrets name not found response has a 5xx status code

func (*GetSecretsNameNotFound) IsSuccess

func (o *GetSecretsNameNotFound) IsSuccess() bool

IsSuccess returns true when this get secrets name not found response has a 2xx status code

func (*GetSecretsNameNotFound) String

func (o *GetSecretsNameNotFound) String() string

type GetSecretsNameOK

type GetSecretsNameOK struct {
	Payload *models.SecretInfoResponse
}

GetSecretsNameOK describes a response with status code 200, with default header values.

Secret metadata

func NewGetSecretsNameOK

func NewGetSecretsNameOK() *GetSecretsNameOK

NewGetSecretsNameOK creates a GetSecretsNameOK with default headers values

func (*GetSecretsNameOK) Code

func (o *GetSecretsNameOK) Code() int

Code gets the status code for the get secrets name o k response

func (*GetSecretsNameOK) Error

func (o *GetSecretsNameOK) Error() string

func (*GetSecretsNameOK) GetPayload

func (o *GetSecretsNameOK) GetPayload() *models.SecretInfoResponse

func (*GetSecretsNameOK) IsClientError

func (o *GetSecretsNameOK) IsClientError() bool

IsClientError returns true when this get secrets name o k response has a 4xx status code

func (*GetSecretsNameOK) IsCode

func (o *GetSecretsNameOK) IsCode(code int) bool

IsCode returns true when this get secrets name o k response a status code equal to that given

func (*GetSecretsNameOK) IsRedirect

func (o *GetSecretsNameOK) IsRedirect() bool

IsRedirect returns true when this get secrets name o k response has a 3xx status code

func (*GetSecretsNameOK) IsServerError

func (o *GetSecretsNameOK) IsServerError() bool

IsServerError returns true when this get secrets name o k response has a 5xx status code

func (*GetSecretsNameOK) IsSuccess

func (o *GetSecretsNameOK) IsSuccess() bool

IsSuccess returns true when this get secrets name o k response has a 2xx status code

func (*GetSecretsNameOK) String

func (o *GetSecretsNameOK) String() string

type GetSecretsNameParams

type GetSecretsNameParams struct {

	/* Name.

	   Secret name
	*/
	Name string

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

GetSecretsNameParams contains all the parameters to send to the API endpoint

for the get secrets name operation.

Typically these are written to a http.Request.

func NewGetSecretsNameParams

func NewGetSecretsNameParams() *GetSecretsNameParams

NewGetSecretsNameParams creates a new GetSecretsNameParams 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 NewGetSecretsNameParamsWithContext

func NewGetSecretsNameParamsWithContext(ctx context.Context) *GetSecretsNameParams

NewGetSecretsNameParamsWithContext creates a new GetSecretsNameParams object with the ability to set a context for a request.

func NewGetSecretsNameParamsWithHTTPClient

func NewGetSecretsNameParamsWithHTTPClient(client *http.Client) *GetSecretsNameParams

NewGetSecretsNameParamsWithHTTPClient creates a new GetSecretsNameParams object with the ability to set a custom HTTPClient for a request.

func NewGetSecretsNameParamsWithTimeout

func NewGetSecretsNameParamsWithTimeout(timeout time.Duration) *GetSecretsNameParams

NewGetSecretsNameParamsWithTimeout creates a new GetSecretsNameParams object with the ability to set a timeout on a request.

func (*GetSecretsNameParams) SetContext

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

SetContext adds the context to the get secrets name params

func (*GetSecretsNameParams) SetDefaults

func (o *GetSecretsNameParams) SetDefaults()

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

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

func (*GetSecretsNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get secrets name params

func (*GetSecretsNameParams) SetName

func (o *GetSecretsNameParams) SetName(name string)

SetName adds the name to the get secrets name params

func (*GetSecretsNameParams) SetTimeout

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

SetTimeout adds the timeout to the get secrets name params

func (*GetSecretsNameParams) WithContext

WithContext adds the context to the get secrets name params

func (*GetSecretsNameParams) WithDefaults

func (o *GetSecretsNameParams) WithDefaults() *GetSecretsNameParams

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

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

func (*GetSecretsNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get secrets name params

func (*GetSecretsNameParams) WithName

WithName adds the name to the get secrets name params

func (*GetSecretsNameParams) WithTimeout

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

WithTimeout adds the timeout to the get secrets name params

func (*GetSecretsNameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSecretsNameReader

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

GetSecretsNameReader is a Reader for the GetSecretsName structure.

func (*GetSecretsNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSecretsOK

type GetSecretsOK struct {
	Payload *models.SecretsListResponse
}

GetSecretsOK describes a response with status code 200, with default header values.

List of secrets (empty array if none exist)

func NewGetSecretsOK

func NewGetSecretsOK() *GetSecretsOK

NewGetSecretsOK creates a GetSecretsOK with default headers values

func (*GetSecretsOK) Code

func (o *GetSecretsOK) Code() int

Code gets the status code for the get secrets o k response

func (*GetSecretsOK) Error

func (o *GetSecretsOK) Error() string

func (*GetSecretsOK) GetPayload

func (o *GetSecretsOK) GetPayload() *models.SecretsListResponse

func (*GetSecretsOK) IsClientError

func (o *GetSecretsOK) IsClientError() bool

IsClientError returns true when this get secrets o k response has a 4xx status code

func (*GetSecretsOK) IsCode

func (o *GetSecretsOK) IsCode(code int) bool

IsCode returns true when this get secrets o k response a status code equal to that given

func (*GetSecretsOK) IsRedirect

func (o *GetSecretsOK) IsRedirect() bool

IsRedirect returns true when this get secrets o k response has a 3xx status code

func (*GetSecretsOK) IsServerError

func (o *GetSecretsOK) IsServerError() bool

IsServerError returns true when this get secrets o k response has a 5xx status code

func (*GetSecretsOK) IsSuccess

func (o *GetSecretsOK) IsSuccess() bool

IsSuccess returns true when this get secrets o k response has a 2xx status code

func (*GetSecretsOK) String

func (o *GetSecretsOK) String() string

type GetSecretsParams

type GetSecretsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSecretsParams contains all the parameters to send to the API endpoint

for the get secrets operation.

Typically these are written to a http.Request.

func NewGetSecretsParams

func NewGetSecretsParams() *GetSecretsParams

NewGetSecretsParams creates a new GetSecretsParams 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 NewGetSecretsParamsWithContext

func NewGetSecretsParamsWithContext(ctx context.Context) *GetSecretsParams

NewGetSecretsParamsWithContext creates a new GetSecretsParams object with the ability to set a context for a request.

func NewGetSecretsParamsWithHTTPClient

func NewGetSecretsParamsWithHTTPClient(client *http.Client) *GetSecretsParams

NewGetSecretsParamsWithHTTPClient creates a new GetSecretsParams object with the ability to set a custom HTTPClient for a request.

func NewGetSecretsParamsWithTimeout

func NewGetSecretsParamsWithTimeout(timeout time.Duration) *GetSecretsParams

NewGetSecretsParamsWithTimeout creates a new GetSecretsParams object with the ability to set a timeout on a request.

func (*GetSecretsParams) SetContext

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

SetContext adds the context to the get secrets params

func (*GetSecretsParams) SetDefaults

func (o *GetSecretsParams) SetDefaults()

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

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

func (*GetSecretsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get secrets params

func (*GetSecretsParams) SetTimeout

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

SetTimeout adds the timeout to the get secrets params

func (*GetSecretsParams) WithContext

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

WithContext adds the context to the get secrets params

func (*GetSecretsParams) WithDefaults

func (o *GetSecretsParams) WithDefaults() *GetSecretsParams

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

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

func (*GetSecretsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get secrets params

func (*GetSecretsParams) WithTimeout

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

WithTimeout adds the timeout to the get secrets params

func (*GetSecretsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSecretsReader

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

GetSecretsReader is a Reader for the GetSecrets structure.

func (*GetSecretsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostSecretsBadRequest

type PostSecretsBadRequest struct {
	Payload *models.CreateSecretResponse
}

PostSecretsBadRequest describes a response with status code 400, with default header values.

Invalid request (missing/invalid name or value)

func NewPostSecretsBadRequest

func NewPostSecretsBadRequest() *PostSecretsBadRequest

NewPostSecretsBadRequest creates a PostSecretsBadRequest with default headers values

func (*PostSecretsBadRequest) Code

func (o *PostSecretsBadRequest) Code() int

Code gets the status code for the post secrets bad request response

func (*PostSecretsBadRequest) Error

func (o *PostSecretsBadRequest) Error() string

func (*PostSecretsBadRequest) GetPayload

func (*PostSecretsBadRequest) IsClientError

func (o *PostSecretsBadRequest) IsClientError() bool

IsClientError returns true when this post secrets bad request response has a 4xx status code

func (*PostSecretsBadRequest) IsCode

func (o *PostSecretsBadRequest) IsCode(code int) bool

IsCode returns true when this post secrets bad request response a status code equal to that given

func (*PostSecretsBadRequest) IsRedirect

func (o *PostSecretsBadRequest) IsRedirect() bool

IsRedirect returns true when this post secrets bad request response has a 3xx status code

func (*PostSecretsBadRequest) IsServerError

func (o *PostSecretsBadRequest) IsServerError() bool

IsServerError returns true when this post secrets bad request response has a 5xx status code

func (*PostSecretsBadRequest) IsSuccess

func (o *PostSecretsBadRequest) IsSuccess() bool

IsSuccess returns true when this post secrets bad request response has a 2xx status code

func (*PostSecretsBadRequest) String

func (o *PostSecretsBadRequest) String() string

type PostSecretsConflict

type PostSecretsConflict struct {
	Payload *models.CreateSecretResponse
}

PostSecretsConflict describes a response with status code 409, with default header values.

Secret with this name already exists

func NewPostSecretsConflict

func NewPostSecretsConflict() *PostSecretsConflict

NewPostSecretsConflict creates a PostSecretsConflict with default headers values

func (*PostSecretsConflict) Code

func (o *PostSecretsConflict) Code() int

Code gets the status code for the post secrets conflict response

func (*PostSecretsConflict) Error

func (o *PostSecretsConflict) Error() string

func (*PostSecretsConflict) GetPayload

func (*PostSecretsConflict) IsClientError

func (o *PostSecretsConflict) IsClientError() bool

IsClientError returns true when this post secrets conflict response has a 4xx status code

func (*PostSecretsConflict) IsCode

func (o *PostSecretsConflict) IsCode(code int) bool

IsCode returns true when this post secrets conflict response a status code equal to that given

func (*PostSecretsConflict) IsRedirect

func (o *PostSecretsConflict) IsRedirect() bool

IsRedirect returns true when this post secrets conflict response has a 3xx status code

func (*PostSecretsConflict) IsServerError

func (o *PostSecretsConflict) IsServerError() bool

IsServerError returns true when this post secrets conflict response has a 5xx status code

func (*PostSecretsConflict) IsSuccess

func (o *PostSecretsConflict) IsSuccess() bool

IsSuccess returns true when this post secrets conflict response has a 2xx status code

func (*PostSecretsConflict) String

func (o *PostSecretsConflict) String() string

type PostSecretsCreated

type PostSecretsCreated struct {
	Payload *models.CreateSecretResponse
}

PostSecretsCreated describes a response with status code 201, with default header values.

Secret created successfully

func NewPostSecretsCreated

func NewPostSecretsCreated() *PostSecretsCreated

NewPostSecretsCreated creates a PostSecretsCreated with default headers values

func (*PostSecretsCreated) Code

func (o *PostSecretsCreated) Code() int

Code gets the status code for the post secrets created response

func (*PostSecretsCreated) Error

func (o *PostSecretsCreated) Error() string

func (*PostSecretsCreated) GetPayload

func (*PostSecretsCreated) IsClientError

func (o *PostSecretsCreated) IsClientError() bool

IsClientError returns true when this post secrets created response has a 4xx status code

func (*PostSecretsCreated) IsCode

func (o *PostSecretsCreated) IsCode(code int) bool

IsCode returns true when this post secrets created response a status code equal to that given

func (*PostSecretsCreated) IsRedirect

func (o *PostSecretsCreated) IsRedirect() bool

IsRedirect returns true when this post secrets created response has a 3xx status code

func (*PostSecretsCreated) IsServerError

func (o *PostSecretsCreated) IsServerError() bool

IsServerError returns true when this post secrets created response has a 5xx status code

func (*PostSecretsCreated) IsSuccess

func (o *PostSecretsCreated) IsSuccess() bool

IsSuccess returns true when this post secrets created response has a 2xx status code

func (*PostSecretsCreated) String

func (o *PostSecretsCreated) String() string

type PostSecretsInternalServerError

type PostSecretsInternalServerError struct {
	Payload *models.CreateSecretResponse
}

PostSecretsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewPostSecretsInternalServerError

func NewPostSecretsInternalServerError() *PostSecretsInternalServerError

NewPostSecretsInternalServerError creates a PostSecretsInternalServerError with default headers values

func (*PostSecretsInternalServerError) Code

Code gets the status code for the post secrets internal server error response

func (*PostSecretsInternalServerError) Error

func (*PostSecretsInternalServerError) GetPayload

func (*PostSecretsInternalServerError) IsClientError

func (o *PostSecretsInternalServerError) IsClientError() bool

IsClientError returns true when this post secrets internal server error response has a 4xx status code

func (*PostSecretsInternalServerError) IsCode

func (o *PostSecretsInternalServerError) IsCode(code int) bool

IsCode returns true when this post secrets internal server error response a status code equal to that given

func (*PostSecretsInternalServerError) IsRedirect

func (o *PostSecretsInternalServerError) IsRedirect() bool

IsRedirect returns true when this post secrets internal server error response has a 3xx status code

func (*PostSecretsInternalServerError) IsServerError

func (o *PostSecretsInternalServerError) IsServerError() bool

IsServerError returns true when this post secrets internal server error response has a 5xx status code

func (*PostSecretsInternalServerError) IsSuccess

func (o *PostSecretsInternalServerError) IsSuccess() bool

IsSuccess returns true when this post secrets internal server error response has a 2xx status code

func (*PostSecretsInternalServerError) String

type PostSecretsParams

type PostSecretsParams struct {

	/* Request.

	   Create secret request
	*/
	Request *models.CreateSecretRequest

	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

func NewPostSecretsParams() *PostSecretsParams

NewPostSecretsParams creates a new PostSecretsParams 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 NewPostSecretsParamsWithContext

func NewPostSecretsParamsWithContext(ctx context.Context) *PostSecretsParams

NewPostSecretsParamsWithContext creates a new PostSecretsParams object with the ability to set a context for a request.

func NewPostSecretsParamsWithHTTPClient

func NewPostSecretsParamsWithHTTPClient(client *http.Client) *PostSecretsParams

NewPostSecretsParamsWithHTTPClient creates a new PostSecretsParams object with the ability to set a custom HTTPClient for a request.

func NewPostSecretsParamsWithTimeout

func NewPostSecretsParamsWithTimeout(timeout time.Duration) *PostSecretsParams

NewPostSecretsParamsWithTimeout creates a new PostSecretsParams object with the ability to set a timeout on a request.

func (*PostSecretsParams) SetContext

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

SetContext adds the context to the post secrets params

func (*PostSecretsParams) SetDefaults

func (o *PostSecretsParams) SetDefaults()

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

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

func (*PostSecretsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post secrets params

func (*PostSecretsParams) SetRequest

func (o *PostSecretsParams) SetRequest(request *models.CreateSecretRequest)

SetRequest adds the request to the post secrets params

func (*PostSecretsParams) SetTimeout

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

SetTimeout adds the timeout to the post secrets params

func (*PostSecretsParams) WithContext

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

WithContext adds the context to the post secrets params

func (*PostSecretsParams) WithDefaults

func (o *PostSecretsParams) WithDefaults() *PostSecretsParams

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

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

func (*PostSecretsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post secrets params

func (*PostSecretsParams) WithRequest

WithRequest adds the request to the post secrets params

func (*PostSecretsParams) WithTimeout

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

WithTimeout adds the timeout to the post secrets params

func (*PostSecretsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostSecretsReader

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

PostSecretsReader is a Reader for the PostSecrets structure.

func (*PostSecretsReader) ReadResponse

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