apiserver

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 19 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

func New

func New(cfg *rest.Config, opts Options) (*APIServer, error)

func (*APIServer) Exited

func (a *APIServer) Exited() (bool, error)

func (*APIServer) Start

func (a *APIServer) Start() error

func (*APIServer) Stop

func (a *APIServer) Stop() error

type Options

type Options struct {
	MainPath     string
	BuildOptions []buildutils.BuildOption
	Command      []string
	Args         ProcessArgs
	MergeArgs    func(customArgs, defaultArgs ProcessArgs) ProcessArgs

	ETCDServers []string
	Host        string
	Port        int
	CertDir     string

	AttachOutput bool
	Stdout       io.Writer
	Stderr       io.Writer

	HealthTimeout time.Duration
	WaitTimeout   time.Duration
}

type ProcessArgs

type ProcessArgs map[string][]string

func EmptyProcessArgs

func EmptyProcessArgs() ProcessArgs

func MergeArgs

func MergeArgs(customArgs, defaultArgs ProcessArgs) ProcessArgs

func (ProcessArgs) Set

func (p ProcessArgs) Set(key string, values ...string) ProcessArgs

Jump to

Keyboard shortcuts

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