Documentation
¶
Index ¶
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowCmd(ch *cmdutil.Helper) *cobra.Command
- func TestCmd(ch *cmdutil.Helper) *cobra.Command
- func UpdateCmd(ch *cmdutil.Helper) *cobra.Command
- func WebhookCmd(ch *cmdutil.Helper) *cobra.Command
- type Webhook
- type WebhookWithSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.