api

package
v0.0.0-...-7b86a0a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implements REST Server interface

func NewRESTServer

func NewRESTServer(ctx context.Context, logger *logrus.Logger, adm types.AdmissionReviewer,
	port int, certPath, keyPath string) *Server

NewRESTServer returns a new instance of the REST API

func (*Server) Start

func (s *Server) Start() error

Start registers API Routes and starts Server on the specified port

func (*Server) Stop

func (s *Server) Stop()

Stop gracefully stops the REST Server

Jump to

Keyboard shortcuts

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