Interface IEventingFunctionManager
The manager allows the user to read functions, modify them and change their deployment state.
Namespace: Couchbase.Management.Eventing
Assembly: Couchbase.NetClient.dll
Syntax
[InterfaceStability(Level.Uncommitted)]
public interface IEventingFunctionManager
Methods
| Edit this page View SourceDeployFunctionAsync(string, DeployFunctionOptions?)
Deploys a function (from state undeployed to deployed).
Declaration
Task DeployFunctionAsync(string name, DeployFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The function name. |
Deploy |
options | Any optional parameters. |
Returns
| Edit this page View SourceDropFunctionAsync(string, DropFunctionOptions?)
Drops a function.
Declaration
Task DropFunctionAsync(string name, DropFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The function name. |
Drop |
options | Any optional parameters. |
Returns
| Edit this page View SourceFunctionsStatus(FunctionsStatusOptions?)
Receives the status of all the eventing functions.
Declaration
Task<EventingStatus> FunctionsStatus(FunctionsStatusOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
Functions |
options | Any optional parameters. |
Returns
Type | Description |
---|---|
Task<Eventing |
GetAllFunctionsAsync(GetAllFunctionOptions?)
Lists all functions (both deployed and undeployed).
Declaration
Task<IEnumerable<EventingFunction>> GetAllFunctionsAsync(GetAllFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
Get |
options | Any optional parameters. |
Returns
Type | Description |
---|---|
Task<IEnumerable<Eventing |
An IEnumerable<T> for enumeration of the results. |
GetFunctionAsync(string, GetFunctionOptions?)
Fetches a specific function.
Declaration
Task<EventingFunction?> GetFunctionAsync(string name, GetFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The function name. |
Get |
options | Any optional parameters. |
Returns
Type | Description |
---|---|
Task<Eventing |
PauseFunctionAsync(string, PauseFunctionOptions?)
Pauses a function.
Declaration
Task PauseFunctionAsync(string name, PauseFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The function name. |
Pause |
options | Any optional parameters. |
Returns
| Edit this page View SourceResumeFunctionAsync(string, ResumeFunctionOptions?)
Resumes a function if it is paused.
Declaration
Task ResumeFunctionAsync(string name, ResumeFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The function name. |
Resume |
options | Any optional parameters. |
Returns
| Edit this page View SourceUndeployFunctionAsync(string, UndeployFunctionOptions?)
Undeploys a function (from state deployed to undeployed).
Declaration
Task UndeployFunctionAsync(string name, UndeployFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | The function name. |
Undeploy |
options | Any optional parameters. |
Returns
| Edit this page View SourceUpsertFunctionAsync(EventingFunction, UpsertFunctionOptions?)
Declaration
Task UpsertFunctionAsync(EventingFunction function, UpsertFunctionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
Eventing |
function | |
Upsert |
options |
Returns
Type | Description |
---|---|
Task |