hook

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventListCommand added in v0.0.17

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

NewListCommand creates a new command to deal with listing events

func NewEventTypeCommand added in v0.0.11

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, client client.API, w io.Writer) *cobra.Command

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

func NewListSecretCommand added in v0.0.13

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

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

func RenderEventTypes added in v0.0.11

func RenderEventTypes(client client.API, w io.Writer) error

RenderEventTypes will show all of the event types that can be registered.

func RenderHooks

func RenderHooks(client client.API, opts ListOptions, w io.Writer) error

RenderHooks will show the users subscriptions.

Types

type EventListOptions added in v0.0.17

type EventListOptions struct {
	Args           []string
	SubscriptionID string
}

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

type ListOptions

type ListOptions struct {
	Args     []string
	Enabled  bool
	Disabled bool
}

ListOptions is the options for the listing hooks command.

type ListSecretOptions added in v0.0.13

type ListSecretOptions struct {
	Args        []string
	WorkspaceID string
}

ListOptions is the options for the listing secrets command.

Jump to

Keyboard shortcuts

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