external

package
v1.8.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GithubSecretDataKey = "secret"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Serve(ctx context.Context, l net.Listener) error
}

func NewServer

func NewServer(cfg ServerConfig, cl client.Client) Server

type ServerConfig

type ServerConfig struct {
	StandardConfig
	TLSConfig               *TLSConfig
	BaseURL                 string
	ClusterSecretsNamespace string
}

func ServerConfigFromEnv

func ServerConfigFromEnv() ServerConfig

type StandardConfig

type StandardConfig struct {
	GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT" default:"30s"`
}

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.

Jump to

Keyboard shortcuts

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