Documentation
¶
Index ¶
- func NewCreateSecretCommand(c client.API, w io.Writer) *cobra.Command
- func NewCreateSubscriptionCommand(c client.API, w io.Writer) *cobra.Command
- func NewDeleteSubscriptionCommand(c client.API, w io.Writer) *cobra.Command
- func NewEventListCommand(commandName string, c client.API, w io.Writer) *cobra.Command
- func NewEventTypeCommand(commandName string, client client.API, w io.Writer) *cobra.Command
- func NewHookCommand(client client.API, w io.Writer) *cobra.Command
- func NewListCommand(commandName string, c client.API, w io.Writer) *cobra.Command
- func NewListSecretCommand(commandName string, c client.API, w io.Writer) *cobra.Command
- func NewUpdateSubscriptionCommand(c client.API, w io.Writer) *cobra.Command
- type CreateOptions
- type CreateSecretOptions
- type EventListOptions
- type ListOptions
- type ListSecretOptions
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateSecretCommand ¶ added in v1.0.0
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
NewCreateSubscriptionCommand creates a new `hook create` command to create a hook subscription.
func NewDeleteSubscriptionCommand ¶ added in v1.0.0
NewDeleteSubscriptionCommand creates a new `hook delete` command to delete a hook subscription.
func NewEventListCommand ¶
NewListCommand creates a new command to deal with listing events
func NewEventTypeCommand ¶
NewEventTypeCommand creates a new `hook event-types` command to give you details about your which events you can register subscriptions for.
func NewHookCommand ¶
NewHookCommand creates a new `hook` command
func NewListCommand ¶
NewListCommand creates a new `hook list` command to give you details about your hooks.
func NewListSecretCommand ¶
NewListSecretCommand creates a new `hook secrets` command to give you details about your secrets.
Types ¶
type CreateOptions ¶ added in v1.0.0
CreateOptions are the options for creating a hook subscription.
type CreateSecretOptions ¶ added in v1.0.0
CreateSecretOptions are the options for the create secret command.
type EventListOptions ¶
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 ¶
ListOptions is the options for the listing secrets command.