Skip to content

Conversation

@wolfstudy
Copy link
Contributor

@wolfstudy wolfstudy commented Sep 3, 2019

Master Issue: #2

Add start cmd for Pulsar Functions

USED FOR:
    This command is used for starting a stopped function instance.

REQUIRED PERMISSION:
    This command requires super-user permissions.

EXAMPLES:
    #Starts a stopped function instance
    pulsarctl functions start
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>

    #Starts a stopped function instance with instance ID
    pulsarctl functions start
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>
	--instance-id 1

    #Starts a stopped function instance with FQFN
    pulsarctl functions start
	--fqfn tenant/namespace/name [eg: public/default/ExampleFunctions]

OUTPUT:
    #normal output
    Started successfully

    #You must specify a name for the Pulsar Functions or a FQFN, please check the --name args
    [✖]  you must specify a name for the function or a Fully Qualified Function Name (FQFN)

    #The name of Pulsar Functions doesn't exist, please check the --name args
    [✖]  code: 404 reason: Function <your function name> doesn't exist

    #Used an instanceID that does not exist or other impermissible actions
    [✖]  code: 400 reason: Operation not permitted

Usage: pulsarctl functions start [flags]

Aliases: start, start

FunctionsConfig flags:
      --fqfn string          The Fully Qualified Function Name (FQFN) for the function
      --tenant string        The tenant of a Pulsar Function
      --namespace string     The namespace of a Pulsar Function
      --name string          The name of a Pulsar Function
      --instance-id string   The function instanceId (start all instances if instance-id is not provided)

Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@wolfstudy wolfstudy requested review from sijie and zymap and removed request for zymap September 3, 2019 09:59
@wolfstudy wolfstudy self-assigned this Sep 3, 2019
@wolfstudy wolfstudy removed the request for review from sijie September 3, 2019 10:00
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@wolfstudy wolfstudy changed the title [WIP] Add start cmd for Pulsar Functions Add start cmd for Pulsar Functions Sep 4, 2019
@wolfstudy wolfstudy requested review from sijie and zymap September 4, 2019 01:39
@wolfstudy
Copy link
Contributor Author

@sijie @zymap PTAL

@sijie sijie mentioned this pull request Sep 4, 2019
29 tasks
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
Signed-off-by: xiaolong.ran <ranxiaolong716@gmail.com>
@wolfstudy
Copy link
Contributor Author

@sijie PTAL again

@sijie sijie added area/pulsar/functions type/task Indicates a chore or a small item of work labels Sep 4, 2019
@sijie sijie added this to the 0.0.1 milestone Sep 4, 2019
@sijie sijie merged commit a7334c7 into master Sep 4, 2019
@sijie sijie deleted the xiaolong/start-pulsar-functions branch September 4, 2019 06:13
tisonkun pushed a commit to tisonkun/pulsar-client-go that referenced this pull request Aug 15, 2023
Master Issue: streamnative/pulsarctl#2 

Add start cmd for Pulsar Functions

```
USED FOR:
    This command is used for starting a stopped function instance.

REQUIRED PERMISSION:
    This command requires super-user permissions.

EXAMPLES:
    #Starts a stopped function instance
    pulsarctl functions start
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>

    #Starts a stopped function instance with instance ID
    pulsarctl functions start
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>
	--instance-id 1

    #Starts a stopped function instance with FQFN
    pulsarctl functions start
	--fqfn tenant/namespace/name [eg: public/default/ExampleFunctions]

OUTPUT:
    #normal output
    Started successfully

    #You must specify a name for the Pulsar Functions or a FQFN, please check the --name args
    [✖]  you must specify a name for the function or a Fully Qualified Function Name (FQFN)

    #The name of Pulsar Functions doesn't exist, please check the --name args
    [✖]  code: 404 reason: Function <your function name> doesn't exist

    #Used an instanceID that does not exist or other impermissible actions
    [✖]  code: 400 reason: Operation not permitted

Usage: pulsarctl functions start [flags]

Aliases: start, start

FunctionsConfig flags:
      --fqfn string          The Fully Qualified Function Name (FQFN) for the function
      --tenant string        The tenant of a Pulsar Function
      --namespace string     The namespace of a Pulsar Function
      --name string          The name of a Pulsar Function
      --instance-id string   The function instanceId (start all instances if instance-id is not provided)
```
tisonkun pushed a commit to apache/pulsar-client-go that referenced this pull request Aug 16, 2023
Master Issue: streamnative/pulsarctl#2 

Add start cmd for Pulsar Functions

```
USED FOR:
    This command is used for starting a stopped function instance.

REQUIRED PERMISSION:
    This command requires super-user permissions.

EXAMPLES:
    #Starts a stopped function instance
    pulsarctl functions start
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>

    #Starts a stopped function instance with instance ID
    pulsarctl functions start
	--tenant public
	--namespace default
	--name <the name of Pulsar Function>
	--instance-id 1

    #Starts a stopped function instance with FQFN
    pulsarctl functions start
	--fqfn tenant/namespace/name [eg: public/default/ExampleFunctions]

OUTPUT:
    #normal output
    Started successfully

    #You must specify a name for the Pulsar Functions or a FQFN, please check the --name args
    [✖]  you must specify a name for the function or a Fully Qualified Function Name (FQFN)

    #The name of Pulsar Functions doesn't exist, please check the --name args
    [✖]  code: 404 reason: Function <your function name> doesn't exist

    #Used an instanceID that does not exist or other impermissible actions
    [✖]  code: 400 reason: Operation not permitted

Usage: pulsarctl functions start [flags]

Aliases: start, start

FunctionsConfig flags:
      --fqfn string          The Fully Qualified Function Name (FQFN) for the function
      --tenant string        The tenant of a Pulsar Function
      --namespace string     The namespace of a Pulsar Function
      --name string          The name of a Pulsar Function
      --instance-id string   The function instanceId (start all instances if instance-id is not provided)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/pulsar/functions type/task Indicates a chore or a small item of work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants