Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteSecretsName(params *DeleteSecretsNameParams, opts ...ClientOption) (*DeleteSecretsNameOK, error)
- func (a *Client) GetSecrets(params *GetSecretsParams, opts ...ClientOption) (*GetSecretsOK, error)
- func (a *Client) GetSecretsName(params *GetSecretsNameParams, opts ...ClientOption) (*GetSecretsNameOK, error)
- func (a *Client) PostSecrets(params *PostSecretsParams, opts ...ClientOption) (*PostSecretsCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteSecretsNameBadRequest
- func (o *DeleteSecretsNameBadRequest) Code() int
- func (o *DeleteSecretsNameBadRequest) Error() string
- func (o *DeleteSecretsNameBadRequest) GetPayload() *models.DeleteSecretResponse
- func (o *DeleteSecretsNameBadRequest) IsClientError() bool
- func (o *DeleteSecretsNameBadRequest) IsCode(code int) bool
- func (o *DeleteSecretsNameBadRequest) IsRedirect() bool
- func (o *DeleteSecretsNameBadRequest) IsServerError() bool
- func (o *DeleteSecretsNameBadRequest) IsSuccess() bool
- func (o *DeleteSecretsNameBadRequest) String() string
- type DeleteSecretsNameInternalServerError
- func (o *DeleteSecretsNameInternalServerError) Code() int
- func (o *DeleteSecretsNameInternalServerError) Error() string
- func (o *DeleteSecretsNameInternalServerError) GetPayload() *models.DeleteSecretResponse
- func (o *DeleteSecretsNameInternalServerError) IsClientError() bool
- func (o *DeleteSecretsNameInternalServerError) IsCode(code int) bool
- func (o *DeleteSecretsNameInternalServerError) IsRedirect() bool
- func (o *DeleteSecretsNameInternalServerError) IsServerError() bool
- func (o *DeleteSecretsNameInternalServerError) IsSuccess() bool
- func (o *DeleteSecretsNameInternalServerError) String() string
- type DeleteSecretsNameNotFound
- func (o *DeleteSecretsNameNotFound) Code() int
- func (o *DeleteSecretsNameNotFound) Error() string
- func (o *DeleteSecretsNameNotFound) GetPayload() *models.DeleteSecretResponse
- func (o *DeleteSecretsNameNotFound) IsClientError() bool
- func (o *DeleteSecretsNameNotFound) IsCode(code int) bool
- func (o *DeleteSecretsNameNotFound) IsRedirect() bool
- func (o *DeleteSecretsNameNotFound) IsServerError() bool
- func (o *DeleteSecretsNameNotFound) IsSuccess() bool
- func (o *DeleteSecretsNameNotFound) String() string
- type DeleteSecretsNameOK
- func (o *DeleteSecretsNameOK) Code() int
- func (o *DeleteSecretsNameOK) Error() string
- func (o *DeleteSecretsNameOK) GetPayload() *models.DeleteSecretResponse
- func (o *DeleteSecretsNameOK) IsClientError() bool
- func (o *DeleteSecretsNameOK) IsCode(code int) bool
- func (o *DeleteSecretsNameOK) IsRedirect() bool
- func (o *DeleteSecretsNameOK) IsServerError() bool
- func (o *DeleteSecretsNameOK) IsSuccess() bool
- func (o *DeleteSecretsNameOK) String() string
- type DeleteSecretsNameParams
- func NewDeleteSecretsNameParams() *DeleteSecretsNameParams
- func NewDeleteSecretsNameParamsWithContext(ctx context.Context) *DeleteSecretsNameParams
- func NewDeleteSecretsNameParamsWithHTTPClient(client *http.Client) *DeleteSecretsNameParams
- func NewDeleteSecretsNameParamsWithTimeout(timeout time.Duration) *DeleteSecretsNameParams
- func (o *DeleteSecretsNameParams) SetContext(ctx context.Context)
- func (o *DeleteSecretsNameParams) SetDefaults()
- func (o *DeleteSecretsNameParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSecretsNameParams) SetName(name string)
- func (o *DeleteSecretsNameParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSecretsNameParams) WithContext(ctx context.Context) *DeleteSecretsNameParams
- func (o *DeleteSecretsNameParams) WithDefaults() *DeleteSecretsNameParams
- func (o *DeleteSecretsNameParams) WithHTTPClient(client *http.Client) *DeleteSecretsNameParams
- func (o *DeleteSecretsNameParams) WithName(name string) *DeleteSecretsNameParams
- func (o *DeleteSecretsNameParams) WithTimeout(timeout time.Duration) *DeleteSecretsNameParams
- func (o *DeleteSecretsNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSecretsNameReader
- type GetSecretsInternalServerError
- func (o *GetSecretsInternalServerError) Code() int
- func (o *GetSecretsInternalServerError) Error() string
- func (o *GetSecretsInternalServerError) GetPayload() *models.SecretsListResponse
- func (o *GetSecretsInternalServerError) IsClientError() bool
- func (o *GetSecretsInternalServerError) IsCode(code int) bool
- func (o *GetSecretsInternalServerError) IsRedirect() bool
- func (o *GetSecretsInternalServerError) IsServerError() bool
- func (o *GetSecretsInternalServerError) IsSuccess() bool
- func (o *GetSecretsInternalServerError) String() string
- type GetSecretsNameBadRequest
- func (o *GetSecretsNameBadRequest) Code() int
- func (o *GetSecretsNameBadRequest) Error() string
- func (o *GetSecretsNameBadRequest) GetPayload() *models.ErrorResponse
- func (o *GetSecretsNameBadRequest) IsClientError() bool
- func (o *GetSecretsNameBadRequest) IsCode(code int) bool
- func (o *GetSecretsNameBadRequest) IsRedirect() bool
- func (o *GetSecretsNameBadRequest) IsServerError() bool
- func (o *GetSecretsNameBadRequest) IsSuccess() bool
- func (o *GetSecretsNameBadRequest) String() string
- type GetSecretsNameInternalServerError
- func (o *GetSecretsNameInternalServerError) Code() int
- func (o *GetSecretsNameInternalServerError) Error() string
- func (o *GetSecretsNameInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetSecretsNameInternalServerError) IsClientError() bool
- func (o *GetSecretsNameInternalServerError) IsCode(code int) bool
- func (o *GetSecretsNameInternalServerError) IsRedirect() bool
- func (o *GetSecretsNameInternalServerError) IsServerError() bool
- func (o *GetSecretsNameInternalServerError) IsSuccess() bool
- func (o *GetSecretsNameInternalServerError) String() string
- type GetSecretsNameNotFound
- func (o *GetSecretsNameNotFound) Code() int
- func (o *GetSecretsNameNotFound) Error() string
- func (o *GetSecretsNameNotFound) GetPayload() *models.ErrorResponse
- func (o *GetSecretsNameNotFound) IsClientError() bool
- func (o *GetSecretsNameNotFound) IsCode(code int) bool
- func (o *GetSecretsNameNotFound) IsRedirect() bool
- func (o *GetSecretsNameNotFound) IsServerError() bool
- func (o *GetSecretsNameNotFound) IsSuccess() bool
- func (o *GetSecretsNameNotFound) String() string
- type GetSecretsNameOK
- func (o *GetSecretsNameOK) Code() int
- func (o *GetSecretsNameOK) Error() string
- func (o *GetSecretsNameOK) GetPayload() *models.SecretInfoResponse
- func (o *GetSecretsNameOK) IsClientError() bool
- func (o *GetSecretsNameOK) IsCode(code int) bool
- func (o *GetSecretsNameOK) IsRedirect() bool
- func (o *GetSecretsNameOK) IsServerError() bool
- func (o *GetSecretsNameOK) IsSuccess() bool
- func (o *GetSecretsNameOK) String() string
- type GetSecretsNameParams
- func NewGetSecretsNameParams() *GetSecretsNameParams
- func NewGetSecretsNameParamsWithContext(ctx context.Context) *GetSecretsNameParams
- func NewGetSecretsNameParamsWithHTTPClient(client *http.Client) *GetSecretsNameParams
- func NewGetSecretsNameParamsWithTimeout(timeout time.Duration) *GetSecretsNameParams
- func (o *GetSecretsNameParams) SetContext(ctx context.Context)
- func (o *GetSecretsNameParams) SetDefaults()
- func (o *GetSecretsNameParams) SetHTTPClient(client *http.Client)
- func (o *GetSecretsNameParams) SetName(name string)
- func (o *GetSecretsNameParams) SetTimeout(timeout time.Duration)
- func (o *GetSecretsNameParams) WithContext(ctx context.Context) *GetSecretsNameParams
- func (o *GetSecretsNameParams) WithDefaults() *GetSecretsNameParams
- func (o *GetSecretsNameParams) WithHTTPClient(client *http.Client) *GetSecretsNameParams
- func (o *GetSecretsNameParams) WithName(name string) *GetSecretsNameParams
- func (o *GetSecretsNameParams) WithTimeout(timeout time.Duration) *GetSecretsNameParams
- func (o *GetSecretsNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSecretsNameReader
- type GetSecretsOK
- func (o *GetSecretsOK) Code() int
- func (o *GetSecretsOK) Error() string
- func (o *GetSecretsOK) GetPayload() *models.SecretsListResponse
- func (o *GetSecretsOK) IsClientError() bool
- func (o *GetSecretsOK) IsCode(code int) bool
- func (o *GetSecretsOK) IsRedirect() bool
- func (o *GetSecretsOK) IsServerError() bool
- func (o *GetSecretsOK) IsSuccess() bool
- func (o *GetSecretsOK) String() string
- type GetSecretsParams
- func (o *GetSecretsParams) SetContext(ctx context.Context)
- func (o *GetSecretsParams) SetDefaults()
- func (o *GetSecretsParams) SetHTTPClient(client *http.Client)
- func (o *GetSecretsParams) SetTimeout(timeout time.Duration)
- func (o *GetSecretsParams) WithContext(ctx context.Context) *GetSecretsParams
- func (o *GetSecretsParams) WithDefaults() *GetSecretsParams
- func (o *GetSecretsParams) WithHTTPClient(client *http.Client) *GetSecretsParams
- func (o *GetSecretsParams) WithTimeout(timeout time.Duration) *GetSecretsParams
- func (o *GetSecretsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSecretsReader
- type PostSecretsBadRequest
- func (o *PostSecretsBadRequest) Code() int
- func (o *PostSecretsBadRequest) Error() string
- func (o *PostSecretsBadRequest) GetPayload() *models.CreateSecretResponse
- func (o *PostSecretsBadRequest) IsClientError() bool
- func (o *PostSecretsBadRequest) IsCode(code int) bool
- func (o *PostSecretsBadRequest) IsRedirect() bool
- func (o *PostSecretsBadRequest) IsServerError() bool
- func (o *PostSecretsBadRequest) IsSuccess() bool
- func (o *PostSecretsBadRequest) String() string
- type PostSecretsConflict
- func (o *PostSecretsConflict) Code() int
- func (o *PostSecretsConflict) Error() string
- func (o *PostSecretsConflict) GetPayload() *models.CreateSecretResponse
- func (o *PostSecretsConflict) IsClientError() bool
- func (o *PostSecretsConflict) IsCode(code int) bool
- func (o *PostSecretsConflict) IsRedirect() bool
- func (o *PostSecretsConflict) IsServerError() bool
- func (o *PostSecretsConflict) IsSuccess() bool
- func (o *PostSecretsConflict) String() string
- type PostSecretsCreated
- func (o *PostSecretsCreated) Code() int
- func (o *PostSecretsCreated) Error() string
- func (o *PostSecretsCreated) GetPayload() *models.CreateSecretResponse
- func (o *PostSecretsCreated) IsClientError() bool
- func (o *PostSecretsCreated) IsCode(code int) bool
- func (o *PostSecretsCreated) IsRedirect() bool
- func (o *PostSecretsCreated) IsServerError() bool
- func (o *PostSecretsCreated) IsSuccess() bool
- func (o *PostSecretsCreated) String() string
- type PostSecretsInternalServerError
- func (o *PostSecretsInternalServerError) Code() int
- func (o *PostSecretsInternalServerError) Error() string
- func (o *PostSecretsInternalServerError) GetPayload() *models.CreateSecretResponse
- func (o *PostSecretsInternalServerError) IsClientError() bool
- func (o *PostSecretsInternalServerError) IsCode(code int) bool
- func (o *PostSecretsInternalServerError) IsRedirect() bool
- func (o *PostSecretsInternalServerError) IsServerError() bool
- func (o *PostSecretsInternalServerError) IsSuccess() bool
- func (o *PostSecretsInternalServerError) String() string
- type PostSecretsParams
- func (o *PostSecretsParams) SetContext(ctx context.Context)
- func (o *PostSecretsParams) SetDefaults()
- func (o *PostSecretsParams) SetHTTPClient(client *http.Client)
- func (o *PostSecretsParams) SetRequest(request *models.CreateSecretRequest)
- func (o *PostSecretsParams) SetTimeout(timeout time.Duration)
- func (o *PostSecretsParams) WithContext(ctx context.Context) *PostSecretsParams
- func (o *PostSecretsParams) WithDefaults() *PostSecretsParams
- func (o *PostSecretsParams) WithHTTPClient(client *http.Client) *PostSecretsParams
- func (o *PostSecretsParams) WithRequest(request *models.CreateSecretRequest) *PostSecretsParams
- func (o *PostSecretsParams) WithTimeout(timeout time.Duration) *PostSecretsParams
- func (o *PostSecretsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostSecretsReader
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 (o *DeleteSecretsNameBadRequest) Error() string
func (*DeleteSecretsNameBadRequest) GetPayload ¶
func (o *DeleteSecretsNameBadRequest) GetPayload() *models.DeleteSecretResponse
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 ¶
func (o *DeleteSecretsNameInternalServerError) Code() int
Code gets the status code for the delete secrets name internal server error response
func (*DeleteSecretsNameInternalServerError) Error ¶
func (o *DeleteSecretsNameInternalServerError) Error() string
func (*DeleteSecretsNameInternalServerError) GetPayload ¶
func (o *DeleteSecretsNameInternalServerError) GetPayload() *models.DeleteSecretResponse
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 ¶
func (o *DeleteSecretsNameInternalServerError) IsCode(code int) bool
IsCode returns true when this delete secrets name internal server error response a status code equal to that given
func (*DeleteSecretsNameInternalServerError) IsRedirect ¶
func (o *DeleteSecretsNameInternalServerError) IsRedirect() bool
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 ¶
func (o *DeleteSecretsNameInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete secrets name internal server error response has a 2xx status code
func (*DeleteSecretsNameInternalServerError) String ¶
func (o *DeleteSecretsNameInternalServerError) String() 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 (o *DeleteSecretsNameNotFound) GetPayload() *models.DeleteSecretResponse
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 (o *DeleteSecretsNameOK) GetPayload() *models.DeleteSecretResponse
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 ¶
func (o *DeleteSecretsNameParams) WithContext(ctx context.Context) *DeleteSecretsNameParams
WithContext adds the context to the delete secrets name params
func (*DeleteSecretsNameParams) WithDefaults ¶
func (o *DeleteSecretsNameParams) WithDefaults() *DeleteSecretsNameParams
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 ¶
func (o *DeleteSecretsNameParams) WithName(name string) *DeleteSecretsNameParams
WithName adds the name to the delete secrets name params
func (*DeleteSecretsNameParams) WithTimeout ¶
func (o *DeleteSecretsNameParams) WithTimeout(timeout time.Duration) *DeleteSecretsNameParams
WithTimeout adds the timeout to the delete secrets name params
func (*DeleteSecretsNameParams) WriteToRequest ¶
func (o *DeleteSecretsNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetSecretsInternalServerError) Code() int
Code gets the status code for the get secrets internal server error response
func (*GetSecretsInternalServerError) Error ¶
func (o *GetSecretsInternalServerError) Error() string
func (*GetSecretsInternalServerError) GetPayload ¶
func (o *GetSecretsInternalServerError) GetPayload() *models.SecretsListResponse
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 ¶
func (o *GetSecretsInternalServerError) String() 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 (o *GetSecretsNameBadRequest) GetPayload() *models.ErrorResponse
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 ¶
func (o *GetSecretsNameInternalServerError) Code() int
Code gets the status code for the get secrets name internal server error response
func (*GetSecretsNameInternalServerError) Error ¶
func (o *GetSecretsNameInternalServerError) Error() string
func (*GetSecretsNameInternalServerError) GetPayload ¶
func (o *GetSecretsNameInternalServerError) GetPayload() *models.ErrorResponse
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 ¶
func (o *GetSecretsNameInternalServerError) String() 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 ¶
func (o *GetSecretsNameParams) WithContext(ctx context.Context) *GetSecretsNameParams
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 ¶
func (o *GetSecretsNameParams) WithName(name string) *GetSecretsNameParams
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 (o *PostSecretsBadRequest) GetPayload() *models.CreateSecretResponse
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 (o *PostSecretsConflict) GetPayload() *models.CreateSecretResponse
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 (o *PostSecretsCreated) GetPayload() *models.CreateSecretResponse
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 ¶
func (o *PostSecretsInternalServerError) Code() int
Code gets the status code for the post secrets internal server error response
func (*PostSecretsInternalServerError) Error ¶
func (o *PostSecretsInternalServerError) Error() string
func (*PostSecretsInternalServerError) GetPayload ¶
func (o *PostSecretsInternalServerError) GetPayload() *models.CreateSecretResponse
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 ¶
func (o *PostSecretsInternalServerError) String() 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 ¶
func (o *PostSecretsParams) WithRequest(request *models.CreateSecretRequest) *PostSecretsParams
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.