Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateNamespace(params *CreateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateNamespaceCreated, error)
- func (a *Client) DeleteNamespace(params *DeleteNamespaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteNamespaceAccepted, error)
- func (a *Client) GetNamespace(params *GetNamespaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetNamespaceOK, error)
- func (a *Client) ListNamespaces(params *ListNamespacesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListNamespacesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateNamespace(params *UpdateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateNamespaceOK, error)
- type ClientOption
- type ClientService
- type CreateNamespaceConflict
- func (o *CreateNamespaceConflict) Code() int
- func (o *CreateNamespaceConflict) Error() string
- func (o *CreateNamespaceConflict) GetPayload() *models.ErrorResponse
- func (o *CreateNamespaceConflict) IsClientError() bool
- func (o *CreateNamespaceConflict) IsCode(code int) bool
- func (o *CreateNamespaceConflict) IsRedirect() bool
- func (o *CreateNamespaceConflict) IsServerError() bool
- func (o *CreateNamespaceConflict) IsSuccess() bool
- func (o *CreateNamespaceConflict) String() string
- type CreateNamespaceCreated
- func (o *CreateNamespaceCreated) Code() int
- func (o *CreateNamespaceCreated) Error() string
- func (o *CreateNamespaceCreated) GetPayload() *models.Namespace
- func (o *CreateNamespaceCreated) IsClientError() bool
- func (o *CreateNamespaceCreated) IsCode(code int) bool
- func (o *CreateNamespaceCreated) IsRedirect() bool
- func (o *CreateNamespaceCreated) IsServerError() bool
- func (o *CreateNamespaceCreated) IsSuccess() bool
- func (o *CreateNamespaceCreated) String() string
- type CreateNamespaceForbidden
- func (o *CreateNamespaceForbidden) Code() int
- func (o *CreateNamespaceForbidden) Error() string
- func (o *CreateNamespaceForbidden) GetPayload() *models.ErrorResponse
- func (o *CreateNamespaceForbidden) IsClientError() bool
- func (o *CreateNamespaceForbidden) IsCode(code int) bool
- func (o *CreateNamespaceForbidden) IsRedirect() bool
- func (o *CreateNamespaceForbidden) IsServerError() bool
- func (o *CreateNamespaceForbidden) IsSuccess() bool
- func (o *CreateNamespaceForbidden) String() string
- type CreateNamespaceInternalServerError
- func (o *CreateNamespaceInternalServerError) Code() int
- func (o *CreateNamespaceInternalServerError) Error() string
- func (o *CreateNamespaceInternalServerError) GetPayload() *models.ErrorResponse
- func (o *CreateNamespaceInternalServerError) IsClientError() bool
- func (o *CreateNamespaceInternalServerError) IsCode(code int) bool
- func (o *CreateNamespaceInternalServerError) IsRedirect() bool
- func (o *CreateNamespaceInternalServerError) IsServerError() bool
- func (o *CreateNamespaceInternalServerError) IsSuccess() bool
- func (o *CreateNamespaceInternalServerError) String() string
- type CreateNamespaceNotFound
- func (o *CreateNamespaceNotFound) Code() int
- func (o *CreateNamespaceNotFound) Error() string
- func (o *CreateNamespaceNotFound) GetPayload() *models.ErrorResponse
- func (o *CreateNamespaceNotFound) IsClientError() bool
- func (o *CreateNamespaceNotFound) IsCode(code int) bool
- func (o *CreateNamespaceNotFound) IsRedirect() bool
- func (o *CreateNamespaceNotFound) IsServerError() bool
- func (o *CreateNamespaceNotFound) IsSuccess() bool
- func (o *CreateNamespaceNotFound) String() string
- type CreateNamespaceParams
- func NewCreateNamespaceParams() *CreateNamespaceParams
- func NewCreateNamespaceParamsWithContext(ctx context.Context) *CreateNamespaceParams
- func NewCreateNamespaceParamsWithHTTPClient(client *http.Client) *CreateNamespaceParams
- func NewCreateNamespaceParamsWithTimeout(timeout time.Duration) *CreateNamespaceParams
- func (o *CreateNamespaceParams) SetBody(body *models.NamespaceCreateRequest)
- func (o *CreateNamespaceParams) SetContext(ctx context.Context)
- func (o *CreateNamespaceParams) SetDefaults()
- func (o *CreateNamespaceParams) SetHTTPClient(client *http.Client)
- func (o *CreateNamespaceParams) SetNamespaceID(namespaceID string)
- func (o *CreateNamespaceParams) SetTimeout(timeout time.Duration)
- func (o *CreateNamespaceParams) WithBody(body *models.NamespaceCreateRequest) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithContext(ctx context.Context) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithDefaults() *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithHTTPClient(client *http.Client) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithNamespaceID(namespaceID string) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithTimeout(timeout time.Duration) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateNamespaceReader
- type CreateNamespaceUnauthorized
- func (o *CreateNamespaceUnauthorized) Code() int
- func (o *CreateNamespaceUnauthorized) Error() string
- func (o *CreateNamespaceUnauthorized) IsClientError() bool
- func (o *CreateNamespaceUnauthorized) IsCode(code int) bool
- func (o *CreateNamespaceUnauthorized) IsRedirect() bool
- func (o *CreateNamespaceUnauthorized) IsServerError() bool
- func (o *CreateNamespaceUnauthorized) IsSuccess() bool
- func (o *CreateNamespaceUnauthorized) String() string
- type CreateNamespaceUnprocessableEntity
- func (o *CreateNamespaceUnprocessableEntity) Code() int
- func (o *CreateNamespaceUnprocessableEntity) Error() string
- func (o *CreateNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *CreateNamespaceUnprocessableEntity) IsClientError() bool
- func (o *CreateNamespaceUnprocessableEntity) IsCode(code int) bool
- func (o *CreateNamespaceUnprocessableEntity) IsRedirect() bool
- func (o *CreateNamespaceUnprocessableEntity) IsServerError() bool
- func (o *CreateNamespaceUnprocessableEntity) IsSuccess() bool
- func (o *CreateNamespaceUnprocessableEntity) String() string
- type DeleteNamespaceAccepted
- func (o *DeleteNamespaceAccepted) Code() int
- func (o *DeleteNamespaceAccepted) Error() string
- func (o *DeleteNamespaceAccepted) IsClientError() bool
- func (o *DeleteNamespaceAccepted) IsCode(code int) bool
- func (o *DeleteNamespaceAccepted) IsRedirect() bool
- func (o *DeleteNamespaceAccepted) IsServerError() bool
- func (o *DeleteNamespaceAccepted) IsSuccess() bool
- func (o *DeleteNamespaceAccepted) String() string
- type DeleteNamespaceForbidden
- func (o *DeleteNamespaceForbidden) Code() int
- func (o *DeleteNamespaceForbidden) Error() string
- func (o *DeleteNamespaceForbidden) GetPayload() *models.ErrorResponse
- func (o *DeleteNamespaceForbidden) IsClientError() bool
- func (o *DeleteNamespaceForbidden) IsCode(code int) bool
- func (o *DeleteNamespaceForbidden) IsRedirect() bool
- func (o *DeleteNamespaceForbidden) IsServerError() bool
- func (o *DeleteNamespaceForbidden) IsSuccess() bool
- func (o *DeleteNamespaceForbidden) String() string
- type DeleteNamespaceInternalServerError
- func (o *DeleteNamespaceInternalServerError) Code() int
- func (o *DeleteNamespaceInternalServerError) Error() string
- func (o *DeleteNamespaceInternalServerError) GetPayload() *models.ErrorResponse
- func (o *DeleteNamespaceInternalServerError) IsClientError() bool
- func (o *DeleteNamespaceInternalServerError) IsCode(code int) bool
- func (o *DeleteNamespaceInternalServerError) IsRedirect() bool
- func (o *DeleteNamespaceInternalServerError) IsServerError() bool
- func (o *DeleteNamespaceInternalServerError) IsSuccess() bool
- func (o *DeleteNamespaceInternalServerError) String() string
- type DeleteNamespaceNotFound
- func (o *DeleteNamespaceNotFound) Code() int
- func (o *DeleteNamespaceNotFound) Error() string
- func (o *DeleteNamespaceNotFound) GetPayload() *models.ErrorResponse
- func (o *DeleteNamespaceNotFound) IsClientError() bool
- func (o *DeleteNamespaceNotFound) IsCode(code int) bool
- func (o *DeleteNamespaceNotFound) IsRedirect() bool
- func (o *DeleteNamespaceNotFound) IsServerError() bool
- func (o *DeleteNamespaceNotFound) IsSuccess() bool
- func (o *DeleteNamespaceNotFound) String() string
- type DeleteNamespaceParams
- func NewDeleteNamespaceParams() *DeleteNamespaceParams
- func NewDeleteNamespaceParamsWithContext(ctx context.Context) *DeleteNamespaceParams
- func NewDeleteNamespaceParamsWithHTTPClient(client *http.Client) *DeleteNamespaceParams
- func NewDeleteNamespaceParamsWithTimeout(timeout time.Duration) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) SetContext(ctx context.Context)
- func (o *DeleteNamespaceParams) SetDefaults()
- func (o *DeleteNamespaceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteNamespaceParams) SetNamespaceID(namespaceID string)
- func (o *DeleteNamespaceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteNamespaceParams) WithContext(ctx context.Context) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WithDefaults() *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WithHTTPClient(client *http.Client) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WithNamespaceID(namespaceID string) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WithTimeout(timeout time.Duration) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteNamespaceReader
- type DeleteNamespaceUnauthorized
- func (o *DeleteNamespaceUnauthorized) Code() int
- func (o *DeleteNamespaceUnauthorized) Error() string
- func (o *DeleteNamespaceUnauthorized) IsClientError() bool
- func (o *DeleteNamespaceUnauthorized) IsCode(code int) bool
- func (o *DeleteNamespaceUnauthorized) IsRedirect() bool
- func (o *DeleteNamespaceUnauthorized) IsServerError() bool
- func (o *DeleteNamespaceUnauthorized) IsSuccess() bool
- func (o *DeleteNamespaceUnauthorized) String() string
- type DeleteNamespaceUnprocessableEntity
- func (o *DeleteNamespaceUnprocessableEntity) Code() int
- func (o *DeleteNamespaceUnprocessableEntity) Error() string
- func (o *DeleteNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *DeleteNamespaceUnprocessableEntity) IsClientError() bool
- func (o *DeleteNamespaceUnprocessableEntity) IsCode(code int) bool
- func (o *DeleteNamespaceUnprocessableEntity) IsRedirect() bool
- func (o *DeleteNamespaceUnprocessableEntity) IsServerError() bool
- func (o *DeleteNamespaceUnprocessableEntity) IsSuccess() bool
- func (o *DeleteNamespaceUnprocessableEntity) String() string
- type GetNamespaceForbidden
- func (o *GetNamespaceForbidden) Code() int
- func (o *GetNamespaceForbidden) Error() string
- func (o *GetNamespaceForbidden) GetPayload() *models.ErrorResponse
- func (o *GetNamespaceForbidden) IsClientError() bool
- func (o *GetNamespaceForbidden) IsCode(code int) bool
- func (o *GetNamespaceForbidden) IsRedirect() bool
- func (o *GetNamespaceForbidden) IsServerError() bool
- func (o *GetNamespaceForbidden) IsSuccess() bool
- func (o *GetNamespaceForbidden) String() string
- type GetNamespaceInternalServerError
- func (o *GetNamespaceInternalServerError) Code() int
- func (o *GetNamespaceInternalServerError) Error() string
- func (o *GetNamespaceInternalServerError) GetPayload() *models.ErrorResponse
- func (o *GetNamespaceInternalServerError) IsClientError() bool
- func (o *GetNamespaceInternalServerError) IsCode(code int) bool
- func (o *GetNamespaceInternalServerError) IsRedirect() bool
- func (o *GetNamespaceInternalServerError) IsServerError() bool
- func (o *GetNamespaceInternalServerError) IsSuccess() bool
- func (o *GetNamespaceInternalServerError) String() string
- type GetNamespaceNotFound
- func (o *GetNamespaceNotFound) Code() int
- func (o *GetNamespaceNotFound) Error() string
- func (o *GetNamespaceNotFound) GetPayload() *models.ErrorResponse
- func (o *GetNamespaceNotFound) IsClientError() bool
- func (o *GetNamespaceNotFound) IsCode(code int) bool
- func (o *GetNamespaceNotFound) IsRedirect() bool
- func (o *GetNamespaceNotFound) IsServerError() bool
- func (o *GetNamespaceNotFound) IsSuccess() bool
- func (o *GetNamespaceNotFound) String() string
- type GetNamespaceOK
- func (o *GetNamespaceOK) Code() int
- func (o *GetNamespaceOK) Error() string
- func (o *GetNamespaceOK) GetPayload() *models.Namespace
- func (o *GetNamespaceOK) IsClientError() bool
- func (o *GetNamespaceOK) IsCode(code int) bool
- func (o *GetNamespaceOK) IsRedirect() bool
- func (o *GetNamespaceOK) IsServerError() bool
- func (o *GetNamespaceOK) IsSuccess() bool
- func (o *GetNamespaceOK) String() string
- type GetNamespaceParams
- func (o *GetNamespaceParams) SetContext(ctx context.Context)
- func (o *GetNamespaceParams) SetDefaults()
- func (o *GetNamespaceParams) SetHTTPClient(client *http.Client)
- func (o *GetNamespaceParams) SetNamespaceID(namespaceID string)
- func (o *GetNamespaceParams) SetTimeout(timeout time.Duration)
- func (o *GetNamespaceParams) WithContext(ctx context.Context) *GetNamespaceParams
- func (o *GetNamespaceParams) WithDefaults() *GetNamespaceParams
- func (o *GetNamespaceParams) WithHTTPClient(client *http.Client) *GetNamespaceParams
- func (o *GetNamespaceParams) WithNamespaceID(namespaceID string) *GetNamespaceParams
- func (o *GetNamespaceParams) WithTimeout(timeout time.Duration) *GetNamespaceParams
- func (o *GetNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNamespaceReader
- type GetNamespaceUnauthorized
- func (o *GetNamespaceUnauthorized) Code() int
- func (o *GetNamespaceUnauthorized) Error() string
- func (o *GetNamespaceUnauthorized) IsClientError() bool
- func (o *GetNamespaceUnauthorized) IsCode(code int) bool
- func (o *GetNamespaceUnauthorized) IsRedirect() bool
- func (o *GetNamespaceUnauthorized) IsServerError() bool
- func (o *GetNamespaceUnauthorized) IsSuccess() bool
- func (o *GetNamespaceUnauthorized) String() string
- type GetNamespaceUnprocessableEntity
- func (o *GetNamespaceUnprocessableEntity) Code() int
- func (o *GetNamespaceUnprocessableEntity) Error() string
- func (o *GetNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *GetNamespaceUnprocessableEntity) IsClientError() bool
- func (o *GetNamespaceUnprocessableEntity) IsCode(code int) bool
- func (o *GetNamespaceUnprocessableEntity) IsRedirect() bool
- func (o *GetNamespaceUnprocessableEntity) IsServerError() bool
- func (o *GetNamespaceUnprocessableEntity) IsSuccess() bool
- func (o *GetNamespaceUnprocessableEntity) String() string
- type ListNamespacesInternalServerError
- func (o *ListNamespacesInternalServerError) Code() int
- func (o *ListNamespacesInternalServerError) Error() string
- func (o *ListNamespacesInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ListNamespacesInternalServerError) IsClientError() bool
- func (o *ListNamespacesInternalServerError) IsCode(code int) bool
- func (o *ListNamespacesInternalServerError) IsRedirect() bool
- func (o *ListNamespacesInternalServerError) IsServerError() bool
- func (o *ListNamespacesInternalServerError) IsSuccess() bool
- func (o *ListNamespacesInternalServerError) String() string
- type ListNamespacesNotFound
- func (o *ListNamespacesNotFound) Code() int
- func (o *ListNamespacesNotFound) Error() string
- func (o *ListNamespacesNotFound) GetPayload() *models.ErrorResponse
- func (o *ListNamespacesNotFound) IsClientError() bool
- func (o *ListNamespacesNotFound) IsCode(code int) bool
- func (o *ListNamespacesNotFound) IsRedirect() bool
- func (o *ListNamespacesNotFound) IsServerError() bool
- func (o *ListNamespacesNotFound) IsSuccess() bool
- func (o *ListNamespacesNotFound) String() string
- type ListNamespacesOK
- func (o *ListNamespacesOK) Code() int
- func (o *ListNamespacesOK) Error() string
- func (o *ListNamespacesOK) GetPayload() models.NamespaceListResponse
- func (o *ListNamespacesOK) IsClientError() bool
- func (o *ListNamespacesOK) IsCode(code int) bool
- func (o *ListNamespacesOK) IsRedirect() bool
- func (o *ListNamespacesOK) IsServerError() bool
- func (o *ListNamespacesOK) IsSuccess() bool
- func (o *ListNamespacesOK) String() string
- type ListNamespacesParams
- func NewListNamespacesParams() *ListNamespacesParams
- func NewListNamespacesParamsWithContext(ctx context.Context) *ListNamespacesParams
- func NewListNamespacesParamsWithHTTPClient(client *http.Client) *ListNamespacesParams
- func NewListNamespacesParamsWithTimeout(timeout time.Duration) *ListNamespacesParams
- func (o *ListNamespacesParams) SetContext(ctx context.Context)
- func (o *ListNamespacesParams) SetDefaults()
- func (o *ListNamespacesParams) SetHTTPClient(client *http.Client)
- func (o *ListNamespacesParams) SetTimeout(timeout time.Duration)
- func (o *ListNamespacesParams) WithContext(ctx context.Context) *ListNamespacesParams
- func (o *ListNamespacesParams) WithDefaults() *ListNamespacesParams
- func (o *ListNamespacesParams) WithHTTPClient(client *http.Client) *ListNamespacesParams
- func (o *ListNamespacesParams) WithTimeout(timeout time.Duration) *ListNamespacesParams
- func (o *ListNamespacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListNamespacesReader
- type ListNamespacesUnauthorized
- func (o *ListNamespacesUnauthorized) Code() int
- func (o *ListNamespacesUnauthorized) Error() string
- func (o *ListNamespacesUnauthorized) IsClientError() bool
- func (o *ListNamespacesUnauthorized) IsCode(code int) bool
- func (o *ListNamespacesUnauthorized) IsRedirect() bool
- func (o *ListNamespacesUnauthorized) IsServerError() bool
- func (o *ListNamespacesUnauthorized) IsSuccess() bool
- func (o *ListNamespacesUnauthorized) String() string
- type ListNamespacesUnprocessableEntity
- func (o *ListNamespacesUnprocessableEntity) Code() int
- func (o *ListNamespacesUnprocessableEntity) Error() string
- func (o *ListNamespacesUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *ListNamespacesUnprocessableEntity) IsClientError() bool
- func (o *ListNamespacesUnprocessableEntity) IsCode(code int) bool
- func (o *ListNamespacesUnprocessableEntity) IsRedirect() bool
- func (o *ListNamespacesUnprocessableEntity) IsServerError() bool
- func (o *ListNamespacesUnprocessableEntity) IsSuccess() bool
- func (o *ListNamespacesUnprocessableEntity) String() string
- type UpdateNamespaceConflict
- func (o *UpdateNamespaceConflict) Code() int
- func (o *UpdateNamespaceConflict) Error() string
- func (o *UpdateNamespaceConflict) GetPayload() *models.ErrorResponse
- func (o *UpdateNamespaceConflict) IsClientError() bool
- func (o *UpdateNamespaceConflict) IsCode(code int) bool
- func (o *UpdateNamespaceConflict) IsRedirect() bool
- func (o *UpdateNamespaceConflict) IsServerError() bool
- func (o *UpdateNamespaceConflict) IsSuccess() bool
- func (o *UpdateNamespaceConflict) String() string
- type UpdateNamespaceForbidden
- func (o *UpdateNamespaceForbidden) Code() int
- func (o *UpdateNamespaceForbidden) Error() string
- func (o *UpdateNamespaceForbidden) GetPayload() *models.ErrorResponse
- func (o *UpdateNamespaceForbidden) IsClientError() bool
- func (o *UpdateNamespaceForbidden) IsCode(code int) bool
- func (o *UpdateNamespaceForbidden) IsRedirect() bool
- func (o *UpdateNamespaceForbidden) IsServerError() bool
- func (o *UpdateNamespaceForbidden) IsSuccess() bool
- func (o *UpdateNamespaceForbidden) String() string
- type UpdateNamespaceInternalServerError
- func (o *UpdateNamespaceInternalServerError) Code() int
- func (o *UpdateNamespaceInternalServerError) Error() string
- func (o *UpdateNamespaceInternalServerError) GetPayload() *models.ErrorResponse
- func (o *UpdateNamespaceInternalServerError) IsClientError() bool
- func (o *UpdateNamespaceInternalServerError) IsCode(code int) bool
- func (o *UpdateNamespaceInternalServerError) IsRedirect() bool
- func (o *UpdateNamespaceInternalServerError) IsServerError() bool
- func (o *UpdateNamespaceInternalServerError) IsSuccess() bool
- func (o *UpdateNamespaceInternalServerError) String() string
- type UpdateNamespaceNotFound
- func (o *UpdateNamespaceNotFound) Code() int
- func (o *UpdateNamespaceNotFound) Error() string
- func (o *UpdateNamespaceNotFound) GetPayload() *models.ErrorResponse
- func (o *UpdateNamespaceNotFound) IsClientError() bool
- func (o *UpdateNamespaceNotFound) IsCode(code int) bool
- func (o *UpdateNamespaceNotFound) IsRedirect() bool
- func (o *UpdateNamespaceNotFound) IsServerError() bool
- func (o *UpdateNamespaceNotFound) IsSuccess() bool
- func (o *UpdateNamespaceNotFound) String() string
- type UpdateNamespaceOK
- func (o *UpdateNamespaceOK) Code() int
- func (o *UpdateNamespaceOK) Error() string
- func (o *UpdateNamespaceOK) GetPayload() *models.Namespace
- func (o *UpdateNamespaceOK) IsClientError() bool
- func (o *UpdateNamespaceOK) IsCode(code int) bool
- func (o *UpdateNamespaceOK) IsRedirect() bool
- func (o *UpdateNamespaceOK) IsServerError() bool
- func (o *UpdateNamespaceOK) IsSuccess() bool
- func (o *UpdateNamespaceOK) String() string
- type UpdateNamespaceParams
- func NewUpdateNamespaceParams() *UpdateNamespaceParams
- func NewUpdateNamespaceParamsWithContext(ctx context.Context) *UpdateNamespaceParams
- func NewUpdateNamespaceParamsWithHTTPClient(client *http.Client) *UpdateNamespaceParams
- func NewUpdateNamespaceParamsWithTimeout(timeout time.Duration) *UpdateNamespaceParams
- func (o *UpdateNamespaceParams) SetBody(body *models.NamespaceUpdateRequest)
- func (o *UpdateNamespaceParams) SetContext(ctx context.Context)
- func (o *UpdateNamespaceParams) SetDefaults()
- func (o *UpdateNamespaceParams) SetHTTPClient(client *http.Client)
- func (o *UpdateNamespaceParams) SetNamespaceID(namespaceID string)
- func (o *UpdateNamespaceParams) SetTimeout(timeout time.Duration)
- func (o *UpdateNamespaceParams) WithBody(body *models.NamespaceUpdateRequest) *UpdateNamespaceParams
- func (o *UpdateNamespaceParams) WithContext(ctx context.Context) *UpdateNamespaceParams
- func (o *UpdateNamespaceParams) WithDefaults() *UpdateNamespaceParams
- func (o *UpdateNamespaceParams) WithHTTPClient(client *http.Client) *UpdateNamespaceParams
- func (o *UpdateNamespaceParams) WithNamespaceID(namespaceID string) *UpdateNamespaceParams
- func (o *UpdateNamespaceParams) WithTimeout(timeout time.Duration) *UpdateNamespaceParams
- func (o *UpdateNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateNamespaceReader
- type UpdateNamespaceUnauthorized
- func (o *UpdateNamespaceUnauthorized) Code() int
- func (o *UpdateNamespaceUnauthorized) Error() string
- func (o *UpdateNamespaceUnauthorized) IsClientError() bool
- func (o *UpdateNamespaceUnauthorized) IsCode(code int) bool
- func (o *UpdateNamespaceUnauthorized) IsRedirect() bool
- func (o *UpdateNamespaceUnauthorized) IsServerError() bool
- func (o *UpdateNamespaceUnauthorized) IsSuccess() bool
- func (o *UpdateNamespaceUnauthorized) String() string
- type UpdateNamespaceUnprocessableEntity
- func (o *UpdateNamespaceUnprocessableEntity) Code() int
- func (o *UpdateNamespaceUnprocessableEntity) Error() string
- func (o *UpdateNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
- func (o *UpdateNamespaceUnprocessableEntity) IsClientError() bool
- func (o *UpdateNamespaceUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateNamespaceUnprocessableEntity) IsRedirect() bool
- func (o *UpdateNamespaceUnprocessableEntity) IsServerError() bool
- func (o *UpdateNamespaceUnprocessableEntity) IsSuccess() bool
- func (o *UpdateNamespaceUnprocessableEntity) String() string
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 namespaces API
func (*Client) CreateNamespace ¶
func (a *Client) CreateNamespace(params *CreateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNamespaceCreated, error)
CreateNamespace creates a new namespace
Create a new cluster-level namespace with the given name. Names must contain only lowercase letters, digits, and hyphens, must start and end with a letter or digit, must be 3-36 characters long, and must not be a reserved name.
func (*Client) DeleteNamespace ¶
func (a *Client) DeleteNamespace(params *DeleteNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceAccepted, error)
DeleteNamespace deletes a namespace
Mark a namespace for deletion. The endpoint is asynchronous: the namespace is flipped to the "deleting" state and its dynamic users are removed synchronously; classes and aliases are torn down by the leader on a periodic cleanup tick. Repeated calls while the namespace is still in the "deleting" state are idempotent and return 202.
func (*Client) GetNamespace ¶
func (a *Client) GetNamespace(params *GetNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceOK, error)
GetNamespace gets a namespace
Retrieve details about a specific namespace by its name.
func (*Client) ListNamespaces ¶
func (a *Client) ListNamespaces(params *ListNamespacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListNamespacesOK, error)
ListNamespaces lists namespaces
Retrieve the list of all namespaces the caller has permission to see. Callers without any applicable `manage_namespaces` permission receive an empty list (never 403).
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateNamespace ¶
func (a *Client) UpdateNamespace(params *UpdateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNamespaceOK, error)
UpdateNamespace updates a namespace
Update a namespace's `home_node`. The new value applies to future placement decisions only (new collection create, new tenant create, tenant reactivation). Existing live shards are not moved.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
CreateNamespace(params *CreateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNamespaceCreated, error)
DeleteNamespace(params *DeleteNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceAccepted, error)
GetNamespace(params *GetNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceOK, error)
ListNamespaces(params *ListNamespacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListNamespacesOK, error)
UpdateNamespace(params *UpdateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateNamespaceOK, 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 namespaces API client.
type CreateNamespaceConflict ¶
type CreateNamespaceConflict struct {
Payload *models.ErrorResponse
}
CreateNamespaceConflict describes a response with status code 409, with default header values.
A namespace with the specified name already exists, or a namespace with the same name is currently being deleted. Differentiate by reading the human-readable message in the error payload.
func NewCreateNamespaceConflict ¶
func NewCreateNamespaceConflict() *CreateNamespaceConflict
NewCreateNamespaceConflict creates a CreateNamespaceConflict with default headers values
func (*CreateNamespaceConflict) Code ¶
func (o *CreateNamespaceConflict) Code() int
Code gets the status code for the create namespace conflict response
func (*CreateNamespaceConflict) Error ¶
func (o *CreateNamespaceConflict) Error() string
func (*CreateNamespaceConflict) GetPayload ¶
func (o *CreateNamespaceConflict) GetPayload() *models.ErrorResponse
func (*CreateNamespaceConflict) IsClientError ¶
func (o *CreateNamespaceConflict) IsClientError() bool
IsClientError returns true when this create namespace conflict response has a 4xx status code
func (*CreateNamespaceConflict) IsCode ¶
func (o *CreateNamespaceConflict) IsCode(code int) bool
IsCode returns true when this create namespace conflict response a status code equal to that given
func (*CreateNamespaceConflict) IsRedirect ¶
func (o *CreateNamespaceConflict) IsRedirect() bool
IsRedirect returns true when this create namespace conflict response has a 3xx status code
func (*CreateNamespaceConflict) IsServerError ¶
func (o *CreateNamespaceConflict) IsServerError() bool
IsServerError returns true when this create namespace conflict response has a 5xx status code
func (*CreateNamespaceConflict) IsSuccess ¶
func (o *CreateNamespaceConflict) IsSuccess() bool
IsSuccess returns true when this create namespace conflict response has a 2xx status code
func (*CreateNamespaceConflict) String ¶
func (o *CreateNamespaceConflict) String() string
type CreateNamespaceCreated ¶
CreateNamespaceCreated describes a response with status code 201, with default header values.
Namespace created successfully.
func NewCreateNamespaceCreated ¶
func NewCreateNamespaceCreated() *CreateNamespaceCreated
NewCreateNamespaceCreated creates a CreateNamespaceCreated with default headers values
func (*CreateNamespaceCreated) Code ¶
func (o *CreateNamespaceCreated) Code() int
Code gets the status code for the create namespace created response
func (*CreateNamespaceCreated) Error ¶
func (o *CreateNamespaceCreated) Error() string
func (*CreateNamespaceCreated) GetPayload ¶
func (o *CreateNamespaceCreated) GetPayload() *models.Namespace
func (*CreateNamespaceCreated) IsClientError ¶
func (o *CreateNamespaceCreated) IsClientError() bool
IsClientError returns true when this create namespace created response has a 4xx status code
func (*CreateNamespaceCreated) IsCode ¶
func (o *CreateNamespaceCreated) IsCode(code int) bool
IsCode returns true when this create namespace created response a status code equal to that given
func (*CreateNamespaceCreated) IsRedirect ¶
func (o *CreateNamespaceCreated) IsRedirect() bool
IsRedirect returns true when this create namespace created response has a 3xx status code
func (*CreateNamespaceCreated) IsServerError ¶
func (o *CreateNamespaceCreated) IsServerError() bool
IsServerError returns true when this create namespace created response has a 5xx status code
func (*CreateNamespaceCreated) IsSuccess ¶
func (o *CreateNamespaceCreated) IsSuccess() bool
IsSuccess returns true when this create namespace created response has a 2xx status code
func (*CreateNamespaceCreated) String ¶
func (o *CreateNamespaceCreated) String() string
type CreateNamespaceForbidden ¶
type CreateNamespaceForbidden struct {
Payload *models.ErrorResponse
}
CreateNamespaceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateNamespaceForbidden ¶
func NewCreateNamespaceForbidden() *CreateNamespaceForbidden
NewCreateNamespaceForbidden creates a CreateNamespaceForbidden with default headers values
func (*CreateNamespaceForbidden) Code ¶
func (o *CreateNamespaceForbidden) Code() int
Code gets the status code for the create namespace forbidden response
func (*CreateNamespaceForbidden) Error ¶
func (o *CreateNamespaceForbidden) Error() string
func (*CreateNamespaceForbidden) GetPayload ¶
func (o *CreateNamespaceForbidden) GetPayload() *models.ErrorResponse
func (*CreateNamespaceForbidden) IsClientError ¶
func (o *CreateNamespaceForbidden) IsClientError() bool
IsClientError returns true when this create namespace forbidden response has a 4xx status code
func (*CreateNamespaceForbidden) IsCode ¶
func (o *CreateNamespaceForbidden) IsCode(code int) bool
IsCode returns true when this create namespace forbidden response a status code equal to that given
func (*CreateNamespaceForbidden) IsRedirect ¶
func (o *CreateNamespaceForbidden) IsRedirect() bool
IsRedirect returns true when this create namespace forbidden response has a 3xx status code
func (*CreateNamespaceForbidden) IsServerError ¶
func (o *CreateNamespaceForbidden) IsServerError() bool
IsServerError returns true when this create namespace forbidden response has a 5xx status code
func (*CreateNamespaceForbidden) IsSuccess ¶
func (o *CreateNamespaceForbidden) IsSuccess() bool
IsSuccess returns true when this create namespace forbidden response has a 2xx status code
func (*CreateNamespaceForbidden) String ¶
func (o *CreateNamespaceForbidden) String() string
type CreateNamespaceInternalServerError ¶
type CreateNamespaceInternalServerError struct {
Payload *models.ErrorResponse
}
CreateNamespaceInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewCreateNamespaceInternalServerError ¶
func NewCreateNamespaceInternalServerError() *CreateNamespaceInternalServerError
NewCreateNamespaceInternalServerError creates a CreateNamespaceInternalServerError with default headers values
func (*CreateNamespaceInternalServerError) Code ¶
func (o *CreateNamespaceInternalServerError) Code() int
Code gets the status code for the create namespace internal server error response
func (*CreateNamespaceInternalServerError) Error ¶
func (o *CreateNamespaceInternalServerError) Error() string
func (*CreateNamespaceInternalServerError) GetPayload ¶
func (o *CreateNamespaceInternalServerError) GetPayload() *models.ErrorResponse
func (*CreateNamespaceInternalServerError) IsClientError ¶
func (o *CreateNamespaceInternalServerError) IsClientError() bool
IsClientError returns true when this create namespace internal server error response has a 4xx status code
func (*CreateNamespaceInternalServerError) IsCode ¶
func (o *CreateNamespaceInternalServerError) IsCode(code int) bool
IsCode returns true when this create namespace internal server error response a status code equal to that given
func (*CreateNamespaceInternalServerError) IsRedirect ¶
func (o *CreateNamespaceInternalServerError) IsRedirect() bool
IsRedirect returns true when this create namespace internal server error response has a 3xx status code
func (*CreateNamespaceInternalServerError) IsServerError ¶
func (o *CreateNamespaceInternalServerError) IsServerError() bool
IsServerError returns true when this create namespace internal server error response has a 5xx status code
func (*CreateNamespaceInternalServerError) IsSuccess ¶
func (o *CreateNamespaceInternalServerError) IsSuccess() bool
IsSuccess returns true when this create namespace internal server error response has a 2xx status code
func (*CreateNamespaceInternalServerError) String ¶
func (o *CreateNamespaceInternalServerError) String() string
type CreateNamespaceNotFound ¶
type CreateNamespaceNotFound struct {
Payload *models.ErrorResponse
}
CreateNamespaceNotFound describes a response with status code 404, with default header values.
Not Found - The namespaces feature is not enabled on this cluster.
func NewCreateNamespaceNotFound ¶
func NewCreateNamespaceNotFound() *CreateNamespaceNotFound
NewCreateNamespaceNotFound creates a CreateNamespaceNotFound with default headers values
func (*CreateNamespaceNotFound) Code ¶
func (o *CreateNamespaceNotFound) Code() int
Code gets the status code for the create namespace not found response
func (*CreateNamespaceNotFound) Error ¶
func (o *CreateNamespaceNotFound) Error() string
func (*CreateNamespaceNotFound) GetPayload ¶
func (o *CreateNamespaceNotFound) GetPayload() *models.ErrorResponse
func (*CreateNamespaceNotFound) IsClientError ¶
func (o *CreateNamespaceNotFound) IsClientError() bool
IsClientError returns true when this create namespace not found response has a 4xx status code
func (*CreateNamespaceNotFound) IsCode ¶
func (o *CreateNamespaceNotFound) IsCode(code int) bool
IsCode returns true when this create namespace not found response a status code equal to that given
func (*CreateNamespaceNotFound) IsRedirect ¶
func (o *CreateNamespaceNotFound) IsRedirect() bool
IsRedirect returns true when this create namespace not found response has a 3xx status code
func (*CreateNamespaceNotFound) IsServerError ¶
func (o *CreateNamespaceNotFound) IsServerError() bool
IsServerError returns true when this create namespace not found response has a 5xx status code
func (*CreateNamespaceNotFound) IsSuccess ¶
func (o *CreateNamespaceNotFound) IsSuccess() bool
IsSuccess returns true when this create namespace not found response has a 2xx status code
func (*CreateNamespaceNotFound) String ¶
func (o *CreateNamespaceNotFound) String() string
type CreateNamespaceParams ¶
type CreateNamespaceParams struct {
/* Body.
Optional body. When omitted, `home_node` is picked automatically.
*/
Body *models.NamespaceCreateRequest
/* NamespaceID.
The name of the namespace. Must start with a lowercase letter, contain only lowercase letters and digits, length 3-36, and not be a reserved name.
*/
NamespaceID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateNamespaceParams contains all the parameters to send to the API endpoint
for the create namespace operation. Typically these are written to a http.Request.
func NewCreateNamespaceParams ¶
func NewCreateNamespaceParams() *CreateNamespaceParams
NewCreateNamespaceParams creates a new CreateNamespaceParams 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 NewCreateNamespaceParamsWithContext ¶
func NewCreateNamespaceParamsWithContext(ctx context.Context) *CreateNamespaceParams
NewCreateNamespaceParamsWithContext creates a new CreateNamespaceParams object with the ability to set a context for a request.
func NewCreateNamespaceParamsWithHTTPClient ¶
func NewCreateNamespaceParamsWithHTTPClient(client *http.Client) *CreateNamespaceParams
NewCreateNamespaceParamsWithHTTPClient creates a new CreateNamespaceParams object with the ability to set a custom HTTPClient for a request.
func NewCreateNamespaceParamsWithTimeout ¶
func NewCreateNamespaceParamsWithTimeout(timeout time.Duration) *CreateNamespaceParams
NewCreateNamespaceParamsWithTimeout creates a new CreateNamespaceParams object with the ability to set a timeout on a request.
func (*CreateNamespaceParams) SetBody ¶
func (o *CreateNamespaceParams) SetBody(body *models.NamespaceCreateRequest)
SetBody adds the body to the create namespace params
func (*CreateNamespaceParams) SetContext ¶
func (o *CreateNamespaceParams) SetContext(ctx context.Context)
SetContext adds the context to the create namespace params
func (*CreateNamespaceParams) SetDefaults ¶
func (o *CreateNamespaceParams) SetDefaults()
SetDefaults hydrates default values in the create namespace params (not the query body).
All values with no default are reset to their zero value.
func (*CreateNamespaceParams) SetHTTPClient ¶
func (o *CreateNamespaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create namespace params
func (*CreateNamespaceParams) SetNamespaceID ¶
func (o *CreateNamespaceParams) SetNamespaceID(namespaceID string)
SetNamespaceID adds the namespaceId to the create namespace params
func (*CreateNamespaceParams) SetTimeout ¶
func (o *CreateNamespaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create namespace params
func (*CreateNamespaceParams) WithBody ¶
func (o *CreateNamespaceParams) WithBody(body *models.NamespaceCreateRequest) *CreateNamespaceParams
WithBody adds the body to the create namespace params
func (*CreateNamespaceParams) WithContext ¶
func (o *CreateNamespaceParams) WithContext(ctx context.Context) *CreateNamespaceParams
WithContext adds the context to the create namespace params
func (*CreateNamespaceParams) WithDefaults ¶
func (o *CreateNamespaceParams) WithDefaults() *CreateNamespaceParams
WithDefaults hydrates default values in the create namespace params (not the query body).
All values with no default are reset to their zero value.
func (*CreateNamespaceParams) WithHTTPClient ¶
func (o *CreateNamespaceParams) WithHTTPClient(client *http.Client) *CreateNamespaceParams
WithHTTPClient adds the HTTPClient to the create namespace params
func (*CreateNamespaceParams) WithNamespaceID ¶
func (o *CreateNamespaceParams) WithNamespaceID(namespaceID string) *CreateNamespaceParams
WithNamespaceID adds the namespaceID to the create namespace params
func (*CreateNamespaceParams) WithTimeout ¶
func (o *CreateNamespaceParams) WithTimeout(timeout time.Duration) *CreateNamespaceParams
WithTimeout adds the timeout to the create namespace params
func (*CreateNamespaceParams) WriteToRequest ¶
func (o *CreateNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateNamespaceReader ¶
type CreateNamespaceReader struct {
// contains filtered or unexported fields
}
CreateNamespaceReader is a Reader for the CreateNamespace structure.
func (*CreateNamespaceReader) ReadResponse ¶
func (o *CreateNamespaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateNamespaceUnauthorized ¶
type CreateNamespaceUnauthorized struct {
}
CreateNamespaceUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewCreateNamespaceUnauthorized ¶
func NewCreateNamespaceUnauthorized() *CreateNamespaceUnauthorized
NewCreateNamespaceUnauthorized creates a CreateNamespaceUnauthorized with default headers values
func (*CreateNamespaceUnauthorized) Code ¶
func (o *CreateNamespaceUnauthorized) Code() int
Code gets the status code for the create namespace unauthorized response
func (*CreateNamespaceUnauthorized) Error ¶
func (o *CreateNamespaceUnauthorized) Error() string
func (*CreateNamespaceUnauthorized) IsClientError ¶
func (o *CreateNamespaceUnauthorized) IsClientError() bool
IsClientError returns true when this create namespace unauthorized response has a 4xx status code
func (*CreateNamespaceUnauthorized) IsCode ¶
func (o *CreateNamespaceUnauthorized) IsCode(code int) bool
IsCode returns true when this create namespace unauthorized response a status code equal to that given
func (*CreateNamespaceUnauthorized) IsRedirect ¶
func (o *CreateNamespaceUnauthorized) IsRedirect() bool
IsRedirect returns true when this create namespace unauthorized response has a 3xx status code
func (*CreateNamespaceUnauthorized) IsServerError ¶
func (o *CreateNamespaceUnauthorized) IsServerError() bool
IsServerError returns true when this create namespace unauthorized response has a 5xx status code
func (*CreateNamespaceUnauthorized) IsSuccess ¶
func (o *CreateNamespaceUnauthorized) IsSuccess() bool
IsSuccess returns true when this create namespace unauthorized response has a 2xx status code
func (*CreateNamespaceUnauthorized) String ¶
func (o *CreateNamespaceUnauthorized) String() string
type CreateNamespaceUnprocessableEntity ¶
type CreateNamespaceUnprocessableEntity struct {
Payload *models.ErrorResponse
}
CreateNamespaceUnprocessableEntity describes a response with status code 422, with default header values.
The request syntax is correct, but the server couldn't process it due to semantic issues (e.g. invalid name format or reserved name).
func NewCreateNamespaceUnprocessableEntity ¶
func NewCreateNamespaceUnprocessableEntity() *CreateNamespaceUnprocessableEntity
NewCreateNamespaceUnprocessableEntity creates a CreateNamespaceUnprocessableEntity with default headers values
func (*CreateNamespaceUnprocessableEntity) Code ¶
func (o *CreateNamespaceUnprocessableEntity) Code() int
Code gets the status code for the create namespace unprocessable entity response
func (*CreateNamespaceUnprocessableEntity) Error ¶
func (o *CreateNamespaceUnprocessableEntity) Error() string
func (*CreateNamespaceUnprocessableEntity) GetPayload ¶
func (o *CreateNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*CreateNamespaceUnprocessableEntity) IsClientError ¶
func (o *CreateNamespaceUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create namespace unprocessable entity response has a 4xx status code
func (*CreateNamespaceUnprocessableEntity) IsCode ¶
func (o *CreateNamespaceUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create namespace unprocessable entity response a status code equal to that given
func (*CreateNamespaceUnprocessableEntity) IsRedirect ¶
func (o *CreateNamespaceUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create namespace unprocessable entity response has a 3xx status code
func (*CreateNamespaceUnprocessableEntity) IsServerError ¶
func (o *CreateNamespaceUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create namespace unprocessable entity response has a 5xx status code
func (*CreateNamespaceUnprocessableEntity) IsSuccess ¶
func (o *CreateNamespaceUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create namespace unprocessable entity response has a 2xx status code
func (*CreateNamespaceUnprocessableEntity) String ¶
func (o *CreateNamespaceUnprocessableEntity) String() string
type DeleteNamespaceAccepted ¶
type DeleteNamespaceAccepted struct {
}
DeleteNamespaceAccepted describes a response with status code 202, with default header values.
The namespace has been marked for deletion. Cleanup of its classes, aliases, and users completes asynchronously.
func NewDeleteNamespaceAccepted ¶
func NewDeleteNamespaceAccepted() *DeleteNamespaceAccepted
NewDeleteNamespaceAccepted creates a DeleteNamespaceAccepted with default headers values
func (*DeleteNamespaceAccepted) Code ¶
func (o *DeleteNamespaceAccepted) Code() int
Code gets the status code for the delete namespace accepted response
func (*DeleteNamespaceAccepted) Error ¶
func (o *DeleteNamespaceAccepted) Error() string
func (*DeleteNamespaceAccepted) IsClientError ¶
func (o *DeleteNamespaceAccepted) IsClientError() bool
IsClientError returns true when this delete namespace accepted response has a 4xx status code
func (*DeleteNamespaceAccepted) IsCode ¶
func (o *DeleteNamespaceAccepted) IsCode(code int) bool
IsCode returns true when this delete namespace accepted response a status code equal to that given
func (*DeleteNamespaceAccepted) IsRedirect ¶
func (o *DeleteNamespaceAccepted) IsRedirect() bool
IsRedirect returns true when this delete namespace accepted response has a 3xx status code
func (*DeleteNamespaceAccepted) IsServerError ¶
func (o *DeleteNamespaceAccepted) IsServerError() bool
IsServerError returns true when this delete namespace accepted response has a 5xx status code
func (*DeleteNamespaceAccepted) IsSuccess ¶
func (o *DeleteNamespaceAccepted) IsSuccess() bool
IsSuccess returns true when this delete namespace accepted response has a 2xx status code
func (*DeleteNamespaceAccepted) String ¶
func (o *DeleteNamespaceAccepted) String() string
type DeleteNamespaceForbidden ¶
type DeleteNamespaceForbidden struct {
Payload *models.ErrorResponse
}
DeleteNamespaceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteNamespaceForbidden ¶
func NewDeleteNamespaceForbidden() *DeleteNamespaceForbidden
NewDeleteNamespaceForbidden creates a DeleteNamespaceForbidden with default headers values
func (*DeleteNamespaceForbidden) Code ¶
func (o *DeleteNamespaceForbidden) Code() int
Code gets the status code for the delete namespace forbidden response
func (*DeleteNamespaceForbidden) Error ¶
func (o *DeleteNamespaceForbidden) Error() string
func (*DeleteNamespaceForbidden) GetPayload ¶
func (o *DeleteNamespaceForbidden) GetPayload() *models.ErrorResponse
func (*DeleteNamespaceForbidden) IsClientError ¶
func (o *DeleteNamespaceForbidden) IsClientError() bool
IsClientError returns true when this delete namespace forbidden response has a 4xx status code
func (*DeleteNamespaceForbidden) IsCode ¶
func (o *DeleteNamespaceForbidden) IsCode(code int) bool
IsCode returns true when this delete namespace forbidden response a status code equal to that given
func (*DeleteNamespaceForbidden) IsRedirect ¶
func (o *DeleteNamespaceForbidden) IsRedirect() bool
IsRedirect returns true when this delete namespace forbidden response has a 3xx status code
func (*DeleteNamespaceForbidden) IsServerError ¶
func (o *DeleteNamespaceForbidden) IsServerError() bool
IsServerError returns true when this delete namespace forbidden response has a 5xx status code
func (*DeleteNamespaceForbidden) IsSuccess ¶
func (o *DeleteNamespaceForbidden) IsSuccess() bool
IsSuccess returns true when this delete namespace forbidden response has a 2xx status code
func (*DeleteNamespaceForbidden) String ¶
func (o *DeleteNamespaceForbidden) String() string
type DeleteNamespaceInternalServerError ¶
type DeleteNamespaceInternalServerError struct {
Payload *models.ErrorResponse
}
DeleteNamespaceInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewDeleteNamespaceInternalServerError ¶
func NewDeleteNamespaceInternalServerError() *DeleteNamespaceInternalServerError
NewDeleteNamespaceInternalServerError creates a DeleteNamespaceInternalServerError with default headers values
func (*DeleteNamespaceInternalServerError) Code ¶
func (o *DeleteNamespaceInternalServerError) Code() int
Code gets the status code for the delete namespace internal server error response
func (*DeleteNamespaceInternalServerError) Error ¶
func (o *DeleteNamespaceInternalServerError) Error() string
func (*DeleteNamespaceInternalServerError) GetPayload ¶
func (o *DeleteNamespaceInternalServerError) GetPayload() *models.ErrorResponse
func (*DeleteNamespaceInternalServerError) IsClientError ¶
func (o *DeleteNamespaceInternalServerError) IsClientError() bool
IsClientError returns true when this delete namespace internal server error response has a 4xx status code
func (*DeleteNamespaceInternalServerError) IsCode ¶
func (o *DeleteNamespaceInternalServerError) IsCode(code int) bool
IsCode returns true when this delete namespace internal server error response a status code equal to that given
func (*DeleteNamespaceInternalServerError) IsRedirect ¶
func (o *DeleteNamespaceInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete namespace internal server error response has a 3xx status code
func (*DeleteNamespaceInternalServerError) IsServerError ¶
func (o *DeleteNamespaceInternalServerError) IsServerError() bool
IsServerError returns true when this delete namespace internal server error response has a 5xx status code
func (*DeleteNamespaceInternalServerError) IsSuccess ¶
func (o *DeleteNamespaceInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete namespace internal server error response has a 2xx status code
func (*DeleteNamespaceInternalServerError) String ¶
func (o *DeleteNamespaceInternalServerError) String() string
type DeleteNamespaceNotFound ¶
type DeleteNamespaceNotFound struct {
Payload *models.ErrorResponse
}
DeleteNamespaceNotFound describes a response with status code 404, with default header values.
Not Found - Namespace does not exist, or the namespaces feature is not enabled on this cluster.
func NewDeleteNamespaceNotFound ¶
func NewDeleteNamespaceNotFound() *DeleteNamespaceNotFound
NewDeleteNamespaceNotFound creates a DeleteNamespaceNotFound with default headers values
func (*DeleteNamespaceNotFound) Code ¶
func (o *DeleteNamespaceNotFound) Code() int
Code gets the status code for the delete namespace not found response
func (*DeleteNamespaceNotFound) Error ¶
func (o *DeleteNamespaceNotFound) Error() string
func (*DeleteNamespaceNotFound) GetPayload ¶
func (o *DeleteNamespaceNotFound) GetPayload() *models.ErrorResponse
func (*DeleteNamespaceNotFound) IsClientError ¶
func (o *DeleteNamespaceNotFound) IsClientError() bool
IsClientError returns true when this delete namespace not found response has a 4xx status code
func (*DeleteNamespaceNotFound) IsCode ¶
func (o *DeleteNamespaceNotFound) IsCode(code int) bool
IsCode returns true when this delete namespace not found response a status code equal to that given
func (*DeleteNamespaceNotFound) IsRedirect ¶
func (o *DeleteNamespaceNotFound) IsRedirect() bool
IsRedirect returns true when this delete namespace not found response has a 3xx status code
func (*DeleteNamespaceNotFound) IsServerError ¶
func (o *DeleteNamespaceNotFound) IsServerError() bool
IsServerError returns true when this delete namespace not found response has a 5xx status code
func (*DeleteNamespaceNotFound) IsSuccess ¶
func (o *DeleteNamespaceNotFound) IsSuccess() bool
IsSuccess returns true when this delete namespace not found response has a 2xx status code
func (*DeleteNamespaceNotFound) String ¶
func (o *DeleteNamespaceNotFound) String() string
type DeleteNamespaceParams ¶
type DeleteNamespaceParams struct {
/* NamespaceID.
The name of the namespace.
*/
NamespaceID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteNamespaceParams contains all the parameters to send to the API endpoint
for the delete namespace operation. Typically these are written to a http.Request.
func NewDeleteNamespaceParams ¶
func NewDeleteNamespaceParams() *DeleteNamespaceParams
NewDeleteNamespaceParams creates a new DeleteNamespaceParams 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 NewDeleteNamespaceParamsWithContext ¶
func NewDeleteNamespaceParamsWithContext(ctx context.Context) *DeleteNamespaceParams
NewDeleteNamespaceParamsWithContext creates a new DeleteNamespaceParams object with the ability to set a context for a request.
func NewDeleteNamespaceParamsWithHTTPClient ¶
func NewDeleteNamespaceParamsWithHTTPClient(client *http.Client) *DeleteNamespaceParams
NewDeleteNamespaceParamsWithHTTPClient creates a new DeleteNamespaceParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteNamespaceParamsWithTimeout ¶
func NewDeleteNamespaceParamsWithTimeout(timeout time.Duration) *DeleteNamespaceParams
NewDeleteNamespaceParamsWithTimeout creates a new DeleteNamespaceParams object with the ability to set a timeout on a request.
func (*DeleteNamespaceParams) SetContext ¶
func (o *DeleteNamespaceParams) SetContext(ctx context.Context)
SetContext adds the context to the delete namespace params
func (*DeleteNamespaceParams) SetDefaults ¶
func (o *DeleteNamespaceParams) SetDefaults()
SetDefaults hydrates default values in the delete namespace params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteNamespaceParams) SetHTTPClient ¶
func (o *DeleteNamespaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete namespace params
func (*DeleteNamespaceParams) SetNamespaceID ¶
func (o *DeleteNamespaceParams) SetNamespaceID(namespaceID string)
SetNamespaceID adds the namespaceId to the delete namespace params
func (*DeleteNamespaceParams) SetTimeout ¶
func (o *DeleteNamespaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete namespace params
func (*DeleteNamespaceParams) WithContext ¶
func (o *DeleteNamespaceParams) WithContext(ctx context.Context) *DeleteNamespaceParams
WithContext adds the context to the delete namespace params
func (*DeleteNamespaceParams) WithDefaults ¶
func (o *DeleteNamespaceParams) WithDefaults() *DeleteNamespaceParams
WithDefaults hydrates default values in the delete namespace params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteNamespaceParams) WithHTTPClient ¶
func (o *DeleteNamespaceParams) WithHTTPClient(client *http.Client) *DeleteNamespaceParams
WithHTTPClient adds the HTTPClient to the delete namespace params
func (*DeleteNamespaceParams) WithNamespaceID ¶
func (o *DeleteNamespaceParams) WithNamespaceID(namespaceID string) *DeleteNamespaceParams
WithNamespaceID adds the namespaceID to the delete namespace params
func (*DeleteNamespaceParams) WithTimeout ¶
func (o *DeleteNamespaceParams) WithTimeout(timeout time.Duration) *DeleteNamespaceParams
WithTimeout adds the timeout to the delete namespace params
func (*DeleteNamespaceParams) WriteToRequest ¶
func (o *DeleteNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteNamespaceReader ¶
type DeleteNamespaceReader struct {
// contains filtered or unexported fields
}
DeleteNamespaceReader is a Reader for the DeleteNamespace structure.
func (*DeleteNamespaceReader) ReadResponse ¶
func (o *DeleteNamespaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteNamespaceUnauthorized ¶
type DeleteNamespaceUnauthorized struct {
}
DeleteNamespaceUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewDeleteNamespaceUnauthorized ¶
func NewDeleteNamespaceUnauthorized() *DeleteNamespaceUnauthorized
NewDeleteNamespaceUnauthorized creates a DeleteNamespaceUnauthorized with default headers values
func (*DeleteNamespaceUnauthorized) Code ¶
func (o *DeleteNamespaceUnauthorized) Code() int
Code gets the status code for the delete namespace unauthorized response
func (*DeleteNamespaceUnauthorized) Error ¶
func (o *DeleteNamespaceUnauthorized) Error() string
func (*DeleteNamespaceUnauthorized) IsClientError ¶
func (o *DeleteNamespaceUnauthorized) IsClientError() bool
IsClientError returns true when this delete namespace unauthorized response has a 4xx status code
func (*DeleteNamespaceUnauthorized) IsCode ¶
func (o *DeleteNamespaceUnauthorized) IsCode(code int) bool
IsCode returns true when this delete namespace unauthorized response a status code equal to that given
func (*DeleteNamespaceUnauthorized) IsRedirect ¶
func (o *DeleteNamespaceUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete namespace unauthorized response has a 3xx status code
func (*DeleteNamespaceUnauthorized) IsServerError ¶
func (o *DeleteNamespaceUnauthorized) IsServerError() bool
IsServerError returns true when this delete namespace unauthorized response has a 5xx status code
func (*DeleteNamespaceUnauthorized) IsSuccess ¶
func (o *DeleteNamespaceUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete namespace unauthorized response has a 2xx status code
func (*DeleteNamespaceUnauthorized) String ¶
func (o *DeleteNamespaceUnauthorized) String() string
type DeleteNamespaceUnprocessableEntity ¶
type DeleteNamespaceUnprocessableEntity struct {
Payload *models.ErrorResponse
}
DeleteNamespaceUnprocessableEntity describes a response with status code 422, with default header values.
The request syntax is correct, but the server couldn't process it due to semantic issues (e.g. invalid name format or reserved name).
func NewDeleteNamespaceUnprocessableEntity ¶
func NewDeleteNamespaceUnprocessableEntity() *DeleteNamespaceUnprocessableEntity
NewDeleteNamespaceUnprocessableEntity creates a DeleteNamespaceUnprocessableEntity with default headers values
func (*DeleteNamespaceUnprocessableEntity) Code ¶
func (o *DeleteNamespaceUnprocessableEntity) Code() int
Code gets the status code for the delete namespace unprocessable entity response
func (*DeleteNamespaceUnprocessableEntity) Error ¶
func (o *DeleteNamespaceUnprocessableEntity) Error() string
func (*DeleteNamespaceUnprocessableEntity) GetPayload ¶
func (o *DeleteNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*DeleteNamespaceUnprocessableEntity) IsClientError ¶
func (o *DeleteNamespaceUnprocessableEntity) IsClientError() bool
IsClientError returns true when this delete namespace unprocessable entity response has a 4xx status code
func (*DeleteNamespaceUnprocessableEntity) IsCode ¶
func (o *DeleteNamespaceUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this delete namespace unprocessable entity response a status code equal to that given
func (*DeleteNamespaceUnprocessableEntity) IsRedirect ¶
func (o *DeleteNamespaceUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this delete namespace unprocessable entity response has a 3xx status code
func (*DeleteNamespaceUnprocessableEntity) IsServerError ¶
func (o *DeleteNamespaceUnprocessableEntity) IsServerError() bool
IsServerError returns true when this delete namespace unprocessable entity response has a 5xx status code
func (*DeleteNamespaceUnprocessableEntity) IsSuccess ¶
func (o *DeleteNamespaceUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this delete namespace unprocessable entity response has a 2xx status code
func (*DeleteNamespaceUnprocessableEntity) String ¶
func (o *DeleteNamespaceUnprocessableEntity) String() string
type GetNamespaceForbidden ¶
type GetNamespaceForbidden struct {
Payload *models.ErrorResponse
}
GetNamespaceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetNamespaceForbidden ¶
func NewGetNamespaceForbidden() *GetNamespaceForbidden
NewGetNamespaceForbidden creates a GetNamespaceForbidden with default headers values
func (*GetNamespaceForbidden) Code ¶
func (o *GetNamespaceForbidden) Code() int
Code gets the status code for the get namespace forbidden response
func (*GetNamespaceForbidden) Error ¶
func (o *GetNamespaceForbidden) Error() string
func (*GetNamespaceForbidden) GetPayload ¶
func (o *GetNamespaceForbidden) GetPayload() *models.ErrorResponse
func (*GetNamespaceForbidden) IsClientError ¶
func (o *GetNamespaceForbidden) IsClientError() bool
IsClientError returns true when this get namespace forbidden response has a 4xx status code
func (*GetNamespaceForbidden) IsCode ¶
func (o *GetNamespaceForbidden) IsCode(code int) bool
IsCode returns true when this get namespace forbidden response a status code equal to that given
func (*GetNamespaceForbidden) IsRedirect ¶
func (o *GetNamespaceForbidden) IsRedirect() bool
IsRedirect returns true when this get namespace forbidden response has a 3xx status code
func (*GetNamespaceForbidden) IsServerError ¶
func (o *GetNamespaceForbidden) IsServerError() bool
IsServerError returns true when this get namespace forbidden response has a 5xx status code
func (*GetNamespaceForbidden) IsSuccess ¶
func (o *GetNamespaceForbidden) IsSuccess() bool
IsSuccess returns true when this get namespace forbidden response has a 2xx status code
func (*GetNamespaceForbidden) String ¶
func (o *GetNamespaceForbidden) String() string
type GetNamespaceInternalServerError ¶
type GetNamespaceInternalServerError struct {
Payload *models.ErrorResponse
}
GetNamespaceInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewGetNamespaceInternalServerError ¶
func NewGetNamespaceInternalServerError() *GetNamespaceInternalServerError
NewGetNamespaceInternalServerError creates a GetNamespaceInternalServerError with default headers values
func (*GetNamespaceInternalServerError) Code ¶
func (o *GetNamespaceInternalServerError) Code() int
Code gets the status code for the get namespace internal server error response
func (*GetNamespaceInternalServerError) Error ¶
func (o *GetNamespaceInternalServerError) Error() string
func (*GetNamespaceInternalServerError) GetPayload ¶
func (o *GetNamespaceInternalServerError) GetPayload() *models.ErrorResponse
func (*GetNamespaceInternalServerError) IsClientError ¶
func (o *GetNamespaceInternalServerError) IsClientError() bool
IsClientError returns true when this get namespace internal server error response has a 4xx status code
func (*GetNamespaceInternalServerError) IsCode ¶
func (o *GetNamespaceInternalServerError) IsCode(code int) bool
IsCode returns true when this get namespace internal server error response a status code equal to that given
func (*GetNamespaceInternalServerError) IsRedirect ¶
func (o *GetNamespaceInternalServerError) IsRedirect() bool
IsRedirect returns true when this get namespace internal server error response has a 3xx status code
func (*GetNamespaceInternalServerError) IsServerError ¶
func (o *GetNamespaceInternalServerError) IsServerError() bool
IsServerError returns true when this get namespace internal server error response has a 5xx status code
func (*GetNamespaceInternalServerError) IsSuccess ¶
func (o *GetNamespaceInternalServerError) IsSuccess() bool
IsSuccess returns true when this get namespace internal server error response has a 2xx status code
func (*GetNamespaceInternalServerError) String ¶
func (o *GetNamespaceInternalServerError) String() string
type GetNamespaceNotFound ¶
type GetNamespaceNotFound struct {
Payload *models.ErrorResponse
}
GetNamespaceNotFound describes a response with status code 404, with default header values.
Not Found - Namespace does not exist, or the namespaces feature is not enabled on this cluster.
func NewGetNamespaceNotFound ¶
func NewGetNamespaceNotFound() *GetNamespaceNotFound
NewGetNamespaceNotFound creates a GetNamespaceNotFound with default headers values
func (*GetNamespaceNotFound) Code ¶
func (o *GetNamespaceNotFound) Code() int
Code gets the status code for the get namespace not found response
func (*GetNamespaceNotFound) Error ¶
func (o *GetNamespaceNotFound) Error() string
func (*GetNamespaceNotFound) GetPayload ¶
func (o *GetNamespaceNotFound) GetPayload() *models.ErrorResponse
func (*GetNamespaceNotFound) IsClientError ¶
func (o *GetNamespaceNotFound) IsClientError() bool
IsClientError returns true when this get namespace not found response has a 4xx status code
func (*GetNamespaceNotFound) IsCode ¶
func (o *GetNamespaceNotFound) IsCode(code int) bool
IsCode returns true when this get namespace not found response a status code equal to that given
func (*GetNamespaceNotFound) IsRedirect ¶
func (o *GetNamespaceNotFound) IsRedirect() bool
IsRedirect returns true when this get namespace not found response has a 3xx status code
func (*GetNamespaceNotFound) IsServerError ¶
func (o *GetNamespaceNotFound) IsServerError() bool
IsServerError returns true when this get namespace not found response has a 5xx status code
func (*GetNamespaceNotFound) IsSuccess ¶
func (o *GetNamespaceNotFound) IsSuccess() bool
IsSuccess returns true when this get namespace not found response has a 2xx status code
func (*GetNamespaceNotFound) String ¶
func (o *GetNamespaceNotFound) String() string
type GetNamespaceOK ¶
GetNamespaceOK describes a response with status code 200, with default header values.
Successfully retrieved the namespace.
func NewGetNamespaceOK ¶
func NewGetNamespaceOK() *GetNamespaceOK
NewGetNamespaceOK creates a GetNamespaceOK with default headers values
func (*GetNamespaceOK) Code ¶
func (o *GetNamespaceOK) Code() int
Code gets the status code for the get namespace o k response
func (*GetNamespaceOK) Error ¶
func (o *GetNamespaceOK) Error() string
func (*GetNamespaceOK) GetPayload ¶
func (o *GetNamespaceOK) GetPayload() *models.Namespace
func (*GetNamespaceOK) IsClientError ¶
func (o *GetNamespaceOK) IsClientError() bool
IsClientError returns true when this get namespace o k response has a 4xx status code
func (*GetNamespaceOK) IsCode ¶
func (o *GetNamespaceOK) IsCode(code int) bool
IsCode returns true when this get namespace o k response a status code equal to that given
func (*GetNamespaceOK) IsRedirect ¶
func (o *GetNamespaceOK) IsRedirect() bool
IsRedirect returns true when this get namespace o k response has a 3xx status code
func (*GetNamespaceOK) IsServerError ¶
func (o *GetNamespaceOK) IsServerError() bool
IsServerError returns true when this get namespace o k response has a 5xx status code
func (*GetNamespaceOK) IsSuccess ¶
func (o *GetNamespaceOK) IsSuccess() bool
IsSuccess returns true when this get namespace o k response has a 2xx status code
func (*GetNamespaceOK) String ¶
func (o *GetNamespaceOK) String() string
type GetNamespaceParams ¶
type GetNamespaceParams struct {
/* NamespaceID.
The name of the namespace.
*/
NamespaceID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetNamespaceParams contains all the parameters to send to the API endpoint
for the get namespace operation. Typically these are written to a http.Request.
func NewGetNamespaceParams ¶
func NewGetNamespaceParams() *GetNamespaceParams
NewGetNamespaceParams creates a new GetNamespaceParams 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 NewGetNamespaceParamsWithContext ¶
func NewGetNamespaceParamsWithContext(ctx context.Context) *GetNamespaceParams
NewGetNamespaceParamsWithContext creates a new GetNamespaceParams object with the ability to set a context for a request.
func NewGetNamespaceParamsWithHTTPClient ¶
func NewGetNamespaceParamsWithHTTPClient(client *http.Client) *GetNamespaceParams
NewGetNamespaceParamsWithHTTPClient creates a new GetNamespaceParams object with the ability to set a custom HTTPClient for a request.
func NewGetNamespaceParamsWithTimeout ¶
func NewGetNamespaceParamsWithTimeout(timeout time.Duration) *GetNamespaceParams
NewGetNamespaceParamsWithTimeout creates a new GetNamespaceParams object with the ability to set a timeout on a request.
func (*GetNamespaceParams) SetContext ¶
func (o *GetNamespaceParams) SetContext(ctx context.Context)
SetContext adds the context to the get namespace params
func (*GetNamespaceParams) SetDefaults ¶
func (o *GetNamespaceParams) SetDefaults()
SetDefaults hydrates default values in the get namespace params (not the query body).
All values with no default are reset to their zero value.
func (*GetNamespaceParams) SetHTTPClient ¶
func (o *GetNamespaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get namespace params
func (*GetNamespaceParams) SetNamespaceID ¶
func (o *GetNamespaceParams) SetNamespaceID(namespaceID string)
SetNamespaceID adds the namespaceId to the get namespace params
func (*GetNamespaceParams) SetTimeout ¶
func (o *GetNamespaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get namespace params
func (*GetNamespaceParams) WithContext ¶
func (o *GetNamespaceParams) WithContext(ctx context.Context) *GetNamespaceParams
WithContext adds the context to the get namespace params
func (*GetNamespaceParams) WithDefaults ¶
func (o *GetNamespaceParams) WithDefaults() *GetNamespaceParams
WithDefaults hydrates default values in the get namespace params (not the query body).
All values with no default are reset to their zero value.
func (*GetNamespaceParams) WithHTTPClient ¶
func (o *GetNamespaceParams) WithHTTPClient(client *http.Client) *GetNamespaceParams
WithHTTPClient adds the HTTPClient to the get namespace params
func (*GetNamespaceParams) WithNamespaceID ¶
func (o *GetNamespaceParams) WithNamespaceID(namespaceID string) *GetNamespaceParams
WithNamespaceID adds the namespaceID to the get namespace params
func (*GetNamespaceParams) WithTimeout ¶
func (o *GetNamespaceParams) WithTimeout(timeout time.Duration) *GetNamespaceParams
WithTimeout adds the timeout to the get namespace params
func (*GetNamespaceParams) WriteToRequest ¶
func (o *GetNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNamespaceReader ¶
type GetNamespaceReader struct {
// contains filtered or unexported fields
}
GetNamespaceReader is a Reader for the GetNamespace structure.
func (*GetNamespaceReader) ReadResponse ¶
func (o *GetNamespaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNamespaceUnauthorized ¶
type GetNamespaceUnauthorized struct {
}
GetNamespaceUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewGetNamespaceUnauthorized ¶
func NewGetNamespaceUnauthorized() *GetNamespaceUnauthorized
NewGetNamespaceUnauthorized creates a GetNamespaceUnauthorized with default headers values
func (*GetNamespaceUnauthorized) Code ¶
func (o *GetNamespaceUnauthorized) Code() int
Code gets the status code for the get namespace unauthorized response
func (*GetNamespaceUnauthorized) Error ¶
func (o *GetNamespaceUnauthorized) Error() string
func (*GetNamespaceUnauthorized) IsClientError ¶
func (o *GetNamespaceUnauthorized) IsClientError() bool
IsClientError returns true when this get namespace unauthorized response has a 4xx status code
func (*GetNamespaceUnauthorized) IsCode ¶
func (o *GetNamespaceUnauthorized) IsCode(code int) bool
IsCode returns true when this get namespace unauthorized response a status code equal to that given
func (*GetNamespaceUnauthorized) IsRedirect ¶
func (o *GetNamespaceUnauthorized) IsRedirect() bool
IsRedirect returns true when this get namespace unauthorized response has a 3xx status code
func (*GetNamespaceUnauthorized) IsServerError ¶
func (o *GetNamespaceUnauthorized) IsServerError() bool
IsServerError returns true when this get namespace unauthorized response has a 5xx status code
func (*GetNamespaceUnauthorized) IsSuccess ¶
func (o *GetNamespaceUnauthorized) IsSuccess() bool
IsSuccess returns true when this get namespace unauthorized response has a 2xx status code
func (*GetNamespaceUnauthorized) String ¶
func (o *GetNamespaceUnauthorized) String() string
type GetNamespaceUnprocessableEntity ¶
type GetNamespaceUnprocessableEntity struct {
Payload *models.ErrorResponse
}
GetNamespaceUnprocessableEntity describes a response with status code 422, with default header values.
The request syntax is correct, but the server couldn't process it due to semantic issues (e.g. invalid name format or reserved name).
func NewGetNamespaceUnprocessableEntity ¶
func NewGetNamespaceUnprocessableEntity() *GetNamespaceUnprocessableEntity
NewGetNamespaceUnprocessableEntity creates a GetNamespaceUnprocessableEntity with default headers values
func (*GetNamespaceUnprocessableEntity) Code ¶
func (o *GetNamespaceUnprocessableEntity) Code() int
Code gets the status code for the get namespace unprocessable entity response
func (*GetNamespaceUnprocessableEntity) Error ¶
func (o *GetNamespaceUnprocessableEntity) Error() string
func (*GetNamespaceUnprocessableEntity) GetPayload ¶
func (o *GetNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*GetNamespaceUnprocessableEntity) IsClientError ¶
func (o *GetNamespaceUnprocessableEntity) IsClientError() bool
IsClientError returns true when this get namespace unprocessable entity response has a 4xx status code
func (*GetNamespaceUnprocessableEntity) IsCode ¶
func (o *GetNamespaceUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this get namespace unprocessable entity response a status code equal to that given
func (*GetNamespaceUnprocessableEntity) IsRedirect ¶
func (o *GetNamespaceUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this get namespace unprocessable entity response has a 3xx status code
func (*GetNamespaceUnprocessableEntity) IsServerError ¶
func (o *GetNamespaceUnprocessableEntity) IsServerError() bool
IsServerError returns true when this get namespace unprocessable entity response has a 5xx status code
func (*GetNamespaceUnprocessableEntity) IsSuccess ¶
func (o *GetNamespaceUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this get namespace unprocessable entity response has a 2xx status code
func (*GetNamespaceUnprocessableEntity) String ¶
func (o *GetNamespaceUnprocessableEntity) String() string
type ListNamespacesInternalServerError ¶
type ListNamespacesInternalServerError struct {
Payload *models.ErrorResponse
}
ListNamespacesInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewListNamespacesInternalServerError ¶
func NewListNamespacesInternalServerError() *ListNamespacesInternalServerError
NewListNamespacesInternalServerError creates a ListNamespacesInternalServerError with default headers values
func (*ListNamespacesInternalServerError) Code ¶
func (o *ListNamespacesInternalServerError) Code() int
Code gets the status code for the list namespaces internal server error response
func (*ListNamespacesInternalServerError) Error ¶
func (o *ListNamespacesInternalServerError) Error() string
func (*ListNamespacesInternalServerError) GetPayload ¶
func (o *ListNamespacesInternalServerError) GetPayload() *models.ErrorResponse
func (*ListNamespacesInternalServerError) IsClientError ¶
func (o *ListNamespacesInternalServerError) IsClientError() bool
IsClientError returns true when this list namespaces internal server error response has a 4xx status code
func (*ListNamespacesInternalServerError) IsCode ¶
func (o *ListNamespacesInternalServerError) IsCode(code int) bool
IsCode returns true when this list namespaces internal server error response a status code equal to that given
func (*ListNamespacesInternalServerError) IsRedirect ¶
func (o *ListNamespacesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list namespaces internal server error response has a 3xx status code
func (*ListNamespacesInternalServerError) IsServerError ¶
func (o *ListNamespacesInternalServerError) IsServerError() bool
IsServerError returns true when this list namespaces internal server error response has a 5xx status code
func (*ListNamespacesInternalServerError) IsSuccess ¶
func (o *ListNamespacesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list namespaces internal server error response has a 2xx status code
func (*ListNamespacesInternalServerError) String ¶
func (o *ListNamespacesInternalServerError) String() string
type ListNamespacesNotFound ¶
type ListNamespacesNotFound struct {
Payload *models.ErrorResponse
}
ListNamespacesNotFound describes a response with status code 404, with default header values.
Not Found - The namespaces feature is not enabled on this cluster.
func NewListNamespacesNotFound ¶
func NewListNamespacesNotFound() *ListNamespacesNotFound
NewListNamespacesNotFound creates a ListNamespacesNotFound with default headers values
func (*ListNamespacesNotFound) Code ¶
func (o *ListNamespacesNotFound) Code() int
Code gets the status code for the list namespaces not found response
func (*ListNamespacesNotFound) Error ¶
func (o *ListNamespacesNotFound) Error() string
func (*ListNamespacesNotFound) GetPayload ¶
func (o *ListNamespacesNotFound) GetPayload() *models.ErrorResponse
func (*ListNamespacesNotFound) IsClientError ¶
func (o *ListNamespacesNotFound) IsClientError() bool
IsClientError returns true when this list namespaces not found response has a 4xx status code
func (*ListNamespacesNotFound) IsCode ¶
func (o *ListNamespacesNotFound) IsCode(code int) bool
IsCode returns true when this list namespaces not found response a status code equal to that given
func (*ListNamespacesNotFound) IsRedirect ¶
func (o *ListNamespacesNotFound) IsRedirect() bool
IsRedirect returns true when this list namespaces not found response has a 3xx status code
func (*ListNamespacesNotFound) IsServerError ¶
func (o *ListNamespacesNotFound) IsServerError() bool
IsServerError returns true when this list namespaces not found response has a 5xx status code
func (*ListNamespacesNotFound) IsSuccess ¶
func (o *ListNamespacesNotFound) IsSuccess() bool
IsSuccess returns true when this list namespaces not found response has a 2xx status code
func (*ListNamespacesNotFound) String ¶
func (o *ListNamespacesNotFound) String() string
type ListNamespacesOK ¶
type ListNamespacesOK struct {
Payload models.NamespaceListResponse
}
ListNamespacesOK describes a response with status code 200, with default header values.
Successfully retrieved the list of namespaces (possibly empty).
func NewListNamespacesOK ¶
func NewListNamespacesOK() *ListNamespacesOK
NewListNamespacesOK creates a ListNamespacesOK with default headers values
func (*ListNamespacesOK) Code ¶
func (o *ListNamespacesOK) Code() int
Code gets the status code for the list namespaces o k response
func (*ListNamespacesOK) Error ¶
func (o *ListNamespacesOK) Error() string
func (*ListNamespacesOK) GetPayload ¶
func (o *ListNamespacesOK) GetPayload() models.NamespaceListResponse
func (*ListNamespacesOK) IsClientError ¶
func (o *ListNamespacesOK) IsClientError() bool
IsClientError returns true when this list namespaces o k response has a 4xx status code
func (*ListNamespacesOK) IsCode ¶
func (o *ListNamespacesOK) IsCode(code int) bool
IsCode returns true when this list namespaces o k response a status code equal to that given
func (*ListNamespacesOK) IsRedirect ¶
func (o *ListNamespacesOK) IsRedirect() bool
IsRedirect returns true when this list namespaces o k response has a 3xx status code
func (*ListNamespacesOK) IsServerError ¶
func (o *ListNamespacesOK) IsServerError() bool
IsServerError returns true when this list namespaces o k response has a 5xx status code
func (*ListNamespacesOK) IsSuccess ¶
func (o *ListNamespacesOK) IsSuccess() bool
IsSuccess returns true when this list namespaces o k response has a 2xx status code
func (*ListNamespacesOK) String ¶
func (o *ListNamespacesOK) String() string
type ListNamespacesParams ¶
type ListNamespacesParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListNamespacesParams contains all the parameters to send to the API endpoint
for the list namespaces operation. Typically these are written to a http.Request.
func NewListNamespacesParams ¶
func NewListNamespacesParams() *ListNamespacesParams
NewListNamespacesParams creates a new ListNamespacesParams 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 NewListNamespacesParamsWithContext ¶
func NewListNamespacesParamsWithContext(ctx context.Context) *ListNamespacesParams
NewListNamespacesParamsWithContext creates a new ListNamespacesParams object with the ability to set a context for a request.
func NewListNamespacesParamsWithHTTPClient ¶
func NewListNamespacesParamsWithHTTPClient(client *http.Client) *ListNamespacesParams
NewListNamespacesParamsWithHTTPClient creates a new ListNamespacesParams object with the ability to set a custom HTTPClient for a request.
func NewListNamespacesParamsWithTimeout ¶
func NewListNamespacesParamsWithTimeout(timeout time.Duration) *ListNamespacesParams
NewListNamespacesParamsWithTimeout creates a new ListNamespacesParams object with the ability to set a timeout on a request.
func (*ListNamespacesParams) SetContext ¶
func (o *ListNamespacesParams) SetContext(ctx context.Context)
SetContext adds the context to the list namespaces params
func (*ListNamespacesParams) SetDefaults ¶
func (o *ListNamespacesParams) SetDefaults()
SetDefaults hydrates default values in the list namespaces params (not the query body).
All values with no default are reset to their zero value.
func (*ListNamespacesParams) SetHTTPClient ¶
func (o *ListNamespacesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list namespaces params
func (*ListNamespacesParams) SetTimeout ¶
func (o *ListNamespacesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list namespaces params
func (*ListNamespacesParams) WithContext ¶
func (o *ListNamespacesParams) WithContext(ctx context.Context) *ListNamespacesParams
WithContext adds the context to the list namespaces params
func (*ListNamespacesParams) WithDefaults ¶
func (o *ListNamespacesParams) WithDefaults() *ListNamespacesParams
WithDefaults hydrates default values in the list namespaces params (not the query body).
All values with no default are reset to their zero value.
func (*ListNamespacesParams) WithHTTPClient ¶
func (o *ListNamespacesParams) WithHTTPClient(client *http.Client) *ListNamespacesParams
WithHTTPClient adds the HTTPClient to the list namespaces params
func (*ListNamespacesParams) WithTimeout ¶
func (o *ListNamespacesParams) WithTimeout(timeout time.Duration) *ListNamespacesParams
WithTimeout adds the timeout to the list namespaces params
func (*ListNamespacesParams) WriteToRequest ¶
func (o *ListNamespacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListNamespacesReader ¶
type ListNamespacesReader struct {
// contains filtered or unexported fields
}
ListNamespacesReader is a Reader for the ListNamespaces structure.
func (*ListNamespacesReader) ReadResponse ¶
func (o *ListNamespacesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListNamespacesUnauthorized ¶
type ListNamespacesUnauthorized struct {
}
ListNamespacesUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewListNamespacesUnauthorized ¶
func NewListNamespacesUnauthorized() *ListNamespacesUnauthorized
NewListNamespacesUnauthorized creates a ListNamespacesUnauthorized with default headers values
func (*ListNamespacesUnauthorized) Code ¶
func (o *ListNamespacesUnauthorized) Code() int
Code gets the status code for the list namespaces unauthorized response
func (*ListNamespacesUnauthorized) Error ¶
func (o *ListNamespacesUnauthorized) Error() string
func (*ListNamespacesUnauthorized) IsClientError ¶
func (o *ListNamespacesUnauthorized) IsClientError() bool
IsClientError returns true when this list namespaces unauthorized response has a 4xx status code
func (*ListNamespacesUnauthorized) IsCode ¶
func (o *ListNamespacesUnauthorized) IsCode(code int) bool
IsCode returns true when this list namespaces unauthorized response a status code equal to that given
func (*ListNamespacesUnauthorized) IsRedirect ¶
func (o *ListNamespacesUnauthorized) IsRedirect() bool
IsRedirect returns true when this list namespaces unauthorized response has a 3xx status code
func (*ListNamespacesUnauthorized) IsServerError ¶
func (o *ListNamespacesUnauthorized) IsServerError() bool
IsServerError returns true when this list namespaces unauthorized response has a 5xx status code
func (*ListNamespacesUnauthorized) IsSuccess ¶
func (o *ListNamespacesUnauthorized) IsSuccess() bool
IsSuccess returns true when this list namespaces unauthorized response has a 2xx status code
func (*ListNamespacesUnauthorized) String ¶
func (o *ListNamespacesUnauthorized) String() string
type ListNamespacesUnprocessableEntity ¶
type ListNamespacesUnprocessableEntity struct {
Payload *models.ErrorResponse
}
ListNamespacesUnprocessableEntity describes a response with status code 422, with default header values.
The request syntax is correct, but the server couldn't process it.
func NewListNamespacesUnprocessableEntity ¶
func NewListNamespacesUnprocessableEntity() *ListNamespacesUnprocessableEntity
NewListNamespacesUnprocessableEntity creates a ListNamespacesUnprocessableEntity with default headers values
func (*ListNamespacesUnprocessableEntity) Code ¶
func (o *ListNamespacesUnprocessableEntity) Code() int
Code gets the status code for the list namespaces unprocessable entity response
func (*ListNamespacesUnprocessableEntity) Error ¶
func (o *ListNamespacesUnprocessableEntity) Error() string
func (*ListNamespacesUnprocessableEntity) GetPayload ¶
func (o *ListNamespacesUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*ListNamespacesUnprocessableEntity) IsClientError ¶
func (o *ListNamespacesUnprocessableEntity) IsClientError() bool
IsClientError returns true when this list namespaces unprocessable entity response has a 4xx status code
func (*ListNamespacesUnprocessableEntity) IsCode ¶
func (o *ListNamespacesUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this list namespaces unprocessable entity response a status code equal to that given
func (*ListNamespacesUnprocessableEntity) IsRedirect ¶
func (o *ListNamespacesUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this list namespaces unprocessable entity response has a 3xx status code
func (*ListNamespacesUnprocessableEntity) IsServerError ¶
func (o *ListNamespacesUnprocessableEntity) IsServerError() bool
IsServerError returns true when this list namespaces unprocessable entity response has a 5xx status code
func (*ListNamespacesUnprocessableEntity) IsSuccess ¶
func (o *ListNamespacesUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this list namespaces unprocessable entity response has a 2xx status code
func (*ListNamespacesUnprocessableEntity) String ¶
func (o *ListNamespacesUnprocessableEntity) String() string
type UpdateNamespaceConflict ¶
type UpdateNamespaceConflict struct {
Payload *models.ErrorResponse
}
UpdateNamespaceConflict describes a response with status code 409, with default header values.
The namespace is being deleted; `home_node` cannot be updated while the namespace is in the `deleting` state.
func NewUpdateNamespaceConflict ¶
func NewUpdateNamespaceConflict() *UpdateNamespaceConflict
NewUpdateNamespaceConflict creates a UpdateNamespaceConflict with default headers values
func (*UpdateNamespaceConflict) Code ¶
func (o *UpdateNamespaceConflict) Code() int
Code gets the status code for the update namespace conflict response
func (*UpdateNamespaceConflict) Error ¶
func (o *UpdateNamespaceConflict) Error() string
func (*UpdateNamespaceConflict) GetPayload ¶
func (o *UpdateNamespaceConflict) GetPayload() *models.ErrorResponse
func (*UpdateNamespaceConflict) IsClientError ¶
func (o *UpdateNamespaceConflict) IsClientError() bool
IsClientError returns true when this update namespace conflict response has a 4xx status code
func (*UpdateNamespaceConflict) IsCode ¶
func (o *UpdateNamespaceConflict) IsCode(code int) bool
IsCode returns true when this update namespace conflict response a status code equal to that given
func (*UpdateNamespaceConflict) IsRedirect ¶
func (o *UpdateNamespaceConflict) IsRedirect() bool
IsRedirect returns true when this update namespace conflict response has a 3xx status code
func (*UpdateNamespaceConflict) IsServerError ¶
func (o *UpdateNamespaceConflict) IsServerError() bool
IsServerError returns true when this update namespace conflict response has a 5xx status code
func (*UpdateNamespaceConflict) IsSuccess ¶
func (o *UpdateNamespaceConflict) IsSuccess() bool
IsSuccess returns true when this update namespace conflict response has a 2xx status code
func (*UpdateNamespaceConflict) String ¶
func (o *UpdateNamespaceConflict) String() string
type UpdateNamespaceForbidden ¶
type UpdateNamespaceForbidden struct {
Payload *models.ErrorResponse
}
UpdateNamespaceForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateNamespaceForbidden ¶
func NewUpdateNamespaceForbidden() *UpdateNamespaceForbidden
NewUpdateNamespaceForbidden creates a UpdateNamespaceForbidden with default headers values
func (*UpdateNamespaceForbidden) Code ¶
func (o *UpdateNamespaceForbidden) Code() int
Code gets the status code for the update namespace forbidden response
func (*UpdateNamespaceForbidden) Error ¶
func (o *UpdateNamespaceForbidden) Error() string
func (*UpdateNamespaceForbidden) GetPayload ¶
func (o *UpdateNamespaceForbidden) GetPayload() *models.ErrorResponse
func (*UpdateNamespaceForbidden) IsClientError ¶
func (o *UpdateNamespaceForbidden) IsClientError() bool
IsClientError returns true when this update namespace forbidden response has a 4xx status code
func (*UpdateNamespaceForbidden) IsCode ¶
func (o *UpdateNamespaceForbidden) IsCode(code int) bool
IsCode returns true when this update namespace forbidden response a status code equal to that given
func (*UpdateNamespaceForbidden) IsRedirect ¶
func (o *UpdateNamespaceForbidden) IsRedirect() bool
IsRedirect returns true when this update namespace forbidden response has a 3xx status code
func (*UpdateNamespaceForbidden) IsServerError ¶
func (o *UpdateNamespaceForbidden) IsServerError() bool
IsServerError returns true when this update namespace forbidden response has a 5xx status code
func (*UpdateNamespaceForbidden) IsSuccess ¶
func (o *UpdateNamespaceForbidden) IsSuccess() bool
IsSuccess returns true when this update namespace forbidden response has a 2xx status code
func (*UpdateNamespaceForbidden) String ¶
func (o *UpdateNamespaceForbidden) String() string
type UpdateNamespaceInternalServerError ¶
type UpdateNamespaceInternalServerError struct {
Payload *models.ErrorResponse
}
UpdateNamespaceInternalServerError describes a response with status code 500, with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewUpdateNamespaceInternalServerError ¶
func NewUpdateNamespaceInternalServerError() *UpdateNamespaceInternalServerError
NewUpdateNamespaceInternalServerError creates a UpdateNamespaceInternalServerError with default headers values
func (*UpdateNamespaceInternalServerError) Code ¶
func (o *UpdateNamespaceInternalServerError) Code() int
Code gets the status code for the update namespace internal server error response
func (*UpdateNamespaceInternalServerError) Error ¶
func (o *UpdateNamespaceInternalServerError) Error() string
func (*UpdateNamespaceInternalServerError) GetPayload ¶
func (o *UpdateNamespaceInternalServerError) GetPayload() *models.ErrorResponse
func (*UpdateNamespaceInternalServerError) IsClientError ¶
func (o *UpdateNamespaceInternalServerError) IsClientError() bool
IsClientError returns true when this update namespace internal server error response has a 4xx status code
func (*UpdateNamespaceInternalServerError) IsCode ¶
func (o *UpdateNamespaceInternalServerError) IsCode(code int) bool
IsCode returns true when this update namespace internal server error response a status code equal to that given
func (*UpdateNamespaceInternalServerError) IsRedirect ¶
func (o *UpdateNamespaceInternalServerError) IsRedirect() bool
IsRedirect returns true when this update namespace internal server error response has a 3xx status code
func (*UpdateNamespaceInternalServerError) IsServerError ¶
func (o *UpdateNamespaceInternalServerError) IsServerError() bool
IsServerError returns true when this update namespace internal server error response has a 5xx status code
func (*UpdateNamespaceInternalServerError) IsSuccess ¶
func (o *UpdateNamespaceInternalServerError) IsSuccess() bool
IsSuccess returns true when this update namespace internal server error response has a 2xx status code
func (*UpdateNamespaceInternalServerError) String ¶
func (o *UpdateNamespaceInternalServerError) String() string
type UpdateNamespaceNotFound ¶
type UpdateNamespaceNotFound struct {
Payload *models.ErrorResponse
}
UpdateNamespaceNotFound describes a response with status code 404, with default header values.
Not Found - Namespace does not exist, or the namespaces feature is not enabled on this cluster.
func NewUpdateNamespaceNotFound ¶
func NewUpdateNamespaceNotFound() *UpdateNamespaceNotFound
NewUpdateNamespaceNotFound creates a UpdateNamespaceNotFound with default headers values
func (*UpdateNamespaceNotFound) Code ¶
func (o *UpdateNamespaceNotFound) Code() int
Code gets the status code for the update namespace not found response
func (*UpdateNamespaceNotFound) Error ¶
func (o *UpdateNamespaceNotFound) Error() string
func (*UpdateNamespaceNotFound) GetPayload ¶
func (o *UpdateNamespaceNotFound) GetPayload() *models.ErrorResponse
func (*UpdateNamespaceNotFound) IsClientError ¶
func (o *UpdateNamespaceNotFound) IsClientError() bool
IsClientError returns true when this update namespace not found response has a 4xx status code
func (*UpdateNamespaceNotFound) IsCode ¶
func (o *UpdateNamespaceNotFound) IsCode(code int) bool
IsCode returns true when this update namespace not found response a status code equal to that given
func (*UpdateNamespaceNotFound) IsRedirect ¶
func (o *UpdateNamespaceNotFound) IsRedirect() bool
IsRedirect returns true when this update namespace not found response has a 3xx status code
func (*UpdateNamespaceNotFound) IsServerError ¶
func (o *UpdateNamespaceNotFound) IsServerError() bool
IsServerError returns true when this update namespace not found response has a 5xx status code
func (*UpdateNamespaceNotFound) IsSuccess ¶
func (o *UpdateNamespaceNotFound) IsSuccess() bool
IsSuccess returns true when this update namespace not found response has a 2xx status code
func (*UpdateNamespaceNotFound) String ¶
func (o *UpdateNamespaceNotFound) String() string
type UpdateNamespaceOK ¶
UpdateNamespaceOK describes a response with status code 200, with default header values.
Namespace updated successfully.
func NewUpdateNamespaceOK ¶
func NewUpdateNamespaceOK() *UpdateNamespaceOK
NewUpdateNamespaceOK creates a UpdateNamespaceOK with default headers values
func (*UpdateNamespaceOK) Code ¶
func (o *UpdateNamespaceOK) Code() int
Code gets the status code for the update namespace o k response
func (*UpdateNamespaceOK) Error ¶
func (o *UpdateNamespaceOK) Error() string
func (*UpdateNamespaceOK) GetPayload ¶
func (o *UpdateNamespaceOK) GetPayload() *models.Namespace
func (*UpdateNamespaceOK) IsClientError ¶
func (o *UpdateNamespaceOK) IsClientError() bool
IsClientError returns true when this update namespace o k response has a 4xx status code
func (*UpdateNamespaceOK) IsCode ¶
func (o *UpdateNamespaceOK) IsCode(code int) bool
IsCode returns true when this update namespace o k response a status code equal to that given
func (*UpdateNamespaceOK) IsRedirect ¶
func (o *UpdateNamespaceOK) IsRedirect() bool
IsRedirect returns true when this update namespace o k response has a 3xx status code
func (*UpdateNamespaceOK) IsServerError ¶
func (o *UpdateNamespaceOK) IsServerError() bool
IsServerError returns true when this update namespace o k response has a 5xx status code
func (*UpdateNamespaceOK) IsSuccess ¶
func (o *UpdateNamespaceOK) IsSuccess() bool
IsSuccess returns true when this update namespace o k response has a 2xx status code
func (*UpdateNamespaceOK) String ¶
func (o *UpdateNamespaceOK) String() string
type UpdateNamespaceParams ¶
type UpdateNamespaceParams struct {
/* Body.
Required body. `home_node` is the new placement target.
*/
Body *models.NamespaceUpdateRequest
/* NamespaceID.
The name of the namespace.
*/
NamespaceID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateNamespaceParams contains all the parameters to send to the API endpoint
for the update namespace operation. Typically these are written to a http.Request.
func NewUpdateNamespaceParams ¶
func NewUpdateNamespaceParams() *UpdateNamespaceParams
NewUpdateNamespaceParams creates a new UpdateNamespaceParams 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 NewUpdateNamespaceParamsWithContext ¶
func NewUpdateNamespaceParamsWithContext(ctx context.Context) *UpdateNamespaceParams
NewUpdateNamespaceParamsWithContext creates a new UpdateNamespaceParams object with the ability to set a context for a request.
func NewUpdateNamespaceParamsWithHTTPClient ¶
func NewUpdateNamespaceParamsWithHTTPClient(client *http.Client) *UpdateNamespaceParams
NewUpdateNamespaceParamsWithHTTPClient creates a new UpdateNamespaceParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateNamespaceParamsWithTimeout ¶
func NewUpdateNamespaceParamsWithTimeout(timeout time.Duration) *UpdateNamespaceParams
NewUpdateNamespaceParamsWithTimeout creates a new UpdateNamespaceParams object with the ability to set a timeout on a request.
func (*UpdateNamespaceParams) SetBody ¶
func (o *UpdateNamespaceParams) SetBody(body *models.NamespaceUpdateRequest)
SetBody adds the body to the update namespace params
func (*UpdateNamespaceParams) SetContext ¶
func (o *UpdateNamespaceParams) SetContext(ctx context.Context)
SetContext adds the context to the update namespace params
func (*UpdateNamespaceParams) SetDefaults ¶
func (o *UpdateNamespaceParams) SetDefaults()
SetDefaults hydrates default values in the update namespace params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateNamespaceParams) SetHTTPClient ¶
func (o *UpdateNamespaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update namespace params
func (*UpdateNamespaceParams) SetNamespaceID ¶
func (o *UpdateNamespaceParams) SetNamespaceID(namespaceID string)
SetNamespaceID adds the namespaceId to the update namespace params
func (*UpdateNamespaceParams) SetTimeout ¶
func (o *UpdateNamespaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update namespace params
func (*UpdateNamespaceParams) WithBody ¶
func (o *UpdateNamespaceParams) WithBody(body *models.NamespaceUpdateRequest) *UpdateNamespaceParams
WithBody adds the body to the update namespace params
func (*UpdateNamespaceParams) WithContext ¶
func (o *UpdateNamespaceParams) WithContext(ctx context.Context) *UpdateNamespaceParams
WithContext adds the context to the update namespace params
func (*UpdateNamespaceParams) WithDefaults ¶
func (o *UpdateNamespaceParams) WithDefaults() *UpdateNamespaceParams
WithDefaults hydrates default values in the update namespace params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateNamespaceParams) WithHTTPClient ¶
func (o *UpdateNamespaceParams) WithHTTPClient(client *http.Client) *UpdateNamespaceParams
WithHTTPClient adds the HTTPClient to the update namespace params
func (*UpdateNamespaceParams) WithNamespaceID ¶
func (o *UpdateNamespaceParams) WithNamespaceID(namespaceID string) *UpdateNamespaceParams
WithNamespaceID adds the namespaceID to the update namespace params
func (*UpdateNamespaceParams) WithTimeout ¶
func (o *UpdateNamespaceParams) WithTimeout(timeout time.Duration) *UpdateNamespaceParams
WithTimeout adds the timeout to the update namespace params
func (*UpdateNamespaceParams) WriteToRequest ¶
func (o *UpdateNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateNamespaceReader ¶
type UpdateNamespaceReader struct {
// contains filtered or unexported fields
}
UpdateNamespaceReader is a Reader for the UpdateNamespace structure.
func (*UpdateNamespaceReader) ReadResponse ¶
func (o *UpdateNamespaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateNamespaceUnauthorized ¶
type UpdateNamespaceUnauthorized struct {
}
UpdateNamespaceUnauthorized describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewUpdateNamespaceUnauthorized ¶
func NewUpdateNamespaceUnauthorized() *UpdateNamespaceUnauthorized
NewUpdateNamespaceUnauthorized creates a UpdateNamespaceUnauthorized with default headers values
func (*UpdateNamespaceUnauthorized) Code ¶
func (o *UpdateNamespaceUnauthorized) Code() int
Code gets the status code for the update namespace unauthorized response
func (*UpdateNamespaceUnauthorized) Error ¶
func (o *UpdateNamespaceUnauthorized) Error() string
func (*UpdateNamespaceUnauthorized) IsClientError ¶
func (o *UpdateNamespaceUnauthorized) IsClientError() bool
IsClientError returns true when this update namespace unauthorized response has a 4xx status code
func (*UpdateNamespaceUnauthorized) IsCode ¶
func (o *UpdateNamespaceUnauthorized) IsCode(code int) bool
IsCode returns true when this update namespace unauthorized response a status code equal to that given
func (*UpdateNamespaceUnauthorized) IsRedirect ¶
func (o *UpdateNamespaceUnauthorized) IsRedirect() bool
IsRedirect returns true when this update namespace unauthorized response has a 3xx status code
func (*UpdateNamespaceUnauthorized) IsServerError ¶
func (o *UpdateNamespaceUnauthorized) IsServerError() bool
IsServerError returns true when this update namespace unauthorized response has a 5xx status code
func (*UpdateNamespaceUnauthorized) IsSuccess ¶
func (o *UpdateNamespaceUnauthorized) IsSuccess() bool
IsSuccess returns true when this update namespace unauthorized response has a 2xx status code
func (*UpdateNamespaceUnauthorized) String ¶
func (o *UpdateNamespaceUnauthorized) String() string
type UpdateNamespaceUnprocessableEntity ¶
type UpdateNamespaceUnprocessableEntity struct {
Payload *models.ErrorResponse
}
UpdateNamespaceUnprocessableEntity describes a response with status code 422, with default header values.
The request syntax is correct, but the server couldn't process it due to semantic issues (e.g. invalid name format, reserved name, or unknown home_node).
func NewUpdateNamespaceUnprocessableEntity ¶
func NewUpdateNamespaceUnprocessableEntity() *UpdateNamespaceUnprocessableEntity
NewUpdateNamespaceUnprocessableEntity creates a UpdateNamespaceUnprocessableEntity with default headers values
func (*UpdateNamespaceUnprocessableEntity) Code ¶
func (o *UpdateNamespaceUnprocessableEntity) Code() int
Code gets the status code for the update namespace unprocessable entity response
func (*UpdateNamespaceUnprocessableEntity) Error ¶
func (o *UpdateNamespaceUnprocessableEntity) Error() string
func (*UpdateNamespaceUnprocessableEntity) GetPayload ¶
func (o *UpdateNamespaceUnprocessableEntity) GetPayload() *models.ErrorResponse
func (*UpdateNamespaceUnprocessableEntity) IsClientError ¶
func (o *UpdateNamespaceUnprocessableEntity) IsClientError() bool
IsClientError returns true when this update namespace unprocessable entity response has a 4xx status code
func (*UpdateNamespaceUnprocessableEntity) IsCode ¶
func (o *UpdateNamespaceUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update namespace unprocessable entity response a status code equal to that given
func (*UpdateNamespaceUnprocessableEntity) IsRedirect ¶
func (o *UpdateNamespaceUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this update namespace unprocessable entity response has a 3xx status code
func (*UpdateNamespaceUnprocessableEntity) IsServerError ¶
func (o *UpdateNamespaceUnprocessableEntity) IsServerError() bool
IsServerError returns true when this update namespace unprocessable entity response has a 5xx status code
func (*UpdateNamespaceUnprocessableEntity) IsSuccess ¶
func (o *UpdateNamespaceUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update namespace unprocessable entity response has a 2xx status code
func (*UpdateNamespaceUnprocessableEntity) String ¶
func (o *UpdateNamespaceUnprocessableEntity) String() string
Source Files
¶
- create_namespace_parameters.go
- create_namespace_responses.go
- delete_namespace_parameters.go
- delete_namespace_responses.go
- get_namespace_parameters.go
- get_namespace_responses.go
- list_namespaces_parameters.go
- list_namespaces_responses.go
- namespaces_client.go
- update_namespace_parameters.go
- update_namespace_responses.go