Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateSecret(params *CreateSecretParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSecretOK, error)
- func (a *Client) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSecretOK, error)
- func (a *Client) GetSecret(params *GetSecretParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSecretOK, error)
- func (a *Client) ListSecrets(params *ListSecretsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSecretsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSecret(params *UpdateSecretParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateSecretOK, error)
- type ClientOption
- type ClientService
- type CreateSecretBadRequest
- func (o *CreateSecretBadRequest) Code() int
- func (o *CreateSecretBadRequest) Error() string
- func (o *CreateSecretBadRequest) GetPayload() *models.ErrorResponse
- func (o *CreateSecretBadRequest) IsClientError() bool
- func (o *CreateSecretBadRequest) IsCode(code int) bool
- func (o *CreateSecretBadRequest) IsRedirect() bool
- func (o *CreateSecretBadRequest) IsServerError() bool
- func (o *CreateSecretBadRequest) IsSuccess() bool
- func (o *CreateSecretBadRequest) String() string
- type CreateSecretOK
- func (o *CreateSecretOK) Code() int
- func (o *CreateSecretOK) Error() string
- func (o *CreateSecretOK) GetPayload() *models.Secret
- func (o *CreateSecretOK) IsClientError() bool
- func (o *CreateSecretOK) IsCode(code int) bool
- func (o *CreateSecretOK) IsRedirect() bool
- func (o *CreateSecretOK) IsServerError() bool
- func (o *CreateSecretOK) IsSuccess() bool
- func (o *CreateSecretOK) String() string
- type CreateSecretParams
- func (o *CreateSecretParams) SetContext(ctx context.Context)
- func (o *CreateSecretParams) SetData(data *models.Secret)
- func (o *CreateSecretParams) SetDefaults()
- func (o *CreateSecretParams) SetHTTPClient(client *http.Client)
- func (o *CreateSecretParams) SetOrgName(orgName string)
- func (o *CreateSecretParams) SetTimeout(timeout time.Duration)
- func (o *CreateSecretParams) WithContext(ctx context.Context) *CreateSecretParams
- func (o *CreateSecretParams) WithData(data *models.Secret) *CreateSecretParams
- func (o *CreateSecretParams) WithDefaults() *CreateSecretParams
- func (o *CreateSecretParams) WithHTTPClient(client *http.Client) *CreateSecretParams
- func (o *CreateSecretParams) WithOrgName(orgName string) *CreateSecretParams
- func (o *CreateSecretParams) WithTimeout(timeout time.Duration) *CreateSecretParams
- func (o *CreateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSecretReader
- type CreateSecretUnauthorized
- func (o *CreateSecretUnauthorized) Code() int
- func (o *CreateSecretUnauthorized) Error() string
- func (o *CreateSecretUnauthorized) GetPayload() *models.ErrorResponse
- func (o *CreateSecretUnauthorized) IsClientError() bool
- func (o *CreateSecretUnauthorized) IsCode(code int) bool
- func (o *CreateSecretUnauthorized) IsRedirect() bool
- func (o *CreateSecretUnauthorized) IsServerError() bool
- func (o *CreateSecretUnauthorized) IsSuccess() bool
- func (o *CreateSecretUnauthorized) String() string
- type DeleteSecretNotFound
- func (o *DeleteSecretNotFound) Code() int
- func (o *DeleteSecretNotFound) Error() string
- func (o *DeleteSecretNotFound) GetPayload() *models.ErrorResponse
- func (o *DeleteSecretNotFound) IsClientError() bool
- func (o *DeleteSecretNotFound) IsCode(code int) bool
- func (o *DeleteSecretNotFound) IsRedirect() bool
- func (o *DeleteSecretNotFound) IsServerError() bool
- func (o *DeleteSecretNotFound) IsSuccess() bool
- func (o *DeleteSecretNotFound) String() string
- type DeleteSecretOK
- func (o *DeleteSecretOK) Code() int
- func (o *DeleteSecretOK) Error() string
- func (o *DeleteSecretOK) IsClientError() bool
- func (o *DeleteSecretOK) IsCode(code int) bool
- func (o *DeleteSecretOK) IsRedirect() bool
- func (o *DeleteSecretOK) IsServerError() bool
- func (o *DeleteSecretOK) IsSuccess() bool
- func (o *DeleteSecretOK) String() string
- type DeleteSecretParams
- func (o *DeleteSecretParams) SetContext(ctx context.Context)
- func (o *DeleteSecretParams) SetDefaults()
- func (o *DeleteSecretParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSecretParams) SetOrgName(orgName string)
- func (o *DeleteSecretParams) SetSecretName(secretName string)
- func (o *DeleteSecretParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSecretParams) WithContext(ctx context.Context) *DeleteSecretParams
- func (o *DeleteSecretParams) WithDefaults() *DeleteSecretParams
- func (o *DeleteSecretParams) WithHTTPClient(client *http.Client) *DeleteSecretParams
- func (o *DeleteSecretParams) WithOrgName(orgName string) *DeleteSecretParams
- func (o *DeleteSecretParams) WithSecretName(secretName string) *DeleteSecretParams
- func (o *DeleteSecretParams) WithTimeout(timeout time.Duration) *DeleteSecretParams
- func (o *DeleteSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSecretReader
- type GetSecretNotFound
- func (o *GetSecretNotFound) Code() int
- func (o *GetSecretNotFound) Error() string
- func (o *GetSecretNotFound) GetPayload() *models.ErrorResponse
- func (o *GetSecretNotFound) IsClientError() bool
- func (o *GetSecretNotFound) IsCode(code int) bool
- func (o *GetSecretNotFound) IsRedirect() bool
- func (o *GetSecretNotFound) IsServerError() bool
- func (o *GetSecretNotFound) IsSuccess() bool
- func (o *GetSecretNotFound) String() string
- type GetSecretOK
- func (o *GetSecretOK) Code() int
- func (o *GetSecretOK) Error() string
- func (o *GetSecretOK) GetPayload() *models.Secret
- func (o *GetSecretOK) IsClientError() bool
- func (o *GetSecretOK) IsCode(code int) bool
- func (o *GetSecretOK) IsRedirect() bool
- func (o *GetSecretOK) IsServerError() bool
- func (o *GetSecretOK) IsSuccess() bool
- func (o *GetSecretOK) String() string
- type GetSecretParams
- func (o *GetSecretParams) SetContext(ctx context.Context)
- func (o *GetSecretParams) SetDefaults()
- func (o *GetSecretParams) SetHTTPClient(client *http.Client)
- func (o *GetSecretParams) SetOrgName(orgName string)
- func (o *GetSecretParams) SetSecretName(secretName string)
- func (o *GetSecretParams) SetTimeout(timeout time.Duration)
- func (o *GetSecretParams) WithContext(ctx context.Context) *GetSecretParams
- func (o *GetSecretParams) WithDefaults() *GetSecretParams
- func (o *GetSecretParams) WithHTTPClient(client *http.Client) *GetSecretParams
- func (o *GetSecretParams) WithOrgName(orgName string) *GetSecretParams
- func (o *GetSecretParams) WithSecretName(secretName string) *GetSecretParams
- func (o *GetSecretParams) WithTimeout(timeout time.Duration) *GetSecretParams
- func (o *GetSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSecretReader
- type ListSecretsOK
- func (o *ListSecretsOK) Code() int
- func (o *ListSecretsOK) Error() string
- func (o *ListSecretsOK) GetPayload() []*models.Secret
- func (o *ListSecretsOK) IsClientError() bool
- func (o *ListSecretsOK) IsCode(code int) bool
- func (o *ListSecretsOK) IsRedirect() bool
- func (o *ListSecretsOK) IsServerError() bool
- func (o *ListSecretsOK) IsSuccess() bool
- func (o *ListSecretsOK) String() string
- type ListSecretsParams
- func (o *ListSecretsParams) SetContext(ctx context.Context)
- func (o *ListSecretsParams) SetDefaults()
- func (o *ListSecretsParams) SetHTTPClient(client *http.Client)
- func (o *ListSecretsParams) SetOrgName(orgName string)
- func (o *ListSecretsParams) SetTimeout(timeout time.Duration)
- func (o *ListSecretsParams) WithContext(ctx context.Context) *ListSecretsParams
- func (o *ListSecretsParams) WithDefaults() *ListSecretsParams
- func (o *ListSecretsParams) WithHTTPClient(client *http.Client) *ListSecretsParams
- func (o *ListSecretsParams) WithOrgName(orgName string) *ListSecretsParams
- func (o *ListSecretsParams) WithTimeout(timeout time.Duration) *ListSecretsParams
- func (o *ListSecretsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSecretsReader
- type ListSecretsUnauthorized
- func (o *ListSecretsUnauthorized) Code() int
- func (o *ListSecretsUnauthorized) Error() string
- func (o *ListSecretsUnauthorized) GetPayload() *models.ErrorResponse
- func (o *ListSecretsUnauthorized) IsClientError() bool
- func (o *ListSecretsUnauthorized) IsCode(code int) bool
- func (o *ListSecretsUnauthorized) IsRedirect() bool
- func (o *ListSecretsUnauthorized) IsServerError() bool
- func (o *ListSecretsUnauthorized) IsSuccess() bool
- func (o *ListSecretsUnauthorized) String() string
- type UpdateSecretBadRequest
- func (o *UpdateSecretBadRequest) Code() int
- func (o *UpdateSecretBadRequest) Error() string
- func (o *UpdateSecretBadRequest) GetPayload() *models.ErrorResponse
- func (o *UpdateSecretBadRequest) IsClientError() bool
- func (o *UpdateSecretBadRequest) IsCode(code int) bool
- func (o *UpdateSecretBadRequest) IsRedirect() bool
- func (o *UpdateSecretBadRequest) IsServerError() bool
- func (o *UpdateSecretBadRequest) IsSuccess() bool
- func (o *UpdateSecretBadRequest) String() string
- type UpdateSecretNotFound
- func (o *UpdateSecretNotFound) Code() int
- func (o *UpdateSecretNotFound) Error() string
- func (o *UpdateSecretNotFound) GetPayload() *models.ErrorResponse
- func (o *UpdateSecretNotFound) IsClientError() bool
- func (o *UpdateSecretNotFound) IsCode(code int) bool
- func (o *UpdateSecretNotFound) IsRedirect() bool
- func (o *UpdateSecretNotFound) IsServerError() bool
- func (o *UpdateSecretNotFound) IsSuccess() bool
- func (o *UpdateSecretNotFound) String() string
- type UpdateSecretOK
- func (o *UpdateSecretOK) Code() int
- func (o *UpdateSecretOK) Error() string
- func (o *UpdateSecretOK) GetPayload() *models.Secret
- func (o *UpdateSecretOK) IsClientError() bool
- func (o *UpdateSecretOK) IsCode(code int) bool
- func (o *UpdateSecretOK) IsRedirect() bool
- func (o *UpdateSecretOK) IsServerError() bool
- func (o *UpdateSecretOK) IsSuccess() bool
- func (o *UpdateSecretOK) String() string
- type UpdateSecretParams
- func (o *UpdateSecretParams) SetContext(ctx context.Context)
- func (o *UpdateSecretParams) SetData(data *models.Secret)
- func (o *UpdateSecretParams) SetDefaults()
- func (o *UpdateSecretParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSecretParams) SetOrgName(orgName string)
- func (o *UpdateSecretParams) SetSecretName(secretName string)
- func (o *UpdateSecretParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSecretParams) WithContext(ctx context.Context) *UpdateSecretParams
- func (o *UpdateSecretParams) WithData(data *models.Secret) *UpdateSecretParams
- func (o *UpdateSecretParams) WithDefaults() *UpdateSecretParams
- func (o *UpdateSecretParams) WithHTTPClient(client *http.Client) *UpdateSecretParams
- func (o *UpdateSecretParams) WithOrgName(orgName string) *UpdateSecretParams
- func (o *UpdateSecretParams) WithSecretName(secretName string) *UpdateSecretParams
- func (o *UpdateSecretParams) WithTimeout(timeout time.Duration) *UpdateSecretParams
- func (o *UpdateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSecretReader
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) CreateSecret ¶
func (a *Client) CreateSecret(params *CreateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSecretOK, error)
CreateSecret creates a secret
Create a new encrypted secret for the org.
func (*Client) DeleteSecret ¶
func (a *Client) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretOK, error)
DeleteSecret deletes a secret
Delete a secret from the org.
func (*Client) GetSecret ¶
func (a *Client) GetSecret(params *GetSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecretOK, error)
GetSecret gets a secret
Get secret metadata (no value).
func (*Client) ListSecrets ¶
func (a *Client) ListSecrets(params *ListSecretsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSecretsOK, error)
ListSecrets lists secrets
List all secrets for the org (metadata only, no values).
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateSecret ¶
func (a *Client) UpdateSecret(params *UpdateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSecretOK, error)
UpdateSecret updates a secret
Update the value (and optionally description) of an existing secret.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
CreateSecret(params *CreateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSecretOK, error)
DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretOK, error)
GetSecret(params *GetSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecretOK, error)
ListSecrets(params *ListSecretsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSecretsOK, error)
UpdateSecret(params *UpdateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSecretOK, 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 CreateSecretBadRequest ¶
type CreateSecretBadRequest struct {
Payload *models.ErrorResponse
}
CreateSecretBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateSecretBadRequest ¶
func NewCreateSecretBadRequest() *CreateSecretBadRequest
NewCreateSecretBadRequest creates a CreateSecretBadRequest with default headers values
func (*CreateSecretBadRequest) Code ¶
func (o *CreateSecretBadRequest) Code() int
Code gets the status code for the create secret bad request response
func (*CreateSecretBadRequest) Error ¶
func (o *CreateSecretBadRequest) Error() string
func (*CreateSecretBadRequest) GetPayload ¶
func (o *CreateSecretBadRequest) GetPayload() *models.ErrorResponse
func (*CreateSecretBadRequest) IsClientError ¶
func (o *CreateSecretBadRequest) IsClientError() bool
IsClientError returns true when this create secret bad request response has a 4xx status code
func (*CreateSecretBadRequest) IsCode ¶
func (o *CreateSecretBadRequest) IsCode(code int) bool
IsCode returns true when this create secret bad request response a status code equal to that given
func (*CreateSecretBadRequest) IsRedirect ¶
func (o *CreateSecretBadRequest) IsRedirect() bool
IsRedirect returns true when this create secret bad request response has a 3xx status code
func (*CreateSecretBadRequest) IsServerError ¶
func (o *CreateSecretBadRequest) IsServerError() bool
IsServerError returns true when this create secret bad request response has a 5xx status code
func (*CreateSecretBadRequest) IsSuccess ¶
func (o *CreateSecretBadRequest) IsSuccess() bool
IsSuccess returns true when this create secret bad request response has a 2xx status code
func (*CreateSecretBadRequest) String ¶
func (o *CreateSecretBadRequest) String() string
type CreateSecretOK ¶
CreateSecretOK describes a response with status code 200, with default header values.
OK
func NewCreateSecretOK ¶
func NewCreateSecretOK() *CreateSecretOK
NewCreateSecretOK creates a CreateSecretOK with default headers values
func (*CreateSecretOK) Code ¶
func (o *CreateSecretOK) Code() int
Code gets the status code for the create secret o k response
func (*CreateSecretOK) Error ¶
func (o *CreateSecretOK) Error() string
func (*CreateSecretOK) GetPayload ¶
func (o *CreateSecretOK) GetPayload() *models.Secret
func (*CreateSecretOK) IsClientError ¶
func (o *CreateSecretOK) IsClientError() bool
IsClientError returns true when this create secret o k response has a 4xx status code
func (*CreateSecretOK) IsCode ¶
func (o *CreateSecretOK) IsCode(code int) bool
IsCode returns true when this create secret o k response a status code equal to that given
func (*CreateSecretOK) IsRedirect ¶
func (o *CreateSecretOK) IsRedirect() bool
IsRedirect returns true when this create secret o k response has a 3xx status code
func (*CreateSecretOK) IsServerError ¶
func (o *CreateSecretOK) IsServerError() bool
IsServerError returns true when this create secret o k response has a 5xx status code
func (*CreateSecretOK) IsSuccess ¶
func (o *CreateSecretOK) IsSuccess() bool
IsSuccess returns true when this create secret o k response has a 2xx status code
func (*CreateSecretOK) String ¶
func (o *CreateSecretOK) String() string
type CreateSecretParams ¶
type CreateSecretParams struct {
/* Data.
Secret (name + value required)
*/
Data *models.Secret
/* OrgName.
Signadot Org Name
*/
OrgName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateSecretParams contains all the parameters to send to the API endpoint
for the create secret operation. Typically these are written to a http.Request.
func NewCreateSecretParams ¶
func NewCreateSecretParams() *CreateSecretParams
NewCreateSecretParams creates a new CreateSecretParams 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 NewCreateSecretParamsWithContext ¶
func NewCreateSecretParamsWithContext(ctx context.Context) *CreateSecretParams
NewCreateSecretParamsWithContext creates a new CreateSecretParams object with the ability to set a context for a request.
func NewCreateSecretParamsWithHTTPClient ¶
func NewCreateSecretParamsWithHTTPClient(client *http.Client) *CreateSecretParams
NewCreateSecretParamsWithHTTPClient creates a new CreateSecretParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSecretParamsWithTimeout ¶
func NewCreateSecretParamsWithTimeout(timeout time.Duration) *CreateSecretParams
NewCreateSecretParamsWithTimeout creates a new CreateSecretParams object with the ability to set a timeout on a request.
func (*CreateSecretParams) SetContext ¶
func (o *CreateSecretParams) SetContext(ctx context.Context)
SetContext adds the context to the create secret params
func (*CreateSecretParams) SetData ¶
func (o *CreateSecretParams) SetData(data *models.Secret)
SetData adds the data to the create secret params
func (*CreateSecretParams) SetDefaults ¶
func (o *CreateSecretParams) SetDefaults()
SetDefaults hydrates default values in the create secret params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSecretParams) SetHTTPClient ¶
func (o *CreateSecretParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create secret params
func (*CreateSecretParams) SetOrgName ¶
func (o *CreateSecretParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the create secret params
func (*CreateSecretParams) SetTimeout ¶
func (o *CreateSecretParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create secret params
func (*CreateSecretParams) WithContext ¶
func (o *CreateSecretParams) WithContext(ctx context.Context) *CreateSecretParams
WithContext adds the context to the create secret params
func (*CreateSecretParams) WithData ¶
func (o *CreateSecretParams) WithData(data *models.Secret) *CreateSecretParams
WithData adds the data to the create secret params
func (*CreateSecretParams) WithDefaults ¶
func (o *CreateSecretParams) WithDefaults() *CreateSecretParams
WithDefaults hydrates default values in the create secret params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSecretParams) WithHTTPClient ¶
func (o *CreateSecretParams) WithHTTPClient(client *http.Client) *CreateSecretParams
WithHTTPClient adds the HTTPClient to the create secret params
func (*CreateSecretParams) WithOrgName ¶
func (o *CreateSecretParams) WithOrgName(orgName string) *CreateSecretParams
WithOrgName adds the orgName to the create secret params
func (*CreateSecretParams) WithTimeout ¶
func (o *CreateSecretParams) WithTimeout(timeout time.Duration) *CreateSecretParams
WithTimeout adds the timeout to the create secret params
func (*CreateSecretParams) WriteToRequest ¶
func (o *CreateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSecretReader ¶
type CreateSecretReader struct {
// contains filtered or unexported fields
}
CreateSecretReader is a Reader for the CreateSecret structure.
func (*CreateSecretReader) ReadResponse ¶
func (o *CreateSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type CreateSecretUnauthorized ¶
type CreateSecretUnauthorized struct {
}
CreateSecretUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateSecretUnauthorized ¶
func NewCreateSecretUnauthorized() *CreateSecretUnauthorized
NewCreateSecretUnauthorized creates a CreateSecretUnauthorized with default headers values
func (*CreateSecretUnauthorized) Code ¶
func (o *CreateSecretUnauthorized) Code() int
Code gets the status code for the create secret unauthorized response
func (*CreateSecretUnauthorized) Error ¶
func (o *CreateSecretUnauthorized) Error() string
func (*CreateSecretUnauthorized) GetPayload ¶
func (o *CreateSecretUnauthorized) GetPayload() *models.ErrorResponse
func (*CreateSecretUnauthorized) IsClientError ¶
func (o *CreateSecretUnauthorized) IsClientError() bool
IsClientError returns true when this create secret unauthorized response has a 4xx status code
func (*CreateSecretUnauthorized) IsCode ¶
func (o *CreateSecretUnauthorized) IsCode(code int) bool
IsCode returns true when this create secret unauthorized response a status code equal to that given
func (*CreateSecretUnauthorized) IsRedirect ¶
func (o *CreateSecretUnauthorized) IsRedirect() bool
IsRedirect returns true when this create secret unauthorized response has a 3xx status code
func (*CreateSecretUnauthorized) IsServerError ¶
func (o *CreateSecretUnauthorized) IsServerError() bool
IsServerError returns true when this create secret unauthorized response has a 5xx status code
func (*CreateSecretUnauthorized) IsSuccess ¶
func (o *CreateSecretUnauthorized) IsSuccess() bool
IsSuccess returns true when this create secret unauthorized response has a 2xx status code
func (*CreateSecretUnauthorized) String ¶
func (o *CreateSecretUnauthorized) String() string
type DeleteSecretNotFound ¶
type DeleteSecretNotFound struct {
Payload *models.ErrorResponse
}
DeleteSecretNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteSecretNotFound ¶
func NewDeleteSecretNotFound() *DeleteSecretNotFound
NewDeleteSecretNotFound creates a DeleteSecretNotFound with default headers values
func (*DeleteSecretNotFound) Code ¶
func (o *DeleteSecretNotFound) Code() int
Code gets the status code for the delete secret not found response
func (*DeleteSecretNotFound) Error ¶
func (o *DeleteSecretNotFound) Error() string
func (*DeleteSecretNotFound) GetPayload ¶
func (o *DeleteSecretNotFound) GetPayload() *models.ErrorResponse
func (*DeleteSecretNotFound) IsClientError ¶
func (o *DeleteSecretNotFound) IsClientError() bool
IsClientError returns true when this delete secret not found response has a 4xx status code
func (*DeleteSecretNotFound) IsCode ¶
func (o *DeleteSecretNotFound) IsCode(code int) bool
IsCode returns true when this delete secret not found response a status code equal to that given
func (*DeleteSecretNotFound) IsRedirect ¶
func (o *DeleteSecretNotFound) IsRedirect() bool
IsRedirect returns true when this delete secret not found response has a 3xx status code
func (*DeleteSecretNotFound) IsServerError ¶
func (o *DeleteSecretNotFound) IsServerError() bool
IsServerError returns true when this delete secret not found response has a 5xx status code
func (*DeleteSecretNotFound) IsSuccess ¶
func (o *DeleteSecretNotFound) IsSuccess() bool
IsSuccess returns true when this delete secret not found response has a 2xx status code
func (*DeleteSecretNotFound) String ¶
func (o *DeleteSecretNotFound) String() string
type DeleteSecretOK ¶
type DeleteSecretOK struct {
}
DeleteSecretOK describes a response with status code 200, with default header values.
OK
func NewDeleteSecretOK ¶
func NewDeleteSecretOK() *DeleteSecretOK
NewDeleteSecretOK creates a DeleteSecretOK with default headers values
func (*DeleteSecretOK) Code ¶
func (o *DeleteSecretOK) Code() int
Code gets the status code for the delete secret o k response
func (*DeleteSecretOK) Error ¶
func (o *DeleteSecretOK) Error() string
func (*DeleteSecretOK) IsClientError ¶
func (o *DeleteSecretOK) IsClientError() bool
IsClientError returns true when this delete secret o k response has a 4xx status code
func (*DeleteSecretOK) IsCode ¶
func (o *DeleteSecretOK) IsCode(code int) bool
IsCode returns true when this delete secret o k response a status code equal to that given
func (*DeleteSecretOK) IsRedirect ¶
func (o *DeleteSecretOK) IsRedirect() bool
IsRedirect returns true when this delete secret o k response has a 3xx status code
func (*DeleteSecretOK) IsServerError ¶
func (o *DeleteSecretOK) IsServerError() bool
IsServerError returns true when this delete secret o k response has a 5xx status code
func (*DeleteSecretOK) IsSuccess ¶
func (o *DeleteSecretOK) IsSuccess() bool
IsSuccess returns true when this delete secret o k response has a 2xx status code
func (*DeleteSecretOK) String ¶
func (o *DeleteSecretOK) String() string
type DeleteSecretParams ¶
type DeleteSecretParams struct {
/* OrgName.
Signadot Org Name
*/
OrgName string
/* SecretName.
Secret Name
*/
SecretName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteSecretParams contains all the parameters to send to the API endpoint
for the delete secret operation. Typically these are written to a http.Request.
func NewDeleteSecretParams ¶
func NewDeleteSecretParams() *DeleteSecretParams
NewDeleteSecretParams creates a new DeleteSecretParams 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 NewDeleteSecretParamsWithContext ¶
func NewDeleteSecretParamsWithContext(ctx context.Context) *DeleteSecretParams
NewDeleteSecretParamsWithContext creates a new DeleteSecretParams object with the ability to set a context for a request.
func NewDeleteSecretParamsWithHTTPClient ¶
func NewDeleteSecretParamsWithHTTPClient(client *http.Client) *DeleteSecretParams
NewDeleteSecretParamsWithHTTPClient creates a new DeleteSecretParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSecretParamsWithTimeout ¶
func NewDeleteSecretParamsWithTimeout(timeout time.Duration) *DeleteSecretParams
NewDeleteSecretParamsWithTimeout creates a new DeleteSecretParams object with the ability to set a timeout on a request.
func (*DeleteSecretParams) SetContext ¶
func (o *DeleteSecretParams) SetContext(ctx context.Context)
SetContext adds the context to the delete secret params
func (*DeleteSecretParams) SetDefaults ¶
func (o *DeleteSecretParams) SetDefaults()
SetDefaults hydrates default values in the delete secret params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSecretParams) SetHTTPClient ¶
func (o *DeleteSecretParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete secret params
func (*DeleteSecretParams) SetOrgName ¶
func (o *DeleteSecretParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the delete secret params
func (*DeleteSecretParams) SetSecretName ¶
func (o *DeleteSecretParams) SetSecretName(secretName string)
SetSecretName adds the secretName to the delete secret params
func (*DeleteSecretParams) SetTimeout ¶
func (o *DeleteSecretParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete secret params
func (*DeleteSecretParams) WithContext ¶
func (o *DeleteSecretParams) WithContext(ctx context.Context) *DeleteSecretParams
WithContext adds the context to the delete secret params
func (*DeleteSecretParams) WithDefaults ¶
func (o *DeleteSecretParams) WithDefaults() *DeleteSecretParams
WithDefaults hydrates default values in the delete secret params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSecretParams) WithHTTPClient ¶
func (o *DeleteSecretParams) WithHTTPClient(client *http.Client) *DeleteSecretParams
WithHTTPClient adds the HTTPClient to the delete secret params
func (*DeleteSecretParams) WithOrgName ¶
func (o *DeleteSecretParams) WithOrgName(orgName string) *DeleteSecretParams
WithOrgName adds the orgName to the delete secret params
func (*DeleteSecretParams) WithSecretName ¶
func (o *DeleteSecretParams) WithSecretName(secretName string) *DeleteSecretParams
WithSecretName adds the secretName to the delete secret params
func (*DeleteSecretParams) WithTimeout ¶
func (o *DeleteSecretParams) WithTimeout(timeout time.Duration) *DeleteSecretParams
WithTimeout adds the timeout to the delete secret params
func (*DeleteSecretParams) WriteToRequest ¶
func (o *DeleteSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSecretReader ¶
type DeleteSecretReader struct {
// contains filtered or unexported fields
}
DeleteSecretReader is a Reader for the DeleteSecret structure.
func (*DeleteSecretReader) ReadResponse ¶
func (o *DeleteSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetSecretNotFound ¶
type GetSecretNotFound struct {
Payload *models.ErrorResponse
}
GetSecretNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetSecretNotFound ¶
func NewGetSecretNotFound() *GetSecretNotFound
NewGetSecretNotFound creates a GetSecretNotFound with default headers values
func (*GetSecretNotFound) Code ¶
func (o *GetSecretNotFound) Code() int
Code gets the status code for the get secret not found response
func (*GetSecretNotFound) Error ¶
func (o *GetSecretNotFound) Error() string
func (*GetSecretNotFound) GetPayload ¶
func (o *GetSecretNotFound) GetPayload() *models.ErrorResponse
func (*GetSecretNotFound) IsClientError ¶
func (o *GetSecretNotFound) IsClientError() bool
IsClientError returns true when this get secret not found response has a 4xx status code
func (*GetSecretNotFound) IsCode ¶
func (o *GetSecretNotFound) IsCode(code int) bool
IsCode returns true when this get secret not found response a status code equal to that given
func (*GetSecretNotFound) IsRedirect ¶
func (o *GetSecretNotFound) IsRedirect() bool
IsRedirect returns true when this get secret not found response has a 3xx status code
func (*GetSecretNotFound) IsServerError ¶
func (o *GetSecretNotFound) IsServerError() bool
IsServerError returns true when this get secret not found response has a 5xx status code
func (*GetSecretNotFound) IsSuccess ¶
func (o *GetSecretNotFound) IsSuccess() bool
IsSuccess returns true when this get secret not found response has a 2xx status code
func (*GetSecretNotFound) String ¶
func (o *GetSecretNotFound) String() string
type GetSecretOK ¶
GetSecretOK describes a response with status code 200, with default header values.
OK
func NewGetSecretOK ¶
func NewGetSecretOK() *GetSecretOK
NewGetSecretOK creates a GetSecretOK with default headers values
func (*GetSecretOK) Code ¶
func (o *GetSecretOK) Code() int
Code gets the status code for the get secret o k response
func (*GetSecretOK) Error ¶
func (o *GetSecretOK) Error() string
func (*GetSecretOK) GetPayload ¶
func (o *GetSecretOK) GetPayload() *models.Secret
func (*GetSecretOK) IsClientError ¶
func (o *GetSecretOK) IsClientError() bool
IsClientError returns true when this get secret o k response has a 4xx status code
func (*GetSecretOK) IsCode ¶
func (o *GetSecretOK) IsCode(code int) bool
IsCode returns true when this get secret o k response a status code equal to that given
func (*GetSecretOK) IsRedirect ¶
func (o *GetSecretOK) IsRedirect() bool
IsRedirect returns true when this get secret o k response has a 3xx status code
func (*GetSecretOK) IsServerError ¶
func (o *GetSecretOK) IsServerError() bool
IsServerError returns true when this get secret o k response has a 5xx status code
func (*GetSecretOK) IsSuccess ¶
func (o *GetSecretOK) IsSuccess() bool
IsSuccess returns true when this get secret o k response has a 2xx status code
func (*GetSecretOK) String ¶
func (o *GetSecretOK) String() string
type GetSecretParams ¶
type GetSecretParams struct {
/* OrgName.
Signadot Org Name
*/
OrgName string
/* SecretName.
Secret Name
*/
SecretName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSecretParams contains all the parameters to send to the API endpoint
for the get secret operation. Typically these are written to a http.Request.
func NewGetSecretParams ¶
func NewGetSecretParams() *GetSecretParams
NewGetSecretParams creates a new GetSecretParams 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 NewGetSecretParamsWithContext ¶
func NewGetSecretParamsWithContext(ctx context.Context) *GetSecretParams
NewGetSecretParamsWithContext creates a new GetSecretParams object with the ability to set a context for a request.
func NewGetSecretParamsWithHTTPClient ¶
func NewGetSecretParamsWithHTTPClient(client *http.Client) *GetSecretParams
NewGetSecretParamsWithHTTPClient creates a new GetSecretParams object with the ability to set a custom HTTPClient for a request.
func NewGetSecretParamsWithTimeout ¶
func NewGetSecretParamsWithTimeout(timeout time.Duration) *GetSecretParams
NewGetSecretParamsWithTimeout creates a new GetSecretParams object with the ability to set a timeout on a request.
func (*GetSecretParams) SetContext ¶
func (o *GetSecretParams) SetContext(ctx context.Context)
SetContext adds the context to the get secret params
func (*GetSecretParams) SetDefaults ¶
func (o *GetSecretParams) SetDefaults()
SetDefaults hydrates default values in the get secret params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecretParams) SetHTTPClient ¶
func (o *GetSecretParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get secret params
func (*GetSecretParams) SetOrgName ¶
func (o *GetSecretParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the get secret params
func (*GetSecretParams) SetSecretName ¶
func (o *GetSecretParams) SetSecretName(secretName string)
SetSecretName adds the secretName to the get secret params
func (*GetSecretParams) SetTimeout ¶
func (o *GetSecretParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get secret params
func (*GetSecretParams) WithContext ¶
func (o *GetSecretParams) WithContext(ctx context.Context) *GetSecretParams
WithContext adds the context to the get secret params
func (*GetSecretParams) WithDefaults ¶
func (o *GetSecretParams) WithDefaults() *GetSecretParams
WithDefaults hydrates default values in the get secret params (not the query body).
All values with no default are reset to their zero value.
func (*GetSecretParams) WithHTTPClient ¶
func (o *GetSecretParams) WithHTTPClient(client *http.Client) *GetSecretParams
WithHTTPClient adds the HTTPClient to the get secret params
func (*GetSecretParams) WithOrgName ¶
func (o *GetSecretParams) WithOrgName(orgName string) *GetSecretParams
WithOrgName adds the orgName to the get secret params
func (*GetSecretParams) WithSecretName ¶
func (o *GetSecretParams) WithSecretName(secretName string) *GetSecretParams
WithSecretName adds the secretName to the get secret params
func (*GetSecretParams) WithTimeout ¶
func (o *GetSecretParams) WithTimeout(timeout time.Duration) *GetSecretParams
WithTimeout adds the timeout to the get secret params
func (*GetSecretParams) WriteToRequest ¶
func (o *GetSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSecretReader ¶
type GetSecretReader struct {
// contains filtered or unexported fields
}
GetSecretReader is a Reader for the GetSecret structure.
func (*GetSecretReader) ReadResponse ¶
func (o *GetSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListSecretsOK ¶
ListSecretsOK describes a response with status code 200, with default header values.
OK
func NewListSecretsOK ¶
func NewListSecretsOK() *ListSecretsOK
NewListSecretsOK creates a ListSecretsOK with default headers values
func (*ListSecretsOK) Code ¶
func (o *ListSecretsOK) Code() int
Code gets the status code for the list secrets o k response
func (*ListSecretsOK) Error ¶
func (o *ListSecretsOK) Error() string
func (*ListSecretsOK) GetPayload ¶
func (o *ListSecretsOK) GetPayload() []*models.Secret
func (*ListSecretsOK) IsClientError ¶
func (o *ListSecretsOK) IsClientError() bool
IsClientError returns true when this list secrets o k response has a 4xx status code
func (*ListSecretsOK) IsCode ¶
func (o *ListSecretsOK) IsCode(code int) bool
IsCode returns true when this list secrets o k response a status code equal to that given
func (*ListSecretsOK) IsRedirect ¶
func (o *ListSecretsOK) IsRedirect() bool
IsRedirect returns true when this list secrets o k response has a 3xx status code
func (*ListSecretsOK) IsServerError ¶
func (o *ListSecretsOK) IsServerError() bool
IsServerError returns true when this list secrets o k response has a 5xx status code
func (*ListSecretsOK) IsSuccess ¶
func (o *ListSecretsOK) IsSuccess() bool
IsSuccess returns true when this list secrets o k response has a 2xx status code
func (*ListSecretsOK) String ¶
func (o *ListSecretsOK) String() string
type ListSecretsParams ¶
type ListSecretsParams struct {
/* OrgName.
Signadot Org Name
*/
OrgName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListSecretsParams contains all the parameters to send to the API endpoint
for the list secrets operation. Typically these are written to a http.Request.
func NewListSecretsParams ¶
func NewListSecretsParams() *ListSecretsParams
NewListSecretsParams creates a new ListSecretsParams 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 NewListSecretsParamsWithContext ¶
func NewListSecretsParamsWithContext(ctx context.Context) *ListSecretsParams
NewListSecretsParamsWithContext creates a new ListSecretsParams object with the ability to set a context for a request.
func NewListSecretsParamsWithHTTPClient ¶
func NewListSecretsParamsWithHTTPClient(client *http.Client) *ListSecretsParams
NewListSecretsParamsWithHTTPClient creates a new ListSecretsParams object with the ability to set a custom HTTPClient for a request.
func NewListSecretsParamsWithTimeout ¶
func NewListSecretsParamsWithTimeout(timeout time.Duration) *ListSecretsParams
NewListSecretsParamsWithTimeout creates a new ListSecretsParams object with the ability to set a timeout on a request.
func (*ListSecretsParams) SetContext ¶
func (o *ListSecretsParams) SetContext(ctx context.Context)
SetContext adds the context to the list secrets params
func (*ListSecretsParams) SetDefaults ¶
func (o *ListSecretsParams) SetDefaults()
SetDefaults hydrates default values in the list secrets params (not the query body).
All values with no default are reset to their zero value.
func (*ListSecretsParams) SetHTTPClient ¶
func (o *ListSecretsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list secrets params
func (*ListSecretsParams) SetOrgName ¶
func (o *ListSecretsParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the list secrets params
func (*ListSecretsParams) SetTimeout ¶
func (o *ListSecretsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list secrets params
func (*ListSecretsParams) WithContext ¶
func (o *ListSecretsParams) WithContext(ctx context.Context) *ListSecretsParams
WithContext adds the context to the list secrets params
func (*ListSecretsParams) WithDefaults ¶
func (o *ListSecretsParams) WithDefaults() *ListSecretsParams
WithDefaults hydrates default values in the list secrets params (not the query body).
All values with no default are reset to their zero value.
func (*ListSecretsParams) WithHTTPClient ¶
func (o *ListSecretsParams) WithHTTPClient(client *http.Client) *ListSecretsParams
WithHTTPClient adds the HTTPClient to the list secrets params
func (*ListSecretsParams) WithOrgName ¶
func (o *ListSecretsParams) WithOrgName(orgName string) *ListSecretsParams
WithOrgName adds the orgName to the list secrets params
func (*ListSecretsParams) WithTimeout ¶
func (o *ListSecretsParams) WithTimeout(timeout time.Duration) *ListSecretsParams
WithTimeout adds the timeout to the list secrets params
func (*ListSecretsParams) WriteToRequest ¶
func (o *ListSecretsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSecretsReader ¶
type ListSecretsReader struct {
// contains filtered or unexported fields
}
ListSecretsReader is a Reader for the ListSecrets structure.
func (*ListSecretsReader) ReadResponse ¶
func (o *ListSecretsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListSecretsUnauthorized ¶
type ListSecretsUnauthorized struct {
}
ListSecretsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListSecretsUnauthorized ¶
func NewListSecretsUnauthorized() *ListSecretsUnauthorized
NewListSecretsUnauthorized creates a ListSecretsUnauthorized with default headers values
func (*ListSecretsUnauthorized) Code ¶
func (o *ListSecretsUnauthorized) Code() int
Code gets the status code for the list secrets unauthorized response
func (*ListSecretsUnauthorized) Error ¶
func (o *ListSecretsUnauthorized) Error() string
func (*ListSecretsUnauthorized) GetPayload ¶
func (o *ListSecretsUnauthorized) GetPayload() *models.ErrorResponse
func (*ListSecretsUnauthorized) IsClientError ¶
func (o *ListSecretsUnauthorized) IsClientError() bool
IsClientError returns true when this list secrets unauthorized response has a 4xx status code
func (*ListSecretsUnauthorized) IsCode ¶
func (o *ListSecretsUnauthorized) IsCode(code int) bool
IsCode returns true when this list secrets unauthorized response a status code equal to that given
func (*ListSecretsUnauthorized) IsRedirect ¶
func (o *ListSecretsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list secrets unauthorized response has a 3xx status code
func (*ListSecretsUnauthorized) IsServerError ¶
func (o *ListSecretsUnauthorized) IsServerError() bool
IsServerError returns true when this list secrets unauthorized response has a 5xx status code
func (*ListSecretsUnauthorized) IsSuccess ¶
func (o *ListSecretsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list secrets unauthorized response has a 2xx status code
func (*ListSecretsUnauthorized) String ¶
func (o *ListSecretsUnauthorized) String() string
type UpdateSecretBadRequest ¶
type UpdateSecretBadRequest struct {
Payload *models.ErrorResponse
}
UpdateSecretBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewUpdateSecretBadRequest ¶
func NewUpdateSecretBadRequest() *UpdateSecretBadRequest
NewUpdateSecretBadRequest creates a UpdateSecretBadRequest with default headers values
func (*UpdateSecretBadRequest) Code ¶
func (o *UpdateSecretBadRequest) Code() int
Code gets the status code for the update secret bad request response
func (*UpdateSecretBadRequest) Error ¶
func (o *UpdateSecretBadRequest) Error() string
func (*UpdateSecretBadRequest) GetPayload ¶
func (o *UpdateSecretBadRequest) GetPayload() *models.ErrorResponse
func (*UpdateSecretBadRequest) IsClientError ¶
func (o *UpdateSecretBadRequest) IsClientError() bool
IsClientError returns true when this update secret bad request response has a 4xx status code
func (*UpdateSecretBadRequest) IsCode ¶
func (o *UpdateSecretBadRequest) IsCode(code int) bool
IsCode returns true when this update secret bad request response a status code equal to that given
func (*UpdateSecretBadRequest) IsRedirect ¶
func (o *UpdateSecretBadRequest) IsRedirect() bool
IsRedirect returns true when this update secret bad request response has a 3xx status code
func (*UpdateSecretBadRequest) IsServerError ¶
func (o *UpdateSecretBadRequest) IsServerError() bool
IsServerError returns true when this update secret bad request response has a 5xx status code
func (*UpdateSecretBadRequest) IsSuccess ¶
func (o *UpdateSecretBadRequest) IsSuccess() bool
IsSuccess returns true when this update secret bad request response has a 2xx status code
func (*UpdateSecretBadRequest) String ¶
func (o *UpdateSecretBadRequest) String() string
type UpdateSecretNotFound ¶
type UpdateSecretNotFound struct {
Payload *models.ErrorResponse
}
UpdateSecretNotFound describes a response with status code 404, with default header values.
Not Found
func NewUpdateSecretNotFound ¶
func NewUpdateSecretNotFound() *UpdateSecretNotFound
NewUpdateSecretNotFound creates a UpdateSecretNotFound with default headers values
func (*UpdateSecretNotFound) Code ¶
func (o *UpdateSecretNotFound) Code() int
Code gets the status code for the update secret not found response
func (*UpdateSecretNotFound) Error ¶
func (o *UpdateSecretNotFound) Error() string
func (*UpdateSecretNotFound) GetPayload ¶
func (o *UpdateSecretNotFound) GetPayload() *models.ErrorResponse
func (*UpdateSecretNotFound) IsClientError ¶
func (o *UpdateSecretNotFound) IsClientError() bool
IsClientError returns true when this update secret not found response has a 4xx status code
func (*UpdateSecretNotFound) IsCode ¶
func (o *UpdateSecretNotFound) IsCode(code int) bool
IsCode returns true when this update secret not found response a status code equal to that given
func (*UpdateSecretNotFound) IsRedirect ¶
func (o *UpdateSecretNotFound) IsRedirect() bool
IsRedirect returns true when this update secret not found response has a 3xx status code
func (*UpdateSecretNotFound) IsServerError ¶
func (o *UpdateSecretNotFound) IsServerError() bool
IsServerError returns true when this update secret not found response has a 5xx status code
func (*UpdateSecretNotFound) IsSuccess ¶
func (o *UpdateSecretNotFound) IsSuccess() bool
IsSuccess returns true when this update secret not found response has a 2xx status code
func (*UpdateSecretNotFound) String ¶
func (o *UpdateSecretNotFound) String() string
type UpdateSecretOK ¶
UpdateSecretOK describes a response with status code 200, with default header values.
OK
func NewUpdateSecretOK ¶
func NewUpdateSecretOK() *UpdateSecretOK
NewUpdateSecretOK creates a UpdateSecretOK with default headers values
func (*UpdateSecretOK) Code ¶
func (o *UpdateSecretOK) Code() int
Code gets the status code for the update secret o k response
func (*UpdateSecretOK) Error ¶
func (o *UpdateSecretOK) Error() string
func (*UpdateSecretOK) GetPayload ¶
func (o *UpdateSecretOK) GetPayload() *models.Secret
func (*UpdateSecretOK) IsClientError ¶
func (o *UpdateSecretOK) IsClientError() bool
IsClientError returns true when this update secret o k response has a 4xx status code
func (*UpdateSecretOK) IsCode ¶
func (o *UpdateSecretOK) IsCode(code int) bool
IsCode returns true when this update secret o k response a status code equal to that given
func (*UpdateSecretOK) IsRedirect ¶
func (o *UpdateSecretOK) IsRedirect() bool
IsRedirect returns true when this update secret o k response has a 3xx status code
func (*UpdateSecretOK) IsServerError ¶
func (o *UpdateSecretOK) IsServerError() bool
IsServerError returns true when this update secret o k response has a 5xx status code
func (*UpdateSecretOK) IsSuccess ¶
func (o *UpdateSecretOK) IsSuccess() bool
IsSuccess returns true when this update secret o k response has a 2xx status code
func (*UpdateSecretOK) String ¶
func (o *UpdateSecretOK) String() string
type UpdateSecretParams ¶
type UpdateSecretParams struct {
/* Data.
Secret (value required)
*/
Data *models.Secret
/* OrgName.
Signadot Org Name
*/
OrgName string
/* SecretName.
Secret Name
*/
SecretName string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateSecretParams contains all the parameters to send to the API endpoint
for the update secret operation. Typically these are written to a http.Request.
func NewUpdateSecretParams ¶
func NewUpdateSecretParams() *UpdateSecretParams
NewUpdateSecretParams creates a new UpdateSecretParams 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 NewUpdateSecretParamsWithContext ¶
func NewUpdateSecretParamsWithContext(ctx context.Context) *UpdateSecretParams
NewUpdateSecretParamsWithContext creates a new UpdateSecretParams object with the ability to set a context for a request.
func NewUpdateSecretParamsWithHTTPClient ¶
func NewUpdateSecretParamsWithHTTPClient(client *http.Client) *UpdateSecretParams
NewUpdateSecretParamsWithHTTPClient creates a new UpdateSecretParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateSecretParamsWithTimeout ¶
func NewUpdateSecretParamsWithTimeout(timeout time.Duration) *UpdateSecretParams
NewUpdateSecretParamsWithTimeout creates a new UpdateSecretParams object with the ability to set a timeout on a request.
func (*UpdateSecretParams) SetContext ¶
func (o *UpdateSecretParams) SetContext(ctx context.Context)
SetContext adds the context to the update secret params
func (*UpdateSecretParams) SetData ¶
func (o *UpdateSecretParams) SetData(data *models.Secret)
SetData adds the data to the update secret params
func (*UpdateSecretParams) SetDefaults ¶
func (o *UpdateSecretParams) SetDefaults()
SetDefaults hydrates default values in the update secret params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSecretParams) SetHTTPClient ¶
func (o *UpdateSecretParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update secret params
func (*UpdateSecretParams) SetOrgName ¶
func (o *UpdateSecretParams) SetOrgName(orgName string)
SetOrgName adds the orgName to the update secret params
func (*UpdateSecretParams) SetSecretName ¶
func (o *UpdateSecretParams) SetSecretName(secretName string)
SetSecretName adds the secretName to the update secret params
func (*UpdateSecretParams) SetTimeout ¶
func (o *UpdateSecretParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update secret params
func (*UpdateSecretParams) WithContext ¶
func (o *UpdateSecretParams) WithContext(ctx context.Context) *UpdateSecretParams
WithContext adds the context to the update secret params
func (*UpdateSecretParams) WithData ¶
func (o *UpdateSecretParams) WithData(data *models.Secret) *UpdateSecretParams
WithData adds the data to the update secret params
func (*UpdateSecretParams) WithDefaults ¶
func (o *UpdateSecretParams) WithDefaults() *UpdateSecretParams
WithDefaults hydrates default values in the update secret params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSecretParams) WithHTTPClient ¶
func (o *UpdateSecretParams) WithHTTPClient(client *http.Client) *UpdateSecretParams
WithHTTPClient adds the HTTPClient to the update secret params
func (*UpdateSecretParams) WithOrgName ¶
func (o *UpdateSecretParams) WithOrgName(orgName string) *UpdateSecretParams
WithOrgName adds the orgName to the update secret params
func (*UpdateSecretParams) WithSecretName ¶
func (o *UpdateSecretParams) WithSecretName(secretName string) *UpdateSecretParams
WithSecretName adds the secretName to the update secret params
func (*UpdateSecretParams) WithTimeout ¶
func (o *UpdateSecretParams) WithTimeout(timeout time.Duration) *UpdateSecretParams
WithTimeout adds the timeout to the update secret params
func (*UpdateSecretParams) WriteToRequest ¶
func (o *UpdateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSecretReader ¶
type UpdateSecretReader struct {
// contains filtered or unexported fields
}
UpdateSecretReader is a Reader for the UpdateSecret structure.
func (*UpdateSecretReader) ReadResponse ¶
func (o *UpdateSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.