subscription

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArgError = cmdutils.Output{
	Desc: "the topic name is not specified or the topic name is specified more than one",
	Out:  "[✖]  the topic name is not specified or the topic name is specified more than one",
}
View Source
var ArgsError = cmdutils.Output{
	Desc: "the topic name and(or) the subscription name is not specified",
	Out:  "[✖]  need to specified the topic name and the subscription name",
}
View Source
var MessageIDErrors = []cmdutils.Output{
	{
		Desc: "the split of message id is not valid",
		Out:  "[✖]  Invalid message id string. <message-id>",
	},
	{
		Desc: "the ledger id is not valid",
		Out:  "[✖]  Invalid ledger id string. <message-id>",
	},
	{
		Desc: "the entry id is not valid",
		Out:  "[✖]  Invalid entry id string. <message-id>",
	},
}
View Source
var NamespaceErrors = []cmdutils.Output{
	{
		Desc: "the namespace name is not in the format of <tenant>/<namespace>",
		Out:  "[✖]  The complete name of namespace is invalid. complete name : <namespace-complete-name>",
	},
	{
		Desc: "the tenant name and(or) namespace name is empty",
		Out:  "[✖]  Invalid tenant or namespace. [<tenant>/<namespace>]",
	},
	{
		Desc: "the tenant name contains unsupported special chars" +
			"the alphanumeric (a-zA-Z0-9) and the special chars (-=:.%)  is allowed",
		Out: "[✖]  Tenant name include unsupported special chars. tenant : [<namespace>]",
	},
	{
		Desc: "the namespace name contains unsupported special chars" +
			"the  alphanumeric (a-zA-Z0-9) and the special chars (-=:.%) is allowed",
		Out: "[✖]  Namespace name include unsupported special chars. namespace : [<namespace>]",
	},
}
View Source
var SubNotFoundError = cmdutils.Output{
	Desc: "the specified subscription does not exist",
	Out:  "[✖]  code: 404 reason: Subscription not found",
}
View Source
var TopicNameErrors = []cmdutils.Output{
	{
		Desc: "the topic name is not in the format of <tenant>/<namespace>/<topic> or <topic>",
		Out: "[✖]  Invalid short topic name '<topic-name>', it should be " +
			"in the format of <tenant>/<namespace>/<topic> or <topic>",
	},
	{
		Desc: "the topic name is not in the format of <domain>://<tenant>/<namespace>/<topic>",
		Out: "[✖]  Invalid complete topic name '<topic-name>', it should be in " +
			"the format of <domain>://<tenant>/<namespace>/<topic>",
	},
	{
		Desc: "the topic name is not in the format of <tenant>/<namespace>/<topic>",
		Out: "[✖]  Invalid topic name '<topic-name>', it should be in the format of" +
			"<tenant>/<namespace>/<topic>",
	},
}
View Source
var TopicNotFoundError = cmdutils.Output{
	Desc: "the specified topic does not exist",
	Out:  "[✖]  code: 404 reason: Topic not found",
}

Functions

func CheckSubscriptionNameTwoArgs

func CheckSubscriptionNameTwoArgs(args []string) error

func Command

func Command(flagGrouping *cmdutils.FlagGrouping) *cobra.Command

func CreateCmd

func CreateCmd(vc *cmdutils.VerbCmd)

func DeleteCmd

func DeleteCmd(vc *cmdutils.VerbCmd)

func ExpireCmd

func ExpireCmd(vc *cmdutils.VerbCmd)

func ListCmd

func ListCmd(vc *cmdutils.VerbCmd)

func PeekCmd

func PeekCmd(vc *cmdutils.VerbCmd)

func ResetCursorCmd

func ResetCursorCmd(vc *cmdutils.VerbCmd)

func SkipCmd

func SkipCmd(vc *cmdutils.VerbCmd)

func TestSubCommands

func TestSubCommands(newVerb func(cmd *cmdutils.VerbCmd), args []string) (out *bytes.Buffer,
	execErr, nameErr, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL