apiserver

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLPrefix = "/api/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeTestServer

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

func (KubeTestServer) Close

func (k KubeTestServer) Close(ctx context.Context) (err error)

func (KubeTestServer) Run

func (k KubeTestServer) Run(errorCh chan<- error)

type Server

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

func (*Server) Close

func (s *Server) Close(ctx context.Context) error

Shutdown gracefully

func (*Server) Run

func (s *Server) Run(errorCh chan<- error)

@license.name Apache 2.0 @license.url http://www.apache.org/licenses/LICENSE-2.0.html

type ServerI

type ServerI interface {
	Run(errorCh chan<- error)
	Close(ctx context.Context) error
}

func NewAPIServer

func NewAPIServer(cfg *config.Config) (ServerI, error)

Jump to

Keyboard shortcuts

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