apiserver

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

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