Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateNamespace(params *CreateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateNamespaceOK, error)
- func (a *Client) DeleteNamespace(params *DeleteNamespaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteNamespaceOK, error)
- func (a *Client) GetNamespaceConfig(params *GetNamespaceConfigParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetNamespaceConfigOK, error)
- func (a *Client) GetNamespaces(params *GetNamespacesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetNamespacesOK, error)
- func (a *Client) SetNamespaceConfig(params *SetNamespaceConfigParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetNamespaceConfigOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateNamespaceDefault
- type CreateNamespaceOK
- 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) SetContext(ctx context.Context)
- func (o *CreateNamespaceParams) SetDefaults()
- func (o *CreateNamespaceParams) SetHTTPClient(client *http.Client)
- func (o *CreateNamespaceParams) SetNamespace(namespace string)
- func (o *CreateNamespaceParams) SetTimeout(timeout time.Duration)
- func (o *CreateNamespaceParams) WithContext(ctx context.Context) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithDefaults() *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithHTTPClient(client *http.Client) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithNamespace(namespace string) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WithTimeout(timeout time.Duration) *CreateNamespaceParams
- func (o *CreateNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateNamespaceReader
- type DeleteNamespaceDefault
- type DeleteNamespaceOK
- 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) SetNamespace(namespace string)
- func (o *DeleteNamespaceParams) SetRecursive(recursive *bool)
- 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) WithNamespace(namespace string) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WithRecursive(recursive *bool) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WithTimeout(timeout time.Duration) *DeleteNamespaceParams
- func (o *DeleteNamespaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteNamespaceReader
- type GetNamespaceConfigOK
- type GetNamespaceConfigParams
- func NewGetNamespaceConfigParams() *GetNamespaceConfigParams
- func NewGetNamespaceConfigParamsWithContext(ctx context.Context) *GetNamespaceConfigParams
- func NewGetNamespaceConfigParamsWithHTTPClient(client *http.Client) *GetNamespaceConfigParams
- func NewGetNamespaceConfigParamsWithTimeout(timeout time.Duration) *GetNamespaceConfigParams
- func (o *GetNamespaceConfigParams) SetContext(ctx context.Context)
- func (o *GetNamespaceConfigParams) SetDefaults()
- func (o *GetNamespaceConfigParams) SetHTTPClient(client *http.Client)
- func (o *GetNamespaceConfigParams) SetNamespace(namespace string)
- func (o *GetNamespaceConfigParams) SetTimeout(timeout time.Duration)
- func (o *GetNamespaceConfigParams) WithContext(ctx context.Context) *GetNamespaceConfigParams
- func (o *GetNamespaceConfigParams) WithDefaults() *GetNamespaceConfigParams
- func (o *GetNamespaceConfigParams) WithHTTPClient(client *http.Client) *GetNamespaceConfigParams
- func (o *GetNamespaceConfigParams) WithNamespace(namespace string) *GetNamespaceConfigParams
- func (o *GetNamespaceConfigParams) WithTimeout(timeout time.Duration) *GetNamespaceConfigParams
- func (o *GetNamespaceConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNamespaceConfigReader
- type GetNamespacesOK
- type GetNamespacesParams
- func (o *GetNamespacesParams) SetContext(ctx context.Context)
- func (o *GetNamespacesParams) SetDefaults()
- func (o *GetNamespacesParams) SetHTTPClient(client *http.Client)
- func (o *GetNamespacesParams) SetTimeout(timeout time.Duration)
- func (o *GetNamespacesParams) WithContext(ctx context.Context) *GetNamespacesParams
- func (o *GetNamespacesParams) WithDefaults() *GetNamespacesParams
- func (o *GetNamespacesParams) WithHTTPClient(client *http.Client) *GetNamespacesParams
- func (o *GetNamespacesParams) WithTimeout(timeout time.Duration) *GetNamespacesParams
- func (o *GetNamespacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNamespacesReader
- type SetNamespaceConfigBody
- func (o *SetNamespaceConfigBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *SetNamespaceConfigBody) MarshalBinary() ([]byte, error)
- func (o *SetNamespaceConfigBody) UnmarshalBinary(b []byte) error
- func (o *SetNamespaceConfigBody) Validate(formats strfmt.Registry) error
- type SetNamespaceConfigOK
- type SetNamespaceConfigParams
- func NewSetNamespaceConfigParams() *SetNamespaceConfigParams
- func NewSetNamespaceConfigParamsWithContext(ctx context.Context) *SetNamespaceConfigParams
- func NewSetNamespaceConfigParamsWithHTTPClient(client *http.Client) *SetNamespaceConfigParams
- func NewSetNamespaceConfigParamsWithTimeout(timeout time.Duration) *SetNamespaceConfigParams
- func (o *SetNamespaceConfigParams) SetConfigPayload(configPayload SetNamespaceConfigBody)
- func (o *SetNamespaceConfigParams) SetContext(ctx context.Context)
- func (o *SetNamespaceConfigParams) SetDefaults()
- func (o *SetNamespaceConfigParams) SetHTTPClient(client *http.Client)
- func (o *SetNamespaceConfigParams) SetNamespace(namespace string)
- func (o *SetNamespaceConfigParams) SetTimeout(timeout time.Duration)
- func (o *SetNamespaceConfigParams) WithConfigPayload(configPayload SetNamespaceConfigBody) *SetNamespaceConfigParams
- func (o *SetNamespaceConfigParams) WithContext(ctx context.Context) *SetNamespaceConfigParams
- func (o *SetNamespaceConfigParams) WithDefaults() *SetNamespaceConfigParams
- func (o *SetNamespaceConfigParams) WithHTTPClient(client *http.Client) *SetNamespaceConfigParams
- func (o *SetNamespaceConfigParams) WithNamespace(namespace string) *SetNamespaceConfigParams
- func (o *SetNamespaceConfigParams) WithTimeout(timeout time.Duration) *SetNamespaceConfigParams
- func (o *SetNamespaceConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetNamespaceConfigReader
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) (*CreateNamespaceOK, error)
CreateNamespace creates a namespace
Creates a new namespace.
func (*Client) DeleteNamespace ¶
func (a *Client) DeleteNamespace(params *DeleteNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceOK, error)
DeleteNamespace deletes a namespace Delete a namespace.
A namespace will not delete by default if it has any child resources (workflows, etc...). Deleting the namespace with all its children can be done using the `recursive` query parameter.
func (*Client) GetNamespaceConfig ¶
func (a *Client) GetNamespaceConfig(params *GetNamespaceConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceConfigOK, error)
GetNamespaceConfig gets a namespace config
Gets a namespace config.
func (*Client) GetNamespaces ¶
func (a *Client) GetNamespaces(params *GetNamespacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespacesOK, error)
GetNamespaces gets the list of namespaces
Gets the list of namespaces.
func (*Client) SetNamespaceConfig ¶
func (a *Client) SetNamespaceConfig(params *SetNamespaceConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetNamespaceConfigOK, error)
SetNamespaceConfig sets a namespace config
Sets a namespace config.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateNamespace(params *CreateNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNamespaceOK, error) DeleteNamespace(params *DeleteNamespaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNamespaceOK, error) GetNamespaceConfig(params *GetNamespaceConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespaceConfigOK, error) GetNamespaces(params *GetNamespacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNamespacesOK, error) SetNamespaceConfig(params *SetNamespaceConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetNamespaceConfigOK, 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 CreateNamespaceDefault ¶
type CreateNamespaceDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreateNamespaceDefault describes a response with status code -1, with default header values.
an error has occurred
func NewCreateNamespaceDefault ¶
func NewCreateNamespaceDefault(code int) *CreateNamespaceDefault
NewCreateNamespaceDefault creates a CreateNamespaceDefault with default headers values
func (*CreateNamespaceDefault) Code ¶
func (o *CreateNamespaceDefault) Code() int
Code gets the status code for the create namespace default response
func (*CreateNamespaceDefault) Error ¶
func (o *CreateNamespaceDefault) Error() string
func (*CreateNamespaceDefault) GetPayload ¶
func (o *CreateNamespaceDefault) GetPayload() *models.ErrorResponse
type CreateNamespaceOK ¶
CreateNamespaceOK describes a response with status code 200, with default header values.
namespace has been successfully created
func NewCreateNamespaceOK ¶
func NewCreateNamespaceOK() *CreateNamespaceOK
NewCreateNamespaceOK creates a CreateNamespaceOK with default headers values
func (*CreateNamespaceOK) Error ¶
func (o *CreateNamespaceOK) Error() string
func (*CreateNamespaceOK) GetPayload ¶
func (o *CreateNamespaceOK) GetPayload() models.OkBody
type CreateNamespaceParams ¶
type CreateNamespaceParams struct { /* Namespace. target namespace to create */ Namespace 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) 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) SetNamespace ¶
func (o *CreateNamespaceParams) SetNamespace(namespace string)
SetNamespace adds the namespace 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) 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) WithNamespace ¶
func (o *CreateNamespaceParams) WithNamespace(namespace string) *CreateNamespaceParams
WithNamespace adds the namespace 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 DeleteNamespaceDefault ¶
type DeleteNamespaceDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
DeleteNamespaceDefault describes a response with status code -1, with default header values.
an error has occurred
func NewDeleteNamespaceDefault ¶
func NewDeleteNamespaceDefault(code int) *DeleteNamespaceDefault
NewDeleteNamespaceDefault creates a DeleteNamespaceDefault with default headers values
func (*DeleteNamespaceDefault) Code ¶
func (o *DeleteNamespaceDefault) Code() int
Code gets the status code for the delete namespace default response
func (*DeleteNamespaceDefault) Error ¶
func (o *DeleteNamespaceDefault) Error() string
func (*DeleteNamespaceDefault) GetPayload ¶
func (o *DeleteNamespaceDefault) GetPayload() *models.ErrorResponse
type DeleteNamespaceOK ¶
DeleteNamespaceOK describes a response with status code 200, with default header values.
namespace has been successfully deleted
func NewDeleteNamespaceOK ¶
func NewDeleteNamespaceOK() *DeleteNamespaceOK
NewDeleteNamespaceOK creates a DeleteNamespaceOK with default headers values
func (*DeleteNamespaceOK) Error ¶
func (o *DeleteNamespaceOK) Error() string
func (*DeleteNamespaceOK) GetPayload ¶
func (o *DeleteNamespaceOK) GetPayload() models.OkBody
type DeleteNamespaceParams ¶
type DeleteNamespaceParams struct { /* Namespace. target namespace to delete */ Namespace string /* Recursive. recursively deletes all child resources */ Recursive *bool 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) SetNamespace ¶
func (o *DeleteNamespaceParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete namespace params
func (*DeleteNamespaceParams) SetRecursive ¶
func (o *DeleteNamespaceParams) SetRecursive(recursive *bool)
SetRecursive adds the recursive 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) WithNamespace ¶
func (o *DeleteNamespaceParams) WithNamespace(namespace string) *DeleteNamespaceParams
WithNamespace adds the namespace to the delete namespace params
func (*DeleteNamespaceParams) WithRecursive ¶
func (o *DeleteNamespaceParams) WithRecursive(recursive *bool) *DeleteNamespaceParams
WithRecursive adds the recursive 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 GetNamespaceConfigOK ¶
type GetNamespaceConfigOK struct { }
GetNamespaceConfigOK describes a response with status code 200, with default header values.
successfully got namespace config
func NewGetNamespaceConfigOK ¶
func NewGetNamespaceConfigOK() *GetNamespaceConfigOK
NewGetNamespaceConfigOK creates a GetNamespaceConfigOK with default headers values
func (*GetNamespaceConfigOK) Error ¶
func (o *GetNamespaceConfigOK) Error() string
type GetNamespaceConfigParams ¶
type GetNamespaceConfigParams struct { /* Namespace. target namespace to update */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNamespaceConfigParams contains all the parameters to send to the API endpoint
for the get namespace config operation. Typically these are written to a http.Request.
func NewGetNamespaceConfigParams ¶
func NewGetNamespaceConfigParams() *GetNamespaceConfigParams
NewGetNamespaceConfigParams creates a new GetNamespaceConfigParams 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 NewGetNamespaceConfigParamsWithContext ¶
func NewGetNamespaceConfigParamsWithContext(ctx context.Context) *GetNamespaceConfigParams
NewGetNamespaceConfigParamsWithContext creates a new GetNamespaceConfigParams object with the ability to set a context for a request.
func NewGetNamespaceConfigParamsWithHTTPClient ¶
func NewGetNamespaceConfigParamsWithHTTPClient(client *http.Client) *GetNamespaceConfigParams
NewGetNamespaceConfigParamsWithHTTPClient creates a new GetNamespaceConfigParams object with the ability to set a custom HTTPClient for a request.
func NewGetNamespaceConfigParamsWithTimeout ¶
func NewGetNamespaceConfigParamsWithTimeout(timeout time.Duration) *GetNamespaceConfigParams
NewGetNamespaceConfigParamsWithTimeout creates a new GetNamespaceConfigParams object with the ability to set a timeout on a request.
func (*GetNamespaceConfigParams) SetContext ¶
func (o *GetNamespaceConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the get namespace config params
func (*GetNamespaceConfigParams) SetDefaults ¶
func (o *GetNamespaceConfigParams) SetDefaults()
SetDefaults hydrates default values in the get namespace config params (not the query body).
All values with no default are reset to their zero value.
func (*GetNamespaceConfigParams) SetHTTPClient ¶
func (o *GetNamespaceConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get namespace config params
func (*GetNamespaceConfigParams) SetNamespace ¶
func (o *GetNamespaceConfigParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get namespace config params
func (*GetNamespaceConfigParams) SetTimeout ¶
func (o *GetNamespaceConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get namespace config params
func (*GetNamespaceConfigParams) WithContext ¶
func (o *GetNamespaceConfigParams) WithContext(ctx context.Context) *GetNamespaceConfigParams
WithContext adds the context to the get namespace config params
func (*GetNamespaceConfigParams) WithDefaults ¶
func (o *GetNamespaceConfigParams) WithDefaults() *GetNamespaceConfigParams
WithDefaults hydrates default values in the get namespace config params (not the query body).
All values with no default are reset to their zero value.
func (*GetNamespaceConfigParams) WithHTTPClient ¶
func (o *GetNamespaceConfigParams) WithHTTPClient(client *http.Client) *GetNamespaceConfigParams
WithHTTPClient adds the HTTPClient to the get namespace config params
func (*GetNamespaceConfigParams) WithNamespace ¶
func (o *GetNamespaceConfigParams) WithNamespace(namespace string) *GetNamespaceConfigParams
WithNamespace adds the namespace to the get namespace config params
func (*GetNamespaceConfigParams) WithTimeout ¶
func (o *GetNamespaceConfigParams) WithTimeout(timeout time.Duration) *GetNamespaceConfigParams
WithTimeout adds the timeout to the get namespace config params
func (*GetNamespaceConfigParams) WriteToRequest ¶
func (o *GetNamespaceConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNamespaceConfigReader ¶
type GetNamespaceConfigReader struct {
// contains filtered or unexported fields
}
GetNamespaceConfigReader is a Reader for the GetNamespaceConfig structure.
func (*GetNamespaceConfigReader) ReadResponse ¶
func (o *GetNamespaceConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNamespacesOK ¶
type GetNamespacesOK struct { }
GetNamespacesOK describes a response with status code 200, with default header values.
successfully got list of namespaces
func NewGetNamespacesOK ¶
func NewGetNamespacesOK() *GetNamespacesOK
NewGetNamespacesOK creates a GetNamespacesOK with default headers values
func (*GetNamespacesOK) Error ¶
func (o *GetNamespacesOK) Error() string
type GetNamespacesParams ¶
type GetNamespacesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNamespacesParams contains all the parameters to send to the API endpoint
for the get namespaces operation. Typically these are written to a http.Request.
func NewGetNamespacesParams ¶
func NewGetNamespacesParams() *GetNamespacesParams
NewGetNamespacesParams creates a new GetNamespacesParams 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 NewGetNamespacesParamsWithContext ¶
func NewGetNamespacesParamsWithContext(ctx context.Context) *GetNamespacesParams
NewGetNamespacesParamsWithContext creates a new GetNamespacesParams object with the ability to set a context for a request.
func NewGetNamespacesParamsWithHTTPClient ¶
func NewGetNamespacesParamsWithHTTPClient(client *http.Client) *GetNamespacesParams
NewGetNamespacesParamsWithHTTPClient creates a new GetNamespacesParams object with the ability to set a custom HTTPClient for a request.
func NewGetNamespacesParamsWithTimeout ¶
func NewGetNamespacesParamsWithTimeout(timeout time.Duration) *GetNamespacesParams
NewGetNamespacesParamsWithTimeout creates a new GetNamespacesParams object with the ability to set a timeout on a request.
func (*GetNamespacesParams) SetContext ¶
func (o *GetNamespacesParams) SetContext(ctx context.Context)
SetContext adds the context to the get namespaces params
func (*GetNamespacesParams) SetDefaults ¶
func (o *GetNamespacesParams) SetDefaults()
SetDefaults hydrates default values in the get namespaces params (not the query body).
All values with no default are reset to their zero value.
func (*GetNamespacesParams) SetHTTPClient ¶
func (o *GetNamespacesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get namespaces params
func (*GetNamespacesParams) SetTimeout ¶
func (o *GetNamespacesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get namespaces params
func (*GetNamespacesParams) WithContext ¶
func (o *GetNamespacesParams) WithContext(ctx context.Context) *GetNamespacesParams
WithContext adds the context to the get namespaces params
func (*GetNamespacesParams) WithDefaults ¶
func (o *GetNamespacesParams) WithDefaults() *GetNamespacesParams
WithDefaults hydrates default values in the get namespaces params (not the query body).
All values with no default are reset to their zero value.
func (*GetNamespacesParams) WithHTTPClient ¶
func (o *GetNamespacesParams) WithHTTPClient(client *http.Client) *GetNamespacesParams
WithHTTPClient adds the HTTPClient to the get namespaces params
func (*GetNamespacesParams) WithTimeout ¶
func (o *GetNamespacesParams) WithTimeout(timeout time.Duration) *GetNamespacesParams
WithTimeout adds the timeout to the get namespaces params
func (*GetNamespacesParams) WriteToRequest ¶
func (o *GetNamespacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNamespacesReader ¶
type GetNamespacesReader struct {
// contains filtered or unexported fields
}
GetNamespacesReader is a Reader for the GetNamespaces structure.
func (*GetNamespacesReader) ReadResponse ¶
func (o *GetNamespacesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetNamespaceConfigBody ¶
type SetNamespaceConfigBody struct {
// Configuration on which direktiv operations will trigger coud events on the namespace
Broadcast interface{} `json:"broadcast,omitempty"`
}
SetNamespaceConfigBody set namespace config body // Example: {"broadcast":{"directory.create":false,"directory.delete":false,"instance.failed":false,"instance.started":false,"instance.success":false,"instance.variable.create":false,"instance.variable.delete":false,"instance.variable.update":false,"namespace.variable.create":false,"namespace.variable.delete":false,"namespace.variable.update":false,"workflow.create":false,"workflow.delete":false,"workflow.update":false,"workflow.variable.create":false,"workflow.variable.delete":false,"workflow.variable.update":false}} swagger:model SetNamespaceConfigBody
func (*SetNamespaceConfigBody) ContextValidate ¶
func (o *SetNamespaceConfigBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this set namespace config body based on context it is used
func (*SetNamespaceConfigBody) MarshalBinary ¶
func (o *SetNamespaceConfigBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SetNamespaceConfigBody) UnmarshalBinary ¶
func (o *SetNamespaceConfigBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SetNamespaceConfigOK ¶
type SetNamespaceConfigOK struct { }
SetNamespaceConfigOK describes a response with status code 200, with default header values.
namespace config has been successfully been updated
func NewSetNamespaceConfigOK ¶
func NewSetNamespaceConfigOK() *SetNamespaceConfigOK
NewSetNamespaceConfigOK creates a SetNamespaceConfigOK with default headers values
func (*SetNamespaceConfigOK) Error ¶
func (o *SetNamespaceConfigOK) Error() string
type SetNamespaceConfigParams ¶
type SetNamespaceConfigParams struct { /* ConfigPayload. Payload that contains the config information to set. Note: This payload only need to contain the properities you wish to set. */ ConfigPayload SetNamespaceConfigBody /* Namespace. target namespace to update */ Namespace string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetNamespaceConfigParams contains all the parameters to send to the API endpoint
for the set namespace config operation. Typically these are written to a http.Request.
func NewSetNamespaceConfigParams ¶
func NewSetNamespaceConfigParams() *SetNamespaceConfigParams
NewSetNamespaceConfigParams creates a new SetNamespaceConfigParams 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 NewSetNamespaceConfigParamsWithContext ¶
func NewSetNamespaceConfigParamsWithContext(ctx context.Context) *SetNamespaceConfigParams
NewSetNamespaceConfigParamsWithContext creates a new SetNamespaceConfigParams object with the ability to set a context for a request.
func NewSetNamespaceConfigParamsWithHTTPClient ¶
func NewSetNamespaceConfigParamsWithHTTPClient(client *http.Client) *SetNamespaceConfigParams
NewSetNamespaceConfigParamsWithHTTPClient creates a new SetNamespaceConfigParams object with the ability to set a custom HTTPClient for a request.
func NewSetNamespaceConfigParamsWithTimeout ¶
func NewSetNamespaceConfigParamsWithTimeout(timeout time.Duration) *SetNamespaceConfigParams
NewSetNamespaceConfigParamsWithTimeout creates a new SetNamespaceConfigParams object with the ability to set a timeout on a request.
func (*SetNamespaceConfigParams) SetConfigPayload ¶
func (o *SetNamespaceConfigParams) SetConfigPayload(configPayload SetNamespaceConfigBody)
SetConfigPayload adds the configPayload to the set namespace config params
func (*SetNamespaceConfigParams) SetContext ¶
func (o *SetNamespaceConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the set namespace config params
func (*SetNamespaceConfigParams) SetDefaults ¶
func (o *SetNamespaceConfigParams) SetDefaults()
SetDefaults hydrates default values in the set namespace config params (not the query body).
All values with no default are reset to their zero value.
func (*SetNamespaceConfigParams) SetHTTPClient ¶
func (o *SetNamespaceConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set namespace config params
func (*SetNamespaceConfigParams) SetNamespace ¶
func (o *SetNamespaceConfigParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the set namespace config params
func (*SetNamespaceConfigParams) SetTimeout ¶
func (o *SetNamespaceConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set namespace config params
func (*SetNamespaceConfigParams) WithConfigPayload ¶
func (o *SetNamespaceConfigParams) WithConfigPayload(configPayload SetNamespaceConfigBody) *SetNamespaceConfigParams
WithConfigPayload adds the configPayload to the set namespace config params
func (*SetNamespaceConfigParams) WithContext ¶
func (o *SetNamespaceConfigParams) WithContext(ctx context.Context) *SetNamespaceConfigParams
WithContext adds the context to the set namespace config params
func (*SetNamespaceConfigParams) WithDefaults ¶
func (o *SetNamespaceConfigParams) WithDefaults() *SetNamespaceConfigParams
WithDefaults hydrates default values in the set namespace config params (not the query body).
All values with no default are reset to their zero value.
func (*SetNamespaceConfigParams) WithHTTPClient ¶
func (o *SetNamespaceConfigParams) WithHTTPClient(client *http.Client) *SetNamespaceConfigParams
WithHTTPClient adds the HTTPClient to the set namespace config params
func (*SetNamespaceConfigParams) WithNamespace ¶
func (o *SetNamespaceConfigParams) WithNamespace(namespace string) *SetNamespaceConfigParams
WithNamespace adds the namespace to the set namespace config params
func (*SetNamespaceConfigParams) WithTimeout ¶
func (o *SetNamespaceConfigParams) WithTimeout(timeout time.Duration) *SetNamespaceConfigParams
WithTimeout adds the timeout to the set namespace config params
func (*SetNamespaceConfigParams) WriteToRequest ¶
func (o *SetNamespaceConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetNamespaceConfigReader ¶
type SetNamespaceConfigReader struct {
// contains filtered or unexported fields
}
SetNamespaceConfigReader is a Reader for the SetNamespaceConfig structure.
func (*SetNamespaceConfigReader) ReadResponse ¶
func (o *SetNamespaceConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_namespace_parameters.go
- create_namespace_responses.go
- delete_namespace_parameters.go
- delete_namespace_responses.go
- get_namespace_config_parameters.go
- get_namespace_config_responses.go
- get_namespaces_parameters.go
- get_namespaces_responses.go
- namespaces_client.go
- set_namespace_config_parameters.go
- set_namespace_config_responses.go