webhook

package
v0.269.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

func DeleteCmd

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

func ShowCmd

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

func TestCmd

func TestCmd(ch *cmdutil.Helper) *cobra.Command

func UpdateCmd

func UpdateCmd(ch *cmdutil.Helper) *cobra.Command

func WebhookCmd

func WebhookCmd(ch *cmdutil.Helper) *cobra.Command

WebhookCmd encapsulates the command for managing webhooks.

Types

type Webhook

type Webhook struct {
	ID        string `header:"id" json:"id"`
	URL       string `header:"url" json:"url"`
	Events    string `header:"events" json:"events"`
	Enabled   bool   `header:"enabled" json:"enabled"`
	CreatedAt int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

Webhook returns a table and json serializable webhook for printing.

func (*Webhook) MarshalJSON

func (w *Webhook) MarshalJSON() ([]byte, error)

type WebhookWithSecret

type WebhookWithSecret struct {
	ID        string `header:"id" json:"id"`
	URL       string `header:"url" json:"url"`
	Secret    string `header:"secret" json:"secret"`
	Events    string `header:"events" json:"events"`
	Enabled   bool   `header:"enabled" json:"enabled"`
	CreatedAt int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

WebhookWithSecret includes the webhook secret for display.

func (*WebhookWithSecret) MarshalJSON

func (w *WebhookWithSecret) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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