secrets_compat

package
v0.0.0-...-fe9a356 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationxTar

func WithContentTypeApplicationxTar(r *runtime.ClientOperation)

WithContentTypeApplicationxTar sets the Content-Type header to "application/x-tar".

Types

type Client

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

Client for secrets compat API.

func (*Client) SecretCreate

func (a *Client) SecretCreate(params *SecretCreateParams, opts ...ClientOption) (*SecretCreateCreated, error)

SecretCreate creates a secret.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SecretCreateContext instead.

func (*Client) SecretCreateContext

func (a *Client) SecretCreateContext(ctx context.Context, params *SecretCreateParams, opts ...ClientOption) (*SecretCreateCreated, error)

SecretCreateContext creates a secret.

Do not use the deprecated [SecretCreateParams.Context] with this method: it would be ignored.

func (*Client) SecretDelete

func (a *Client) SecretDelete(params *SecretDeleteParams, opts ...ClientOption) (*SecretDeleteNoContent, error)

SecretDelete removes secret.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SecretDeleteContext instead.

func (*Client) SecretDeleteContext

func (a *Client) SecretDeleteContext(ctx context.Context, params *SecretDeleteParams, opts ...ClientOption) (*SecretDeleteNoContent, error)

SecretDeleteContext removes secret.

Do not use the deprecated [SecretDeleteParams.Context] with this method: it would be ignored.

func (*Client) SecretInspect

func (a *Client) SecretInspect(params *SecretInspectParams, opts ...ClientOption) (*SecretInspectOK, error)

SecretInspect inspects secret.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SecretInspectContext instead.

func (*Client) SecretInspectContext

func (a *Client) SecretInspectContext(ctx context.Context, params *SecretInspectParams, opts ...ClientOption) (*SecretInspectOK, error)

SecretInspectContext inspects secret.

Do not use the deprecated [SecretInspectParams.Context] with this method: it would be ignored.

func (*Client) SecretList

func (a *Client) SecretList(params *SecretListParams, opts ...ClientOption) (*SecretListOK, error)

SecretList lists secrets.

Returns a list of secrets.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.SecretListContext instead.

func (*Client) SecretListContext

func (a *Client) SecretListContext(ctx context.Context, params *SecretListParams, opts ...ClientOption) (*SecretListOK, error)

SecretListContext lists secrets.

Returns a list of secrets.

Do not use the deprecated [SecretListParams.Context] with this method: it would be ignored.

