Documentation
¶
Index ¶
Constants ¶
View Source
const (
GithubSecretDataKey = "secret"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerConfig ¶
type ServerConfig struct {
StandardConfig
TLSConfig *TLSConfig
BaseURL string
ClusterSecretsNamespace string
}
func ServerConfigFromEnv ¶
func ServerConfigFromEnv() ServerConfig
type StandardConfig ¶
type TLSConfig ¶
type TLSConfig struct {
CertPath string `envconfig:"TLS_CERT_PATH" required:"true"`
KeyPath string `envconfig:"TLS_KEY_PATH" required:"true"`
}
func TLSConfigFromEnv ¶
func TLSConfigFromEnv() TLSConfig
type WebhookReceiver ¶
type WebhookReceiver interface {
// GetDetails returns the details of the WebhookReceiver in the form of
// kargoapi.WebhookReceiverDetails.
GetDetails() kargoapi.WebhookReceiverDetails
// contains filtered or unexported methods
}
WebhookReceiver is an interface for components that handle inbound webhooks.
func NewReceiver ¶
func NewReceiver( ctx context.Context, c client.Client, baseURL string, project string, secretsNamespace string, cfg kargoapi.WebhookReceiverConfig, ) (WebhookReceiver, error)
NewReceiver returns an appropriate implementation of WebhookReceiver based on the provided kargoapi.WebhookReceiverConfig.
Click to show internal directories.
Click to hide internal directories.