server

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartWebhookServer

func NewCommandStartWebhookServer(_ context.Context, groupName string, solvers ...webhook.Solver) *cobra.Command

Types

type WebhookServerOptions

type WebhookServerOptions struct {
	Logging *logs.Options

	RecommendedOptions *genericoptions.RecommendedOptions

	SolverGroup string
	Solvers     []webhook.Solver
}

func NewWebhookServerOptions

func NewWebhookServerOptions(groupName string, solvers ...webhook.Solver) *WebhookServerOptions

func (*WebhookServerOptions) Complete

func (o *WebhookServerOptions) Complete() error

func (WebhookServerOptions) Config

func (o WebhookServerOptions) Config() (*apiserver.Config, error)

Config creates a new webhook server config that includes generic upstream apiserver options, rest client config and the Solvers configured for this webhook server

func (WebhookServerOptions) RunWebhookServer

func (o WebhookServerOptions) RunWebhookServer(ctx context.Context) error

RunWebhookServer creates a new apiserver, registers an API Group for each of the configured solvers and runs the new apiserver.

func (WebhookServerOptions) Validate

func (o WebhookServerOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

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