workflowWebhookListener

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWebhook

func RegisterWebhook(c client.Client, ctx context.Context, namespace string, name string)

func UnregisterWebhook

func UnregisterWebhook(namespace string, name string)

Types

type Config

type Config struct {
	Addr   string
	Client client.Client
}

type Webhook

type Webhook struct {
	// contains filtered or unexported fields
}

func New

func New(config *Config) (*Webhook, error)

func (*Webhook) Addr added in v0.0.6

func (wc *Webhook) Addr() string

func (*Webhook) Start

func (wc *Webhook) Start(ctx context.Context, cancel context.CancelCauseFunc) error

Starts WorkflowWebhookListener and blocks until the context is cancelled. Returns an error if there is an error.

Jump to

Keyboard shortcuts

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