Documentation ¶
Index ¶
- type Client
- func (a *Client) SecretCreate(params *SecretCreateParams) (*SecretCreateCreated, error)
- func (a *Client) SecretDelete(params *SecretDeleteParams) (*SecretDeleteNoContent, error)
- func (a *Client) SecretInspect(params *SecretInspectParams) (*SecretInspectOK, error)
- func (a *Client) SecretList(params *SecretListParams) (*SecretListOK, error)
- func (a *Client) SecretUpdate(params *SecretUpdateParams) (*SecretUpdateOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type SecretCreateConflict
- type SecretCreateCreated
- type SecretCreateInternalServerError
- type SecretCreateParams
- func (o *SecretCreateParams) SetBody(body *models.SecretCreateParamsBody)
- func (o *SecretCreateParams) SetContext(ctx context.Context)
- func (o *SecretCreateParams) SetHTTPClient(client *http.Client)
- func (o *SecretCreateParams) SetTimeout(timeout time.Duration)
- func (o *SecretCreateParams) WithBody(body *models.SecretCreateParamsBody) *SecretCreateParams
- func (o *SecretCreateParams) WithContext(ctx context.Context) *SecretCreateParams
- func (o *SecretCreateParams) WithHTTPClient(client *http.Client) *SecretCreateParams
- func (o *SecretCreateParams) WithTimeout(timeout time.Duration) *SecretCreateParams
- func (o *SecretCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SecretCreateReader
- type SecretCreateServiceUnavailable
- type SecretDeleteInternalServerError
- type SecretDeleteNoContent
- type SecretDeleteNotFound
- type SecretDeleteParams
- func (o *SecretDeleteParams) SetContext(ctx context.Context)
- func (o *SecretDeleteParams) SetHTTPClient(client *http.Client)
- func (o *SecretDeleteParams) SetID(id string)
- func (o *SecretDeleteParams) SetTimeout(timeout time.Duration)
- func (o *SecretDeleteParams) WithContext(ctx context.Context) *SecretDeleteParams
- func (o *SecretDeleteParams) WithHTTPClient(client *http.Client) *SecretDeleteParams
- func (o *SecretDeleteParams) WithID(id string) *SecretDeleteParams
- func (o *SecretDeleteParams) WithTimeout(timeout time.Duration) *SecretDeleteParams
- func (o *SecretDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SecretDeleteReader
- type SecretDeleteServiceUnavailable
- type SecretInspectInternalServerError
- type SecretInspectNotFound
- type SecretInspectOK
- type SecretInspectParams
- func (o *SecretInspectParams) SetContext(ctx context.Context)
- func (o *SecretInspectParams) SetHTTPClient(client *http.Client)
- func (o *SecretInspectParams) SetID(id string)
- func (o *SecretInspectParams) SetTimeout(timeout time.Duration)
- func (o *SecretInspectParams) WithContext(ctx context.Context) *SecretInspectParams
- func (o *SecretInspectParams) WithHTTPClient(client *http.Client) *SecretInspectParams
- func (o *SecretInspectParams) WithID(id string) *SecretInspectParams
- func (o *SecretInspectParams) WithTimeout(timeout time.Duration) *SecretInspectParams
- func (o *SecretInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SecretInspectReader
- type SecretInspectServiceUnavailable
- type SecretListInternalServerError
- type SecretListOK
- type SecretListParams
- func (o *SecretListParams) SetContext(ctx context.Context)
- func (o *SecretListParams) SetFilters(filters *string)
- func (o *SecretListParams) SetHTTPClient(client *http.Client)
- func (o *SecretListParams) SetTimeout(timeout time.Duration)
- func (o *SecretListParams) WithContext(ctx context.Context) *SecretListParams
- func (o *SecretListParams) WithFilters(filters *string) *SecretListParams
- func (o *SecretListParams) WithHTTPClient(client *http.Client) *SecretListParams
- func (o *SecretListParams) WithTimeout(timeout time.Duration) *SecretListParams
- func (o *SecretListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SecretListReader
- type SecretListServiceUnavailable
- type SecretUpdateBadRequest
- type SecretUpdateInternalServerError
- type SecretUpdateNotFound
- type SecretUpdateOK
- type SecretUpdateParams
- func (o *SecretUpdateParams) SetBody(body *models.SecretSpec)
- func (o *SecretUpdateParams) SetContext(ctx context.Context)
- func (o *SecretUpdateParams) SetHTTPClient(client *http.Client)
- func (o *SecretUpdateParams) SetID(id string)
- func (o *SecretUpdateParams) SetTimeout(timeout time.Duration)
- func (o *SecretUpdateParams) SetVersion(version int64)
- func (o *SecretUpdateParams) WithBody(body *models.SecretSpec) *SecretUpdateParams
- func (o *SecretUpdateParams) WithContext(ctx context.Context) *SecretUpdateParams
- func (o *SecretUpdateParams) WithHTTPClient(client *http.Client) *SecretUpdateParams
- func (o *SecretUpdateParams) WithID(id string) *SecretUpdateParams
- func (o *SecretUpdateParams) WithTimeout(timeout time.Duration) *SecretUpdateParams
- func (o *SecretUpdateParams) WithVersion(version int64) *SecretUpdateParams
- func (o *SecretUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SecretUpdateReader
- type SecretUpdateServiceUnavailable
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 secret API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new secret API client.
func (*Client) SecretCreate ¶
func (a *Client) SecretCreate(params *SecretCreateParams) (*SecretCreateCreated, error)
SecretCreate creates a secret
func (*Client) SecretDelete ¶
func (a *Client) SecretDelete(params *SecretDeleteParams) (*SecretDeleteNoContent, error)
SecretDelete deletes a secret
func (*Client) SecretInspect ¶
func (a *Client) SecretInspect(params *SecretInspectParams) (*SecretInspectOK, error)
SecretInspect inspects a secret
func (*Client) SecretList ¶
func (a *Client) SecretList(params *SecretListParams) (*SecretListOK, error)
SecretList lists secrets
func (*Client) SecretUpdate ¶
func (a *Client) SecretUpdate(params *SecretUpdateParams) (*SecretUpdateOK, error)
SecretUpdate updates a secret
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type SecretCreateConflict ¶
type SecretCreateConflict struct {
Payload *models.ErrorResponse
}
SecretCreateConflict handles this case with default header values.
name conflicts with an existing object
func NewSecretCreateConflict ¶
func NewSecretCreateConflict() *SecretCreateConflict
NewSecretCreateConflict creates a SecretCreateConflict with default headers values
func (*SecretCreateConflict) Error ¶
func (o *SecretCreateConflict) Error() string
type SecretCreateCreated ¶
type SecretCreateCreated struct {
Payload *models.IDResponse
}
SecretCreateCreated handles this case with default header values.
no error
func NewSecretCreateCreated ¶
func NewSecretCreateCreated() *SecretCreateCreated
NewSecretCreateCreated creates a SecretCreateCreated with default headers values
func (*SecretCreateCreated) Error ¶
func (o *SecretCreateCreated) Error() string
type SecretCreateInternalServerError ¶
type SecretCreateInternalServerError struct {
Payload *models.ErrorResponse
}
SecretCreateInternalServerError handles this case with default header values.
server error
func NewSecretCreateInternalServerError ¶
func NewSecretCreateInternalServerError() *SecretCreateInternalServerError
NewSecretCreateInternalServerError creates a SecretCreateInternalServerError with default headers values
func (*SecretCreateInternalServerError) Error ¶
func (o *SecretCreateInternalServerError) Error() string
type SecretCreateParams ¶
type SecretCreateParams struct { /*Body*/ Body *models.SecretCreateParamsBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SecretCreateParams contains all the parameters to send to the API endpoint for the secret create operation typically these are written to a http.Request
func NewSecretCreateParams ¶
func NewSecretCreateParams() *SecretCreateParams
NewSecretCreateParams creates a new SecretCreateParams object with the default values initialized.
func NewSecretCreateParamsWithContext ¶
func NewSecretCreateParamsWithContext(ctx context.Context) *SecretCreateParams
NewSecretCreateParamsWithContext creates a new SecretCreateParams object with the default values initialized, and the ability to set a context for a request
func NewSecretCreateParamsWithHTTPClient ¶
func NewSecretCreateParamsWithHTTPClient(client *http.Client) *SecretCreateParams
NewSecretCreateParamsWithHTTPClient creates a new SecretCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSecretCreateParamsWithTimeout ¶
func NewSecretCreateParamsWithTimeout(timeout time.Duration) *SecretCreateParams
NewSecretCreateParamsWithTimeout creates a new SecretCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*SecretCreateParams) SetBody ¶
func (o *SecretCreateParams) SetBody(body *models.SecretCreateParamsBody)
SetBody adds the body to the secret create params
func (*SecretCreateParams) SetContext ¶
func (o *SecretCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the secret create params
func (*SecretCreateParams) SetHTTPClient ¶
func (o *SecretCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the secret create params
func (*SecretCreateParams) SetTimeout ¶
func (o *SecretCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the secret create params
func (*SecretCreateParams) WithBody ¶
func (o *SecretCreateParams) WithBody(body *models.SecretCreateParamsBody) *SecretCreateParams
WithBody adds the body to the secret create params
func (*SecretCreateParams) WithContext ¶
func (o *SecretCreateParams) WithContext(ctx context.Context) *SecretCreateParams
WithContext adds the context to the secret create params
func (*SecretCreateParams) WithHTTPClient ¶
func (o *SecretCreateParams) WithHTTPClient(client *http.Client) *SecretCreateParams
WithHTTPClient adds the HTTPClient to the secret create params
func (*SecretCreateParams) WithTimeout ¶
func (o *SecretCreateParams) WithTimeout(timeout time.Duration) *SecretCreateParams
WithTimeout adds the timeout to the secret create params
func (*SecretCreateParams) WriteToRequest ¶
func (o *SecretCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SecretCreateReader ¶
type SecretCreateReader struct {
// contains filtered or unexported fields
}
SecretCreateReader is a Reader for the SecretCreate structure.
func (*SecretCreateReader) ReadResponse ¶
func (o *SecretCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SecretCreateServiceUnavailable ¶
type SecretCreateServiceUnavailable struct {
}SecretCreateServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewSecretCreateServiceUnavailable ¶
func NewSecretCreateServiceUnavailable() *SecretCreateServiceUnavailable
NewSecretCreateServiceUnavailable creates a SecretCreateServiceUnavailable with default headers values
func (*SecretCreateServiceUnavailable) Error ¶
func (o *SecretCreateServiceUnavailable) Error() string
type SecretDeleteInternalServerError ¶
type SecretDeleteInternalServerError struct {
Payload *models.ErrorResponse
}
SecretDeleteInternalServerError handles this case with default header values.
server error
func NewSecretDeleteInternalServerError ¶
func NewSecretDeleteInternalServerError() *SecretDeleteInternalServerError
NewSecretDeleteInternalServerError creates a SecretDeleteInternalServerError with default headers values
func (*SecretDeleteInternalServerError) Error ¶
func (o *SecretDeleteInternalServerError) Error() string
type SecretDeleteNoContent ¶
type SecretDeleteNoContent struct { }
SecretDeleteNoContent handles this case with default header values.
no error
func NewSecretDeleteNoContent ¶
func NewSecretDeleteNoContent() *SecretDeleteNoContent
NewSecretDeleteNoContent creates a SecretDeleteNoContent with default headers values
func (*SecretDeleteNoContent) Error ¶
func (o *SecretDeleteNoContent) Error() string
type SecretDeleteNotFound ¶
type SecretDeleteNotFound struct {
Payload *models.ErrorResponse
}
SecretDeleteNotFound handles this case with default header values.
secret not found
func NewSecretDeleteNotFound ¶
func NewSecretDeleteNotFound() *SecretDeleteNotFound
NewSecretDeleteNotFound creates a SecretDeleteNotFound with default headers values
func (*SecretDeleteNotFound) Error ¶
func (o *SecretDeleteNotFound) Error() string
type SecretDeleteParams ¶
type SecretDeleteParams struct { /*ID ID of the secret */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SecretDeleteParams contains all the parameters to send to the API endpoint for the secret delete operation typically these are written to a http.Request
func NewSecretDeleteParams ¶
func NewSecretDeleteParams() *SecretDeleteParams
NewSecretDeleteParams creates a new SecretDeleteParams object with the default values initialized.
func NewSecretDeleteParamsWithContext ¶
func NewSecretDeleteParamsWithContext(ctx context.Context) *SecretDeleteParams
NewSecretDeleteParamsWithContext creates a new SecretDeleteParams object with the default values initialized, and the ability to set a context for a request
func NewSecretDeleteParamsWithHTTPClient ¶
func NewSecretDeleteParamsWithHTTPClient(client *http.Client) *SecretDeleteParams
NewSecretDeleteParamsWithHTTPClient creates a new SecretDeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSecretDeleteParamsWithTimeout ¶
func NewSecretDeleteParamsWithTimeout(timeout time.Duration) *SecretDeleteParams
NewSecretDeleteParamsWithTimeout creates a new SecretDeleteParams object with the default values initialized, and the ability to set a timeout on a request
func (*SecretDeleteParams) SetContext ¶
func (o *SecretDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the secret delete params
func (*SecretDeleteParams) SetHTTPClient ¶
func (o *SecretDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the secret delete params
func (*SecretDeleteParams) SetID ¶
func (o *SecretDeleteParams) SetID(id string)
SetID adds the id to the secret delete params
func (*SecretDeleteParams) SetTimeout ¶
func (o *SecretDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the secret delete params
func (*SecretDeleteParams) WithContext ¶
func (o *SecretDeleteParams) WithContext(ctx context.Context) *SecretDeleteParams
WithContext adds the context to the secret delete params
func (*SecretDeleteParams) WithHTTPClient ¶
func (o *SecretDeleteParams) WithHTTPClient(client *http.Client) *SecretDeleteParams
WithHTTPClient adds the HTTPClient to the secret delete params
func (*SecretDeleteParams) WithID ¶
func (o *SecretDeleteParams) WithID(id string) *SecretDeleteParams
WithID adds the id to the secret delete params
func (*SecretDeleteParams) WithTimeout ¶
func (o *SecretDeleteParams) WithTimeout(timeout time.Duration) *SecretDeleteParams
WithTimeout adds the timeout to the secret delete params
func (*SecretDeleteParams) WriteToRequest ¶
func (o *SecretDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SecretDeleteReader ¶
type SecretDeleteReader struct {
// contains filtered or unexported fields
}
SecretDeleteReader is a Reader for the SecretDelete structure.
func (*SecretDeleteReader) ReadResponse ¶
func (o *SecretDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SecretDeleteServiceUnavailable ¶
type SecretDeleteServiceUnavailable struct {
}SecretDeleteServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewSecretDeleteServiceUnavailable ¶
func NewSecretDeleteServiceUnavailable() *SecretDeleteServiceUnavailable
NewSecretDeleteServiceUnavailable creates a SecretDeleteServiceUnavailable with default headers values
func (*SecretDeleteServiceUnavailable) Error ¶
func (o *SecretDeleteServiceUnavailable) Error() string
type SecretInspectInternalServerError ¶
type SecretInspectInternalServerError struct {
Payload *models.ErrorResponse
}
SecretInspectInternalServerError handles this case with default header values.
server error
func NewSecretInspectInternalServerError ¶
func NewSecretInspectInternalServerError() *SecretInspectInternalServerError
NewSecretInspectInternalServerError creates a SecretInspectInternalServerError with default headers values
func (*SecretInspectInternalServerError) Error ¶
func (o *SecretInspectInternalServerError) Error() string
type SecretInspectNotFound ¶
type SecretInspectNotFound struct {
Payload *models.ErrorResponse
}
SecretInspectNotFound handles this case with default header values.
secret not found
func NewSecretInspectNotFound ¶
func NewSecretInspectNotFound() *SecretInspectNotFound
NewSecretInspectNotFound creates a SecretInspectNotFound with default headers values
func (*SecretInspectNotFound) Error ¶
func (o *SecretInspectNotFound) Error() string
type SecretInspectOK ¶
SecretInspectOK handles this case with default header values.
no error
func NewSecretInspectOK ¶
func NewSecretInspectOK() *SecretInspectOK
NewSecretInspectOK creates a SecretInspectOK with default headers values
func (*SecretInspectOK) Error ¶
func (o *SecretInspectOK) Error() string
type SecretInspectParams ¶
type SecretInspectParams struct { /*ID ID of the secret */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SecretInspectParams contains all the parameters to send to the API endpoint for the secret inspect operation typically these are written to a http.Request
func NewSecretInspectParams ¶
func NewSecretInspectParams() *SecretInspectParams
NewSecretInspectParams creates a new SecretInspectParams object with the default values initialized.
func NewSecretInspectParamsWithContext ¶
func NewSecretInspectParamsWithContext(ctx context.Context) *SecretInspectParams
NewSecretInspectParamsWithContext creates a new SecretInspectParams object with the default values initialized, and the ability to set a context for a request
func NewSecretInspectParamsWithHTTPClient ¶
func NewSecretInspectParamsWithHTTPClient(client *http.Client) *SecretInspectParams
NewSecretInspectParamsWithHTTPClient creates a new SecretInspectParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSecretInspectParamsWithTimeout ¶
func NewSecretInspectParamsWithTimeout(timeout time.Duration) *SecretInspectParams
NewSecretInspectParamsWithTimeout creates a new SecretInspectParams object with the default values initialized, and the ability to set a timeout on a request
func (*SecretInspectParams) SetContext ¶
func (o *SecretInspectParams) SetContext(ctx context.Context)
SetContext adds the context to the secret inspect params
func (*SecretInspectParams) SetHTTPClient ¶
func (o *SecretInspectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the secret inspect params
func (*SecretInspectParams) SetID ¶
func (o *SecretInspectParams) SetID(id string)
SetID adds the id to the secret inspect params
func (*SecretInspectParams) SetTimeout ¶
func (o *SecretInspectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the secret inspect params
func (*SecretInspectParams) WithContext ¶
func (o *SecretInspectParams) WithContext(ctx context.Context) *SecretInspectParams
WithContext adds the context to the secret inspect params
func (*SecretInspectParams) WithHTTPClient ¶
func (o *SecretInspectParams) WithHTTPClient(client *http.Client) *SecretInspectParams
WithHTTPClient adds the HTTPClient to the secret inspect params
func (*SecretInspectParams) WithID ¶
func (o *SecretInspectParams) WithID(id string) *SecretInspectParams
WithID adds the id to the secret inspect params
func (*SecretInspectParams) WithTimeout ¶
func (o *SecretInspectParams) WithTimeout(timeout time.Duration) *SecretInspectParams
WithTimeout adds the timeout to the secret inspect params
func (*SecretInspectParams) WriteToRequest ¶
func (o *SecretInspectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SecretInspectReader ¶
type SecretInspectReader struct {
// contains filtered or unexported fields
}
SecretInspectReader is a Reader for the SecretInspect structure.
func (*SecretInspectReader) ReadResponse ¶
func (o *SecretInspectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SecretInspectServiceUnavailable ¶
type SecretInspectServiceUnavailable struct {
}SecretInspectServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewSecretInspectServiceUnavailable ¶
func NewSecretInspectServiceUnavailable() *SecretInspectServiceUnavailable
NewSecretInspectServiceUnavailable creates a SecretInspectServiceUnavailable with default headers values
func (*SecretInspectServiceUnavailable) Error ¶
func (o *SecretInspectServiceUnavailable) Error() string
type SecretListInternalServerError ¶
type SecretListInternalServerError struct {
Payload *models.ErrorResponse
}
SecretListInternalServerError handles this case with default header values.
server error
func NewSecretListInternalServerError ¶
func NewSecretListInternalServerError() *SecretListInternalServerError
NewSecretListInternalServerError creates a SecretListInternalServerError with default headers values
func (*SecretListInternalServerError) Error ¶
func (o *SecretListInternalServerError) Error() string
type SecretListOK ¶
type SecretListOK struct {
Payload models.SecretListOKBody
}
SecretListOK handles this case with default header values.
no error
func NewSecretListOK ¶
func NewSecretListOK() *SecretListOK
NewSecretListOK creates a SecretListOK with default headers values
func (*SecretListOK) Error ¶
func (o *SecretListOK) Error() string
type SecretListParams ¶
type SecretListParams struct { /*Filters A JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Available filters: - `id=<secret id>` - `label=<key> or label=<key>=value` - `name=<secret name>` - `names=<secret name>` */ Filters *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SecretListParams contains all the parameters to send to the API endpoint for the secret list operation typically these are written to a http.Request
func NewSecretListParams ¶
func NewSecretListParams() *SecretListParams
NewSecretListParams creates a new SecretListParams object with the default values initialized.
func NewSecretListParamsWithContext ¶
func NewSecretListParamsWithContext(ctx context.Context) *SecretListParams
NewSecretListParamsWithContext creates a new SecretListParams object with the default values initialized, and the ability to set a context for a request
func NewSecretListParamsWithHTTPClient ¶
func NewSecretListParamsWithHTTPClient(client *http.Client) *SecretListParams
NewSecretListParamsWithHTTPClient creates a new SecretListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSecretListParamsWithTimeout ¶
func NewSecretListParamsWithTimeout(timeout time.Duration) *SecretListParams
NewSecretListParamsWithTimeout creates a new SecretListParams object with the default values initialized, and the ability to set a timeout on a request
func (*SecretListParams) SetContext ¶
func (o *SecretListParams) SetContext(ctx context.Context)
SetContext adds the context to the secret list params
func (*SecretListParams) SetFilters ¶
func (o *SecretListParams) SetFilters(filters *string)
SetFilters adds the filters to the secret list params
func (*SecretListParams) SetHTTPClient ¶
func (o *SecretListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the secret list params
func (*SecretListParams) SetTimeout ¶
func (o *SecretListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the secret list params
func (*SecretListParams) WithContext ¶
func (o *SecretListParams) WithContext(ctx context.Context) *SecretListParams
WithContext adds the context to the secret list params
func (*SecretListParams) WithFilters ¶
func (o *SecretListParams) WithFilters(filters *string) *SecretListParams
WithFilters adds the filters to the secret list params
func (*SecretListParams) WithHTTPClient ¶
func (o *SecretListParams) WithHTTPClient(client *http.Client) *SecretListParams
WithHTTPClient adds the HTTPClient to the secret list params
func (*SecretListParams) WithTimeout ¶
func (o *SecretListParams) WithTimeout(timeout time.Duration) *SecretListParams
WithTimeout adds the timeout to the secret list params
func (*SecretListParams) WriteToRequest ¶
func (o *SecretListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SecretListReader ¶
type SecretListReader struct {
// contains filtered or unexported fields
}
SecretListReader is a Reader for the SecretList structure.
func (*SecretListReader) ReadResponse ¶
func (o *SecretListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SecretListServiceUnavailable ¶
type SecretListServiceUnavailable struct {
}SecretListServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewSecretListServiceUnavailable ¶
func NewSecretListServiceUnavailable() *SecretListServiceUnavailable
NewSecretListServiceUnavailable creates a SecretListServiceUnavailable with default headers values
func (*SecretListServiceUnavailable) Error ¶
func (o *SecretListServiceUnavailable) Error() string
type SecretUpdateBadRequest ¶
type SecretUpdateBadRequest struct {
Payload *models.ErrorResponse
}
SecretUpdateBadRequest handles this case with default header values.
bad parameter
func NewSecretUpdateBadRequest ¶
func NewSecretUpdateBadRequest() *SecretUpdateBadRequest
NewSecretUpdateBadRequest creates a SecretUpdateBadRequest with default headers values
func (*SecretUpdateBadRequest) Error ¶
func (o *SecretUpdateBadRequest) Error() string
type SecretUpdateInternalServerError ¶
type SecretUpdateInternalServerError struct {
Payload *models.ErrorResponse
}
SecretUpdateInternalServerError handles this case with default header values.
server error
func NewSecretUpdateInternalServerError ¶
func NewSecretUpdateInternalServerError() *SecretUpdateInternalServerError
NewSecretUpdateInternalServerError creates a SecretUpdateInternalServerError with default headers values
func (*SecretUpdateInternalServerError) Error ¶
func (o *SecretUpdateInternalServerError) Error() string
type SecretUpdateNotFound ¶
type SecretUpdateNotFound struct {
Payload *models.ErrorResponse
}
SecretUpdateNotFound handles this case with default header values.
no such secret
func NewSecretUpdateNotFound ¶
func NewSecretUpdateNotFound() *SecretUpdateNotFound
NewSecretUpdateNotFound creates a SecretUpdateNotFound with default headers values
func (*SecretUpdateNotFound) Error ¶
func (o *SecretUpdateNotFound) Error() string
type SecretUpdateOK ¶
type SecretUpdateOK struct { }
SecretUpdateOK handles this case with default header values.
no error
func NewSecretUpdateOK ¶
func NewSecretUpdateOK() *SecretUpdateOK
NewSecretUpdateOK creates a SecretUpdateOK with default headers values
func (*SecretUpdateOK) Error ¶
func (o *SecretUpdateOK) Error() string
type SecretUpdateParams ¶
type SecretUpdateParams struct { /*Body The spec of the secret to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the [SecretInspect endpoint](#operation/SecretInspect) response values. */ Body *models.SecretSpec /*ID The ID or name of the secret */ ID string /*Version The version number of the secret object being updated. This is required to avoid conflicting writes. */ Version int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SecretUpdateParams contains all the parameters to send to the API endpoint for the secret update operation typically these are written to a http.Request
func NewSecretUpdateParams ¶
func NewSecretUpdateParams() *SecretUpdateParams
NewSecretUpdateParams creates a new SecretUpdateParams object with the default values initialized.
func NewSecretUpdateParamsWithContext ¶
func NewSecretUpdateParamsWithContext(ctx context.Context) *SecretUpdateParams
NewSecretUpdateParamsWithContext creates a new SecretUpdateParams object with the default values initialized, and the ability to set a context for a request
func NewSecretUpdateParamsWithHTTPClient ¶
func NewSecretUpdateParamsWithHTTPClient(client *http.Client) *SecretUpdateParams
NewSecretUpdateParamsWithHTTPClient creates a new SecretUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSecretUpdateParamsWithTimeout ¶
func NewSecretUpdateParamsWithTimeout(timeout time.Duration) *SecretUpdateParams
NewSecretUpdateParamsWithTimeout creates a new SecretUpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*SecretUpdateParams) SetBody ¶
func (o *SecretUpdateParams) SetBody(body *models.SecretSpec)
SetBody adds the body to the secret update params
func (*SecretUpdateParams) SetContext ¶
func (o *SecretUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the secret update params
func (*SecretUpdateParams) SetHTTPClient ¶
func (o *SecretUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the secret update params
func (*SecretUpdateParams) SetID ¶
func (o *SecretUpdateParams) SetID(id string)
SetID adds the id to the secret update params
func (*SecretUpdateParams) SetTimeout ¶
func (o *SecretUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the secret update params
func (*SecretUpdateParams) SetVersion ¶
func (o *SecretUpdateParams) SetVersion(version int64)
SetVersion adds the version to the secret update params
func (*SecretUpdateParams) WithBody ¶
func (o *SecretUpdateParams) WithBody(body *models.SecretSpec) *SecretUpdateParams
WithBody adds the body to the secret update params
func (*SecretUpdateParams) WithContext ¶
func (o *SecretUpdateParams) WithContext(ctx context.Context) *SecretUpdateParams
WithContext adds the context to the secret update params
func (*SecretUpdateParams) WithHTTPClient ¶
func (o *SecretUpdateParams) WithHTTPClient(client *http.Client) *SecretUpdateParams
WithHTTPClient adds the HTTPClient to the secret update params
func (*SecretUpdateParams) WithID ¶
func (o *SecretUpdateParams) WithID(id string) *SecretUpdateParams
WithID adds the id to the secret update params
func (*SecretUpdateParams) WithTimeout ¶
func (o *SecretUpdateParams) WithTimeout(timeout time.Duration) *SecretUpdateParams
WithTimeout adds the timeout to the secret update params
func (*SecretUpdateParams) WithVersion ¶
func (o *SecretUpdateParams) WithVersion(version int64) *SecretUpdateParams
WithVersion adds the version to the secret update params
func (*SecretUpdateParams) WriteToRequest ¶
func (o *SecretUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SecretUpdateReader ¶
type SecretUpdateReader struct {
// contains filtered or unexported fields
}
SecretUpdateReader is a Reader for the SecretUpdate structure.
func (*SecretUpdateReader) ReadResponse ¶
func (o *SecretUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SecretUpdateServiceUnavailable ¶
type SecretUpdateServiceUnavailable struct {
}SecretUpdateServiceUnavailable handles this case with default header values.
node is not part of a swarm
func NewSecretUpdateServiceUnavailable ¶
func NewSecretUpdateServiceUnavailable() *SecretUpdateServiceUnavailable
NewSecretUpdateServiceUnavailable creates a SecretUpdateServiceUnavailable with default headers values
func (*SecretUpdateServiceUnavailable) Error ¶
func (o *SecretUpdateServiceUnavailable) Error() string