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) GetSecrets(params *GetSecretsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSecretsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateSecretDefault
- type CreateSecretOK
- type CreateSecretParams
- func (o *CreateSecretParams) SetContext(ctx context.Context)
- func (o *CreateSecretParams) SetDefaults()
- func (o *CreateSecretParams) SetHTTPClient(client *http.Client)
- func (o *CreateSecretParams) SetNamespace(namespace string)
- func (o *CreateSecretParams) SetSecret(secret string)
- func (o *CreateSecretParams) SetSecretPayload(secretPayload string)
- func (o *CreateSecretParams) SetTimeout(timeout time.Duration)
- func (o *CreateSecretParams) WithContext(ctx context.Context) *CreateSecretParams
- func (o *CreateSecretParams) WithDefaults() *CreateSecretParams
- func (o *CreateSecretParams) WithHTTPClient(client *http.Client) *CreateSecretParams
- func (o *CreateSecretParams) WithNamespace(namespace string) *CreateSecretParams
- func (o *CreateSecretParams) WithSecret(secret string) *CreateSecretParams
- func (o *CreateSecretParams) WithSecretPayload(secretPayload string) *CreateSecretParams
- func (o *CreateSecretParams) WithTimeout(timeout time.Duration) *CreateSecretParams
- func (o *CreateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSecretReader
- type DeleteSecretDefault
- type DeleteSecretOK
- type DeleteSecretParams
- func (o *DeleteSecretParams) SetContext(ctx context.Context)
- func (o *DeleteSecretParams) SetDefaults()
- func (o *DeleteSecretParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSecretParams) SetNamespace(namespace string)
- func (o *DeleteSecretParams) SetSecret(secret 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) WithNamespace(namespace string) *DeleteSecretParams
- func (o *DeleteSecretParams) WithSecret(secret string) *DeleteSecretParams
- func (o *DeleteSecretParams) WithTimeout(timeout time.Duration) *DeleteSecretParams
- func (o *DeleteSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSecretReader
- type GetSecretsDefault
- type GetSecretsOK
- type GetSecretsParams
- func (o *GetSecretsParams) SetContext(ctx context.Context)
- func (o *GetSecretsParams) SetDefaults()
- func (o *GetSecretsParams) SetHTTPClient(client *http.Client)
- func (o *GetSecretsParams) SetNamespace(namespace string)
- 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) WithNamespace(namespace string) *GetSecretsParams
- func (o *GetSecretsParams) WithTimeout(timeout time.Duration) *GetSecretsParams
- func (o *GetSecretsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSecretsReader
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 namespace secret
Create a namespace secret.
func (*Client) DeleteSecret ¶
func (a *Client) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretOK, error)
DeleteSecret deletes a namespace secret
Delete a namespace secret.
func (*Client) GetSecrets ¶
func (a *Client) GetSecrets(params *GetSecretsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecretsOK, error)
GetSecrets gets list of namespace secrets
Gets the list of namespace secrets.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateSecret(params *CreateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSecretOK, error) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretOK, error) GetSecrets(params *GetSecretsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSecretsOK, 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.
type CreateSecretDefault ¶
type CreateSecretDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreateSecretDefault describes a response with status code -1, with default header values.
an error has occurred
func NewCreateSecretDefault ¶
func NewCreateSecretDefault(code int) *CreateSecretDefault
NewCreateSecretDefault creates a CreateSecretDefault with default headers values
func (*CreateSecretDefault) Code ¶
func (o *CreateSecretDefault) Code() int
Code gets the status code for the create secret default response
func (*CreateSecretDefault) Error ¶
func (o *CreateSecretDefault) Error() string
func (*CreateSecretDefault) GetPayload ¶
func (o *CreateSecretDefault) GetPayload() *models.ErrorResponse
type CreateSecretOK ¶
CreateSecretOK describes a response with status code 200, with default header values.
namespace has been successfully created
func NewCreateSecretOK ¶
func NewCreateSecretOK() *CreateSecretOK
NewCreateSecretOK creates a CreateSecretOK with default headers values
func (*CreateSecretOK) Error ¶
func (o *CreateSecretOK) Error() string
func (*CreateSecretOK) GetPayload ¶
func (o *CreateSecretOK) GetPayload() models.OkBody
type CreateSecretParams ¶
type CreateSecretParams struct { /* SecretPayload. Payload that contains secret data. */ SecretPayload string /* Namespace. target namespace */ Namespace string /* Secret. target secret */ Secret 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) 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) SetNamespace ¶
func (o *CreateSecretParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create secret params
func (*CreateSecretParams) SetSecret ¶
func (o *CreateSecretParams) SetSecret(secret string)
SetSecret adds the secret to the create secret params
func (*CreateSecretParams) SetSecretPayload ¶
func (o *CreateSecretParams) SetSecretPayload(secretPayload string)
SetSecretPayload adds the secretPayload 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) 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) WithNamespace ¶
func (o *CreateSecretParams) WithNamespace(namespace string) *CreateSecretParams
WithNamespace adds the namespace to the create secret params
func (*CreateSecretParams) WithSecret ¶
func (o *CreateSecretParams) WithSecret(secret string) *CreateSecretParams
WithSecret adds the secret to the create secret params
func (*CreateSecretParams) WithSecretPayload ¶
func (o *CreateSecretParams) WithSecretPayload(secretPayload string) *CreateSecretParams
WithSecretPayload adds the secretPayload 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) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSecretDefault ¶
type DeleteSecretDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
DeleteSecretDefault describes a response with status code -1, with default header values.
an error has occurred
func NewDeleteSecretDefault ¶
func NewDeleteSecretDefault(code int) *DeleteSecretDefault
NewDeleteSecretDefault creates a DeleteSecretDefault with default headers values
func (*DeleteSecretDefault) Code ¶
func (o *DeleteSecretDefault) Code() int
Code gets the status code for the delete secret default response
func (*DeleteSecretDefault) Error ¶
func (o *DeleteSecretDefault) Error() string
func (*DeleteSecretDefault) GetPayload ¶
func (o *DeleteSecretDefault) GetPayload() *models.ErrorResponse
type DeleteSecretOK ¶
DeleteSecretOK describes a response with status code 200, with default header values.
namespace has been successfully created
func NewDeleteSecretOK ¶
func NewDeleteSecretOK() *DeleteSecretOK
NewDeleteSecretOK creates a DeleteSecretOK with default headers values
func (*DeleteSecretOK) Error ¶
func (o *DeleteSecretOK) Error() string
func (*DeleteSecretOK) GetPayload ¶
func (o *DeleteSecretOK) GetPayload() models.OkBody
type DeleteSecretParams ¶
type DeleteSecretParams struct { /* Namespace. target namespace */ Namespace string /* Secret. target secret */ Secret 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) SetNamespace ¶
func (o *DeleteSecretParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete secret params
func (*DeleteSecretParams) SetSecret ¶
func (o *DeleteSecretParams) SetSecret(secret string)
SetSecret adds the secret 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) WithNamespace ¶
func (o *DeleteSecretParams) WithNamespace(namespace string) *DeleteSecretParams
WithNamespace adds the namespace to the delete secret params
func (*DeleteSecretParams) WithSecret ¶
func (o *DeleteSecretParams) WithSecret(secret string) *DeleteSecretParams
WithSecret adds the secret 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) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSecretsDefault ¶
type GetSecretsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetSecretsDefault describes a response with status code -1, with default header values.
an error has occurred
func NewGetSecretsDefault ¶
func NewGetSecretsDefault(code int) *GetSecretsDefault
NewGetSecretsDefault creates a GetSecretsDefault with default headers values
func (*GetSecretsDefault) Code ¶
func (o *GetSecretsDefault) Code() int
Code gets the status code for the get secrets default response
func (*GetSecretsDefault) Error ¶
func (o *GetSecretsDefault) Error() string
func (*GetSecretsDefault) GetPayload ¶
func (o *GetSecretsDefault) GetPayload() *models.ErrorResponse
type GetSecretsOK ¶
GetSecretsOK describes a response with status code 200, with default header values.
successfully got namespace nodes
func NewGetSecretsOK ¶
func NewGetSecretsOK() *GetSecretsOK
NewGetSecretsOK creates a GetSecretsOK with default headers values
func (*GetSecretsOK) Error ¶
func (o *GetSecretsOK) Error() string
func (*GetSecretsOK) GetPayload ¶
func (o *GetSecretsOK) GetPayload() models.OkBody
type GetSecretsParams ¶
type GetSecretsParams struct { /* Namespace. target namespace */ Namespace string 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) SetNamespace ¶
func (o *GetSecretsParams) SetNamespace(namespace string)
SetNamespace adds the namespace 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) WithNamespace ¶
func (o *GetSecretsParams) WithNamespace(namespace string) *GetSecretsParams
WithNamespace adds the namespace 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.