webhook

package
v0.3.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookDeployer

type WebhookDeployer struct {
	// contains filtered or unexported fields
}

func New

func NewWithLogger

func NewWithLogger(config *WebhookDeployerConfig, logger deployer.Logger) (*WebhookDeployer, error)

func (*WebhookDeployer) Deploy

func (d *WebhookDeployer) Deploy(ctx context.Context, certPem string, privkeyPem string) (*deployer.DeployResult, error)

type WebhookDeployerConfig

type WebhookDeployerConfig struct {
	// Webhook URL。
	Url string `json:"url"`
	// Webhook 变量字典。
	Variables map[string]string `json:"variables,omitempty"`
}

Jump to

Keyboard shortcuts

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