server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package server wires the marketplace virtual workspace binary together: the directory, the producer that fills it, and a virtual-workspace root apiserver serving the catalog read-only at /services/marketplace behind kcp's front-proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, o *Options) error

Run starts the directory producer and serves the marketplace virtual workspace until ctx is cancelled.

Types

type Options

type Options struct {
	// SecureServing configures TLS serving.
	SecureServing *genericoptions.SecureServingOptions

	// Authentication identifies callers the same way the other virtual
	// workspaces do — JWT, forwarded request-header identity, client
	// certificates.
	Authentication *accessserver.Authentication

	// Authorization is the virtual-workspace-framework authorizer setup.
	Authorization *vwoptions.Authorization

	// Kubeconfig is the path to the kubeconfig for the target kcp.
	Kubeconfig string

	// CatalogSlice and PublishSlice feed the directory.
	CatalogSlice string
	PublishSlice string

	// WorkspacePath retargets the kubeconfig to the workspace holding the
	// endpoint slices. Empty means use the kubeconfig as-is.
	WorkspacePath string
}

Options configures the marketplace virtual workspace server.

func NewOptions

func NewOptions() *Options

NewOptions returns options with defaults suitable for running behind kcp's front-proxy.

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags registers all flags on the given flag set.

func (*Options) Complete

func (o *Options) Complete() error

Complete fills in derived defaults.

func (*Options) Validate

func (o *Options) Validate() error

Validate checks flag consistency, reporting every problem it finds.

Jump to

Keyboard shortcuts

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