func (*Client) SetTransport

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

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.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {

	// SecretCreate create a secret.
	SecretCreate(params *SecretCreateParams, opts ...ClientOption) (*SecretCreateCreated, error)

	// SecretCreateContext create a secret.
	SecretCreateContext(ctx context.Context, params *SecretCreateParams, opts ...ClientOption) (*SecretCreateCreated, error)

	// SecretDelete remove secret.
	SecretDelete(params *SecretDeleteParams, opts ...ClientOption) (*SecretDeleteNoContent, error)

	// SecretDeleteContext remove secret.
	SecretDeleteContext(ctx context.Context, params *SecretDeleteParams, opts ...ClientOption) (*SecretDeleteNoContent, error)

	// SecretInspect inspect secret.
	SecretInspect(params *SecretInspectParams, opts ...ClientOption) (*SecretInspectOK, error)

	// SecretInspectContext inspect secret.
	SecretInspectContext(ctx context.Context, params *SecretInspectParams, opts ...ClientOption) (*SecretInspectOK, error)

	// SecretList list secrets.
	SecretList(params *SecretListParams, opts ...ClientOption) (*SecretListOK, error)

	// SecretListContext list secrets.
	SecretListContext(ctx context.Context, params *SecretListParams, opts ...ClientOption) (*SecretListOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new secrets compat API client.

func NewClientWithBasicAuth

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

New creates a new secrets compat 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 compat 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 SecretCreateConflict

type SecretCreateConflict struct {
	Payload *SecretCreateConflictBody
}

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

Secret in use

func NewSecretCreateConflict

func NewSecretCreateConflict() *SecretCreateConflict

NewSecretCreateConflict creates a SecretCreateConflict with default headers values

func (*SecretCreateConflict) Code

func (o *SecretCreateConflict) Code() int

Code gets the status code for the secret create conflict response

func (*SecretCreateConflict) Error

func (o *SecretCreateConflict) Error() string

func (*SecretCreateConflict) GetPayload

func (*SecretCreateConflict) IsClientError

func (o *SecretCreateConflict) IsClientError() bool

IsClientError returns true when this secret create conflict response has a 4xx status code

func (*SecretCreateConflict) IsCode

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

IsCode returns true when this secret create conflict response a status code equal to that given

func (*SecretCreateConflict) IsRedirect

func (o *SecretCreateConflict) IsRedirect() bool

IsRedirect returns true when this secret create conflict response has a 3xx status code

func (*SecretCreateConflict) IsServerError

func (o *SecretCreateConflict) IsServerError() bool

IsServerError returns true when this secret create conflict response has a 5xx status code

func (*SecretCreateConflict) IsSuccess

func (o *SecretCreateConflict) IsSuccess() bool

IsSuccess returns true when this secret create conflict response has a 2xx status code

func (*SecretCreateConflict) String

func (o *SecretCreateConflict) String() string

type SecretCreateConflictBody

type SecretCreateConflictBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// HTTP response code
	// Minimum: 400
	ResponseCode int64 `json:"response,omitempty"`
}

SecretCreateConflictBody secret create conflict body

swagger:model SecretCreateConflictBody

func (*SecretCreateConflictBody) ContextValidate

func (o *SecretCreateConflictBody) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this secret create conflict body based on context it is used

func (*SecretCreateConflictBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretCreateConflictBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretCreateConflictBody) Validate

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

Validate validates this secret create conflict body

type SecretCreateCreated

type SecretCreateCreated struct {
	Payload *SecretCreateCreatedBody
}

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

Secret create response

func NewSecretCreateCreated

func NewSecretCreateCreated() *SecretCreateCreated

NewSecretCreateCreated creates a SecretCreateCreated with default headers values

func (*SecretCreateCreated) Code

func (o *SecretCreateCreated) Code() int

Code gets the status code for the secret create created response

func (*SecretCreateCreated) Error

func (o *SecretCreateCreated) Error() string

func (*SecretCreateCreated) GetPayload

func (*SecretCreateCreated) IsClientError

func (o *SecretCreateCreated) IsClientError() bool

IsClientError returns true when this secret create created response has a 4xx status code

func (*SecretCreateCreated) IsCode

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

IsCode returns true when this secret create created response a status code equal to that given

func (*SecretCreateCreated) IsRedirect

func (o *SecretCreateCreated) IsRedirect() bool

IsRedirect returns true when this secret create created response has a 3xx status code

func (*SecretCreateCreated) IsServerError

func (o *SecretCreateCreated) IsServerError() bool

IsServerError returns true when this secret create created response has a 5xx status code

func (*SecretCreateCreated) IsSuccess

func (o *SecretCreateCreated) IsSuccess() bool

IsSuccess returns true when this secret create created response has a 2xx status code

func (*SecretCreateCreated) String

func (o *SecretCreateCreated) String() string

type SecretCreateCreatedBody

type SecretCreateCreatedBody struct {

	// ID
	ID string `json:"ID,omitempty"`
}

SecretCreateCreatedBody secret create created body

swagger:model SecretCreateCreatedBody

func (*SecretCreateCreatedBody) ContextValidate

func (o *SecretCreateCreatedBody) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this secret create created body based on context it is used

func (*SecretCreateCreatedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretCreateCreatedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretCreateCreatedBody) Validate

Validate validates this secret create created body

type SecretCreateInternalServerError

type SecretCreateInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSecretCreateInternalServerError

func NewSecretCreateInternalServerError() *SecretCreateInternalServerError

NewSecretCreateInternalServerError creates a SecretCreateInternalServerError with default headers values

func (*SecretCreateInternalServerError) Code

Code gets the status code for the secret create internal server error response

func (*SecretCreateInternalServerError) Error

func (*SecretCreateInternalServerError) GetPayload

func (*SecretCreateInternalServerError) IsClientError

func (o *SecretCreateInternalServerError) IsClientError() bool

IsClientError returns true when this secret create internal server error response has a 4xx status code

func (*SecretCreateInternalServerError) IsCode

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

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

func (*SecretCreateInternalServerError) IsRedirect

func (o *SecretCreateInternalServerError) IsRedirect() bool

IsRedirect returns true when this secret create internal server error response has a 3xx status code

func (*SecretCreateInternalServerError) IsServerError

func (o *SecretCreateInternalServerError) IsServerError() bool

IsServerError returns true when this secret create internal server error response has a 5xx status code

func (*SecretCreateInternalServerError) IsSuccess

func (o *SecretCreateInternalServerError) IsSuccess() bool

IsSuccess returns true when this secret create internal server error response has a 2xx status code

func (*SecretCreateInternalServerError) String

type SecretCreateParams

type SecretCreateParams struct {

	// Create.
	//
	// attributes for creating a secret
	//
	Create *models.SecretCreateRequest

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

SecretCreateParams contains all the parameters to send to the API endpoint

for the secret create operation.

Typically these are written to a http.Request.

func NewSecretCreateParams

func NewSecretCreateParams() *SecretCreateParams

NewSecretCreateParams creates a new SecretCreateParams 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 NewSecretCreateParamsWithContext deprecated

func NewSecretCreateParamsWithContext(ctx context.Context) *SecretCreateParams

NewSecretCreateParamsWithContext creates a new SecretCreateParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SecretCreateParams.

func NewSecretCreateParamsWithHTTPClient

func NewSecretCreateParamsWithHTTPClient(client *http.Client) *SecretCreateParams

NewSecretCreateParamsWithHTTPClient creates a new SecretCreateParams object with the ability to set a custom HTTPClient for a request.

func NewSecretCreateParamsWithTimeout

func NewSecretCreateParamsWithTimeout(timeout time.Duration) *SecretCreateParams

NewSecretCreateParamsWithTimeout creates a new SecretCreateParams object with the ability to set a timeout on a request.

func (*SecretCreateParams) SetContext deprecated

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

SetContext adds the context to the secret create params.

Deprecated: use the operation call with context to pass the context instead of SecretCreateParams.

func (*SecretCreateParams) SetCreate

func (o *SecretCreateParams) SetCreate(create *models.SecretCreateRequest)

SetCreate adds the create to the secret create params.

func (*SecretCreateParams) SetDefaults

func (o *SecretCreateParams) SetDefaults()

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

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

func (*SecretCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the secret create params.

func (*SecretCreateParams) SetTimeout

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

SetTimeout adds the timeout to the secret create params.

func (*SecretCreateParams) WithContext deprecated

WithContext adds the context to the secret create params.

Deprecated: use the operation call with context to pass the context instead of SecretCreateParams.

func (*SecretCreateParams) WithCreate

WithCreate adds the create to the secret create params.

func (*SecretCreateParams) WithDefaults

func (o *SecretCreateParams) WithDefaults() *SecretCreateParams

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

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

func (*SecretCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the secret create params.

func (*SecretCreateParams) WithTimeout

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

WithTimeout adds the timeout to the secret create params.

func (*SecretCreateParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SecretCreateReader

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

SecretCreateReader is a Reader for the SecretCreate structure.

func (*SecretCreateReader) ReadResponse

func (o *SecretCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SecretDeleteInternalServerError

type SecretDeleteInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSecretDeleteInternalServerError

func NewSecretDeleteInternalServerError() *SecretDeleteInternalServerError

NewSecretDeleteInternalServerError creates a SecretDeleteInternalServerError with default headers values

func (*SecretDeleteInternalServerError) Code

Code gets the status code for the secret delete internal server error response

func (*SecretDeleteInternalServerError) Error

func (*SecretDeleteInternalServerError) GetPayload

func (*SecretDeleteInternalServerError) IsClientError

func (o *SecretDeleteInternalServerError) IsClientError() bool

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

func (*SecretDeleteInternalServerError) IsCode

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

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

func (*SecretDeleteInternalServerError) IsRedirect

func (o *SecretDeleteInternalServerError) IsRedirect() bool

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

func (*SecretDeleteInternalServerError) IsServerError

func (o *SecretDeleteInternalServerError) IsServerError() bool

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

func (*SecretDeleteInternalServerError) IsSuccess

func (o *SecretDeleteInternalServerError) IsSuccess() bool

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

func (*SecretDeleteInternalServerError) String

type SecretDeleteNoContent

type SecretDeleteNoContent struct {
}

SecretDeleteNoContent describes a response with status code 204, with default header values.

no error

func NewSecretDeleteNoContent

func NewSecretDeleteNoContent() *SecretDeleteNoContent

NewSecretDeleteNoContent creates a SecretDeleteNoContent with default headers values

func (*SecretDeleteNoContent) Code

func (o *SecretDeleteNoContent) Code() int

Code gets the status code for the secret delete no content response

func (*SecretDeleteNoContent) Error

func (o *SecretDeleteNoContent) Error() string

func (*SecretDeleteNoContent) IsClientError

func (o *SecretDeleteNoContent) IsClientError() bool

IsClientError returns true when this secret delete no content response has a 4xx status code

func (*SecretDeleteNoContent) IsCode

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

IsCode returns true when this secret delete no content response a status code equal to that given

func (*SecretDeleteNoContent) IsRedirect

func (o *SecretDeleteNoContent) IsRedirect() bool

IsRedirect returns true when this secret delete no content response has a 3xx status code

func (*SecretDeleteNoContent) IsServerError

func (o *SecretDeleteNoContent) IsServerError() bool

IsServerError returns true when this secret delete no content response has a 5xx status code

func (*SecretDeleteNoContent) IsSuccess

func (o *SecretDeleteNoContent) IsSuccess() bool

IsSuccess returns true when this secret delete no content response has a 2xx status code

func (*SecretDeleteNoContent) String

func (o *SecretDeleteNoContent) String() string

type SecretDeleteNotFound

type SecretDeleteNotFound struct {
	Payload *SecretDeleteNotFoundBody
}

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

No such secret

func NewSecretDeleteNotFound

func NewSecretDeleteNotFound() *SecretDeleteNotFound

NewSecretDeleteNotFound creates a SecretDeleteNotFound with default headers values

func (*SecretDeleteNotFound) Code

func (o *SecretDeleteNotFound) Code() int

Code gets the status code for the secret delete not found response

func (*SecretDeleteNotFound) Error

func (o *SecretDeleteNotFound) Error() string

func (*SecretDeleteNotFound) GetPayload

func (*SecretDeleteNotFound) IsClientError

func (o *SecretDeleteNotFound) IsClientError() bool

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

func (*SecretDeleteNotFound) IsCode

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

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

func (*SecretDeleteNotFound) IsRedirect

func (o *SecretDeleteNotFound) IsRedirect() bool

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

func (*SecretDeleteNotFound) IsServerError

func (o *SecretDeleteNotFound) IsServerError() bool

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

func (*SecretDeleteNotFound) IsSuccess

func (o *SecretDeleteNotFound) IsSuccess() bool

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

func (*SecretDeleteNotFound) String

func (o *SecretDeleteNotFound) String() string

type SecretDeleteNotFoundBody

type SecretDeleteNotFoundBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// HTTP response code
	// Minimum: 400
	ResponseCode int64 `json:"response,omitempty"`
}

SecretDeleteNotFoundBody secret delete not found body

swagger:model SecretDeleteNotFoundBody

func (*SecretDeleteNotFoundBody) ContextValidate

func (o *SecretDeleteNotFoundBody) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this secret delete not found body based on context it is used

func (*SecretDeleteNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretDeleteNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretDeleteNotFoundBody) Validate

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

Validate validates this secret delete not found body

type SecretDeleteParams

type SecretDeleteParams struct {

	// Name.
	//
	// the name or ID of the secret
	Name string

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

SecretDeleteParams contains all the parameters to send to the API endpoint

for the secret delete operation.

Typically these are written to a http.Request.

func NewSecretDeleteParams

func NewSecretDeleteParams() *SecretDeleteParams

NewSecretDeleteParams creates a new SecretDeleteParams 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 NewSecretDeleteParamsWithContext deprecated

func NewSecretDeleteParamsWithContext(ctx context.Context) *SecretDeleteParams

NewSecretDeleteParamsWithContext creates a new SecretDeleteParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SecretDeleteParams.

func NewSecretDeleteParamsWithHTTPClient

func NewSecretDeleteParamsWithHTTPClient(client *http.Client) *SecretDeleteParams

NewSecretDeleteParamsWithHTTPClient creates a new SecretDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewSecretDeleteParamsWithTimeout

func NewSecretDeleteParamsWithTimeout(timeout time.Duration) *SecretDeleteParams

NewSecretDeleteParamsWithTimeout creates a new SecretDeleteParams object with the ability to set a timeout on a request.

func (*SecretDeleteParams) SetContext deprecated

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

SetContext adds the context to the secret delete params.

Deprecated: use the operation call with context to pass the context instead of SecretDeleteParams.

func (*SecretDeleteParams) SetDefaults

func (o *SecretDeleteParams) SetDefaults()

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

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

func (*SecretDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the secret delete params.

func (*SecretDeleteParams) SetName

func (o *SecretDeleteParams) SetName(name string)

SetName adds the name to the secret delete params.

func (*SecretDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the secret delete params.

func (*SecretDeleteParams) WithContext deprecated

WithContext adds the context to the secret delete params.

Deprecated: use the operation call with context to pass the context instead of SecretDeleteParams.

func (*SecretDeleteParams) WithDefaults

func (o *SecretDeleteParams) WithDefaults() *SecretDeleteParams

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

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

func (*SecretDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the secret delete params.

func (*SecretDeleteParams) WithName

func (o *SecretDeleteParams) WithName(name string) *SecretDeleteParams

WithName adds the name to the secret delete params.

func (*SecretDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the secret delete params.

func (*SecretDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SecretDeleteReader

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

SecretDeleteReader is a Reader for the SecretDelete structure.

func (*SecretDeleteReader) ReadResponse

func (o *SecretDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SecretInspectInternalServerError

type SecretInspectInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSecretInspectInternalServerError

func NewSecretInspectInternalServerError() *SecretInspectInternalServerError

NewSecretInspectInternalServerError creates a SecretInspectInternalServerError with default headers values

func (*SecretInspectInternalServerError) Code

Code gets the status code for the secret inspect internal server error response

func (*SecretInspectInternalServerError) Error

func (*SecretInspectInternalServerError) GetPayload

func (*SecretInspectInternalServerError) IsClientError

func (o *SecretInspectInternalServerError) IsClientError() bool

IsClientError returns true when this secret inspect internal server error response has a 4xx status code

func (*SecretInspectInternalServerError) IsCode

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

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

func (*SecretInspectInternalServerError) IsRedirect

func (o *SecretInspectInternalServerError) IsRedirect() bool

IsRedirect returns true when this secret inspect internal server error response has a 3xx status code

func (*SecretInspectInternalServerError) IsServerError

func (o *SecretInspectInternalServerError) IsServerError() bool

IsServerError returns true when this secret inspect internal server error response has a 5xx status code

func (*SecretInspectInternalServerError) IsSuccess

func (o *SecretInspectInternalServerError) IsSuccess() bool

IsSuccess returns true when this secret inspect internal server error response has a 2xx status code

func (*SecretInspectInternalServerError) String

type SecretInspectNotFound

type SecretInspectNotFound struct {
	Payload *SecretInspectNotFoundBody
}

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

No such secret

func NewSecretInspectNotFound

func NewSecretInspectNotFound() *SecretInspectNotFound

NewSecretInspectNotFound creates a SecretInspectNotFound with default headers values

func (*SecretInspectNotFound) Code

func (o *SecretInspectNotFound) Code() int

Code gets the status code for the secret inspect not found response

func (*SecretInspectNotFound) Error

func (o *SecretInspectNotFound) Error() string

func (*SecretInspectNotFound) GetPayload

func (*SecretInspectNotFound) IsClientError

func (o *SecretInspectNotFound) IsClientError() bool

IsClientError returns true when this secret inspect not found response has a 4xx status code

func (*SecretInspectNotFound) IsCode

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

IsCode returns true when this secret inspect not found response a status code equal to that given

func (*SecretInspectNotFound) IsRedirect

func (o *SecretInspectNotFound) IsRedirect() bool

IsRedirect returns true when this secret inspect not found response has a 3xx status code

func (*SecretInspectNotFound) IsServerError

func (o *SecretInspectNotFound) IsServerError() bool

IsServerError returns true when this secret inspect not found response has a 5xx status code

func (*SecretInspectNotFound) IsSuccess

func (o *SecretInspectNotFound) IsSuccess() bool

IsSuccess returns true when this secret inspect not found response has a 2xx status code

func (*SecretInspectNotFound) String

func (o *SecretInspectNotFound) String() string

type SecretInspectNotFoundBody

type SecretInspectNotFoundBody struct {

	// API root cause formatted for automated parsing
	// Example: API root cause
	Because string `json:"cause,omitempty"`

	// human error message, formatted for a human to read
	// Example: human error message
	Message string `json:"message,omitempty"`

	// HTTP response code
	// Minimum: 400
	ResponseCode int64 `json:"response,omitempty"`
}

SecretInspectNotFoundBody secret inspect not found body

swagger:model SecretInspectNotFoundBody

func (*SecretInspectNotFoundBody) ContextValidate

func (o *SecretInspectNotFoundBody) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate validates this secret inspect not found body based on context it is used

func (*SecretInspectNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretInspectNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretInspectNotFoundBody) Validate

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

Validate validates this secret inspect not found body

type SecretInspectOK

type SecretInspectOK struct {
	Payload *models.SecretInfoReportCompat
}

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

Secret inspect compat

func NewSecretInspectOK

func NewSecretInspectOK() *SecretInspectOK

NewSecretInspectOK creates a SecretInspectOK with default headers values

func (*SecretInspectOK) Code

func (o *SecretInspectOK) Code() int

Code gets the status code for the secret inspect o k response

func (*SecretInspectOK) Error

func (o *SecretInspectOK) Error() string

func (*SecretInspectOK) GetPayload

func (*SecretInspectOK) IsClientError

func (o *SecretInspectOK) IsClientError() bool

IsClientError returns true when this secret inspect o k response has a 4xx status code

func (*SecretInspectOK) IsCode

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

IsCode returns true when this secret inspect o k response a status code equal to that given

func (*SecretInspectOK) IsRedirect

func (o *SecretInspectOK) IsRedirect() bool

IsRedirect returns true when this secret inspect o k response has a 3xx status code

func (*SecretInspectOK) IsServerError

func (o *SecretInspectOK) IsServerError() bool

IsServerError returns true when this secret inspect o k response has a 5xx status code

func (*SecretInspectOK) IsSuccess

func (o *SecretInspectOK) IsSuccess() bool

IsSuccess returns true when this secret inspect o k response has a 2xx status code

func (*SecretInspectOK) String

func (o *SecretInspectOK) String() string

type SecretInspectParams

type SecretInspectParams struct {

	// Name.
	//
	// the name or ID of the secret
	Name string

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

SecretInspectParams contains all the parameters to send to the API endpoint

for the secret inspect operation.

Typically these are written to a http.Request.

func NewSecretInspectParams

func NewSecretInspectParams() *SecretInspectParams

NewSecretInspectParams creates a new SecretInspectParams 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 NewSecretInspectParamsWithContext deprecated

func NewSecretInspectParamsWithContext(ctx context.Context) *SecretInspectParams

NewSecretInspectParamsWithContext creates a new SecretInspectParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SecretInspectParams.

func NewSecretInspectParamsWithHTTPClient

func NewSecretInspectParamsWithHTTPClient(client *http.Client) *SecretInspectParams

NewSecretInspectParamsWithHTTPClient creates a new SecretInspectParams object with the ability to set a custom HTTPClient for a request.

func NewSecretInspectParamsWithTimeout

func NewSecretInspectParamsWithTimeout(timeout time.Duration) *SecretInspectParams

NewSecretInspectParamsWithTimeout creates a new SecretInspectParams object with the ability to set a timeout on a request.

func (*SecretInspectParams) SetContext deprecated

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

SetContext adds the context to the secret inspect params.

Deprecated: use the operation call with context to pass the context instead of SecretInspectParams.

func (*SecretInspectParams) SetDefaults

func (o *SecretInspectParams) SetDefaults()

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

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

func (*SecretInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the secret inspect params.

func (*SecretInspectParams) SetName

func (o *SecretInspectParams) SetName(name string)

SetName adds the name to the secret inspect params.

func (*SecretInspectParams) SetTimeout

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

SetTimeout adds the timeout to the secret inspect params.

func (*SecretInspectParams) WithContext deprecated

WithContext adds the context to the secret inspect params.

Deprecated: use the operation call with context to pass the context instead of SecretInspectParams.

func (*SecretInspectParams) WithDefaults

func (o *SecretInspectParams) WithDefaults() *SecretInspectParams

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

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

func (*SecretInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the secret inspect params.

func (*SecretInspectParams) WithName

func (o *SecretInspectParams) WithName(name string) *SecretInspectParams

WithName adds the name to the secret inspect params.

func (*SecretInspectParams) WithTimeout

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

WithTimeout adds the timeout to the secret inspect params.

func (*SecretInspectParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SecretInspectReader

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

SecretInspectReader is a Reader for the SecretInspect structure.

func (*SecretInspectReader) ReadResponse

func (o *SecretInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type SecretListInternalServerError

type SecretListInternalServerError struct {
	Payload *models.ErrorModel
}

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

Internal server error

func NewSecretListInternalServerError

func NewSecretListInternalServerError() *SecretListInternalServerError

NewSecretListInternalServerError creates a SecretListInternalServerError with default headers values

func (*SecretListInternalServerError) Code

Code gets the status code for the secret list internal server error response

func (*SecretListInternalServerError) Error

func (*SecretListInternalServerError) GetPayload

func (*SecretListInternalServerError) IsClientError

func (o *SecretListInternalServerError) IsClientError() bool

IsClientError returns true when this secret list internal server error response has a 4xx status code

func (*SecretListInternalServerError) IsCode

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

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

func (*SecretListInternalServerError) IsRedirect

func (o *SecretListInternalServerError) IsRedirect() bool

IsRedirect returns true when this secret list internal server error response has a 3xx status code

func (*SecretListInternalServerError) IsServerError

func (o *SecretListInternalServerError) IsServerError() bool

IsServerError returns true when this secret list internal server error response has a 5xx status code

func (*SecretListInternalServerError) IsSuccess

func (o *SecretListInternalServerError) IsSuccess() bool

IsSuccess returns true when this secret list internal server error response has a 2xx status code

func (*SecretListInternalServerError) String

type SecretListOK

type SecretListOK struct {
	Payload []*models.SecretInfoReportCompat
}

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

Secret list response

func NewSecretListOK

func NewSecretListOK() *SecretListOK

NewSecretListOK creates a SecretListOK with default headers values

func (*SecretListOK) Code

func (o *SecretListOK) Code() int

Code gets the status code for the secret list o k response

func (*SecretListOK) Error

func (o *SecretListOK) Error() string

func (*SecretListOK) GetPayload

func (o *SecretListOK) GetPayload() []*models.SecretInfoReportCompat

func (*SecretListOK) IsClientError

func (o *SecretListOK) IsClientError() bool

IsClientError returns true when this secret list o k response has a 4xx status code

func (*SecretListOK) IsCode

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

IsCode returns true when this secret list o k response a status code equal to that given

func (*SecretListOK) IsRedirect

func (o *SecretListOK) IsRedirect() bool

IsRedirect returns true when this secret list o k response has a 3xx status code

func (*SecretListOK) IsServerError

func (o *SecretListOK) IsServerError() bool

IsServerError returns true when this secret list o k response has a 5xx status code

func (*SecretListOK) IsSuccess

func (o *SecretListOK) IsSuccess() bool

IsSuccess returns true when this secret list o k response has a 2xx status code

func (*SecretListOK) String

func (o *SecretListOK) String() string

type SecretListParams

type SecretListParams struct {

	// Filters.
	//
	// JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Currently available filters:
	//   - `name=[name]` Matches secrets name (accepts regex).
	//   - `id=[id]` Matches for full or partial ID.
	//
	Filters *string

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

SecretListParams contains all the parameters to send to the API endpoint

for the secret list operation.

Typically these are written to a http.Request.

func NewSecretListParams

func NewSecretListParams() *SecretListParams

NewSecretListParams creates a new SecretListParams 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 NewSecretListParamsWithContext deprecated

func NewSecretListParamsWithContext(ctx context.Context) *SecretListParams

NewSecretListParamsWithContext creates a new SecretListParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of SecretListParams.

func NewSecretListParamsWithHTTPClient

func NewSecretListParamsWithHTTPClient(client *http.Client) *SecretListParams

NewSecretListParamsWithHTTPClient creates a new SecretListParams object with the ability to set a custom HTTPClient for a request.

func NewSecretListParamsWithTimeout

func NewSecretListParamsWithTimeout(timeout time.Duration) *SecretListParams

NewSecretListParamsWithTimeout creates a new SecretListParams object with the ability to set a timeout on a request.

func (*SecretListParams) SetContext deprecated

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

SetContext adds the context to the secret list params.

Deprecated: use the operation call with context to pass the context instead of SecretListParams.

func (*SecretListParams) SetDefaults

func (o *SecretListParams) SetDefaults()

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

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

func (*SecretListParams) SetFilters

func (o *SecretListParams) SetFilters(filters *string)

SetFilters adds the filters to the secret list params.

func (*SecretListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the secret list params.

func (*SecretListParams) SetTimeout

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

SetTimeout adds the timeout to the secret list params.

func (*SecretListParams) WithContext deprecated

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

WithContext adds the context to the secret list params.

Deprecated: use the operation call with context to pass the context instead of SecretListParams.

func (*SecretListParams) WithDefaults

func (o *SecretListParams) WithDefaults() *SecretListParams

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

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

func (*SecretListParams) WithFilters

func (o *SecretListParams) WithFilters(filters *string) *SecretListParams

WithFilters adds the filters to the secret list params.

func (*SecretListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the secret list params.

func (*SecretListParams) WithTimeout

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

WithTimeout adds the timeout to the secret list params.

func (*SecretListParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type SecretListReader

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

SecretListReader is a Reader for the SecretList structure.

func (*SecretListReader) ReadResponse

func (o *SecretListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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
⌂ 换网址