path

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(t *v1.Trigger) string

Generate generates the Path portion of a URI to send events to the given Trigger.

func GenerateDLS added in v0.40.0

func GenerateDLS(t *v1.Trigger) string

func GenerateReply added in v0.40.0

func GenerateReply(t *v1.Trigger) string

Types

type NamespacedNameUID

type NamespacedNameUID struct {
	types.NamespacedName
	UID     types.UID
	IsReply bool
	IsDLS   bool
}

func Parse

func Parse(path string) (NamespacedNameUID, error)

Parse parses the Path portion of a URI to determine which Trigger the request corresponds to. It is expected to be in the form "/triggers/namespace/name/uid" and eventually a "/reply" or "/dls" suffix.

Jump to

Keyboard shortcuts

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