hook

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateSecretCommand added in v1.0.0

func NewCreateSecretCommand(c client.API, w io.Writer) *cobra.Command

NewCreateSecretCommand creates a new `hook create-secret` command to generate a secret for verifying webhook request signatures. If a secret already exists for the workspace, it will be replaced.

func NewCreateSubscriptionCommand added in v1.0.0

func NewCreateSubscriptionCommand(c client.API, w io.Writer) *cobra.Command

NewCreateSubscriptionCommand creates a new `hook create` command to create a hook subscription.

func NewDeleteSubscriptionCommand added in v1.0.0

func NewDeleteSubscriptionCommand(c client.API, w io.Writer) *cobra.Command

NewDeleteSubscriptionCommand creates a new `hook delete` command to delete a hook subscription.

func NewEventListCommand

func NewEventListCommand(commandName string, c client.API, w io.Writer) *cobra.Command

NewListCommand creates a new command to deal with listing events

func NewEventTypeCommand

func NewEventTypeCommand(commandName string, client client.API, w io.Writer) *cobra.Command

NewEventTypeCommand creates a new `hook event-types` command to give you details about your which events you can register subscriptions for.

func NewHookCommand

func NewHookCommand(client client.API, w io.Writer) *cobra.Command

NewHookCommand creates a new `hook` command

func NewListCommand

func NewListCommand(commandName string, c client.API, w io.Writer) *cobra.Command

NewListCommand creates a new `hook list` command to give you details about your hooks.

func NewListSecretCommand

func NewListSecretCommand(commandName string, c client.API, w io.Writer) *cobra.Command

NewListSecretCommand creates a new `hook secrets` command to give you details about your secrets.

func NewUpdateSubscriptionCommand added in v1.0.0

func NewUpdateSubscriptionCommand(c client.API, w io.Writer) *cobra.Command

NewUpdateSubscriptionCommand creates a new `hook update` command to update a hook subscription.

Types

type CreateOptions added in v1.0.0

type CreateOptions struct {
	WorkspaceID string
	EventType   string
	TargetURL   string
}

CreateOptions are the options for creating a hook subscription.

type CreateSecretOptions added in v1.0.0

type CreateSecretOptions struct {
	WorkspaceID     string
	DeleteOldSecret bool
}

CreateSecretOptions are the options for the create secret command.

type EventListOptions

type EventListOptions struct {
	Args           []string
	SubscriptionID string
	Limit          int
	Offset         int
}

EventListOptions is the options for the listing events for a subscription command.

type ListOptions

type ListOptions struct {
	Args        []string
	WorkspaceID string
	Enabled     bool
	Disabled    bool
	Limit       int
	Offset      int
}

ListOptions is the options for the listing hooks command.

type ListSecretOptions

type ListSecretOptions struct {
	Args        []string
	WorkspaceID string
}

ListOptions is the options for the listing secrets command.

type UpdateOptions added in v1.0.0

type UpdateOptions struct {
	EventType string
	TargetURL string
	Enable    bool
	Disable   bool
}

UpdateOptions are the options for updating a hook subscription.

Jump to

Keyboard shortcuts

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