secrets_compat

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 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 compat API

func (*Client) SecretCreate

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

SecretCreate creates a secret

func (*Client) SecretDelete

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

SecretDelete removes secret

func (*Client) SecretInspect

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

SecretInspect inspects secret

func (*Client) SecretList

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

SecretList lists secrets

Returns a list of secrets

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SecretCreate(params *SecretCreateParams, opts ...ClientOption) (*SecretCreateCreated, error)

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

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

	SecretList(params *SecretListParams, opts ...ClientOption) (*SecretListOK, 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 compat API client.

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) 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
	ResponseCode int64 `json:"response,omitempty"`
}

SecretCreateConflictBody secret create conflict body swagger:model SecretCreateConflictBody

func (*SecretCreateConflictBody) ContextValidate

func (o *SecretCreateConflictBody) ContextValidate(ctx context.Context, formats 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) 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(ctx context.Context, formats 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

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

Validate validates this secret create created body

type SecretCreateInternalServerError

type SecretCreateInternalServerError struct {
	Payload *SecretCreateInternalServerErrorBody
}

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) 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 SecretCreateInternalServerErrorBody

type SecretCreateInternalServerErrorBody 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
	ResponseCode int64 `json:"response,omitempty"`
}

SecretCreateInternalServerErrorBody secret create internal server error body swagger:model SecretCreateInternalServerErrorBody

func (*SecretCreateInternalServerErrorBody) ContextValidate

func (o *SecretCreateInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this secret create internal server error body based on context it is used

func (*SecretCreateInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretCreateInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretCreateInternalServerErrorBody) Validate

Validate validates this secret create internal server error body

type SecretCreateParams

type SecretCreateParams struct {

	/* Create.

	   attributes for creating a secret

	*/
	Create *models.SecretCreateRequest

	Context    context.Context
	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

func NewSecretCreateParamsWithContext(ctx context.Context) *SecretCreateParams

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

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

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

SetContext adds the context to the secret create params

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

WithContext adds the context to the secret create params

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 swagger request

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) (interface{}, error)

ReadResponse reads a server response into the received o.

type SecretDeleteInternalServerError

type SecretDeleteInternalServerError struct {
	Payload *SecretDeleteInternalServerErrorBody
}

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) 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 SecretDeleteInternalServerErrorBody

type SecretDeleteInternalServerErrorBody 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
	ResponseCode int64 `json:"response,omitempty"`
}

SecretDeleteInternalServerErrorBody secret delete internal server error body swagger:model SecretDeleteInternalServerErrorBody

func (*SecretDeleteInternalServerErrorBody) ContextValidate

func (o *SecretDeleteInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this secret delete internal server error body based on context it is used

func (*SecretDeleteInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretDeleteInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretDeleteInternalServerErrorBody) Validate

Validate validates this secret delete internal server error body

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) 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) 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
	ResponseCode int64 `json:"response,omitempty"`
}

SecretDeleteNotFoundBody secret delete not found body swagger:model SecretDeleteNotFoundBody

func (*SecretDeleteNotFoundBody) ContextValidate

func (o *SecretDeleteNotFoundBody) ContextValidate(ctx context.Context, formats 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

	Context    context.Context
	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

func NewSecretDeleteParamsWithContext(ctx context.Context) *SecretDeleteParams

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

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

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

SetContext adds the context to the secret delete params

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

WithContext adds the context to the secret delete params

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 swagger request

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) (interface{}, error)

ReadResponse reads a server response into the received o.

type SecretInspectInternalServerError

type SecretInspectInternalServerError struct {
	Payload *SecretInspectInternalServerErrorBody
}

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) 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 SecretInspectInternalServerErrorBody

type SecretInspectInternalServerErrorBody 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
	ResponseCode int64 `json:"response,omitempty"`
}

SecretInspectInternalServerErrorBody secret inspect internal server error body swagger:model SecretInspectInternalServerErrorBody

func (*SecretInspectInternalServerErrorBody) ContextValidate

func (o *SecretInspectInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this secret inspect internal server error body based on context it is used

func (*SecretInspectInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretInspectInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretInspectInternalServerErrorBody) Validate

Validate validates this secret inspect internal server error body

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) 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
	ResponseCode int64 `json:"response,omitempty"`
}

SecretInspectNotFoundBody secret inspect not found body swagger:model SecretInspectNotFoundBody

func (*SecretInspectNotFoundBody) ContextValidate

func (o *SecretInspectNotFoundBody) ContextValidate(ctx context.Context, formats 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) 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

	Context    context.Context
	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

func NewSecretInspectParamsWithContext(ctx context.Context) *SecretInspectParams

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

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

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

SetContext adds the context to the secret inspect params

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

WithContext adds the context to the secret inspect params

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 swagger request

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) (interface{}, error)

ReadResponse reads a server response into the received o.

type SecretListInternalServerError

type SecretListInternalServerError struct {
	Payload *SecretListInternalServerErrorBody
}

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) 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 SecretListInternalServerErrorBody

type SecretListInternalServerErrorBody 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
	ResponseCode int64 `json:"response,omitempty"`
}

SecretListInternalServerErrorBody secret list internal server error body swagger:model SecretListInternalServerErrorBody

func (*SecretListInternalServerErrorBody) ContextValidate

func (o *SecretListInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this secret list internal server error body based on context it is used

func (*SecretListInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SecretListInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SecretListInternalServerErrorBody) Validate

Validate validates this secret list internal server error body

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) 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 {
	Context    context.Context
	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

func NewSecretListParamsWithContext(ctx context.Context) *SecretListParams

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

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

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

SetContext adds the context to the secret list params

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) 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

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

WithContext adds the context to the secret list params

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) 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 swagger request

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) (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