app

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Types

type Options

type Options struct {
	ServerConfig            options.ServerConfig `json:"serverConfig"`
	EnforcePRGB             bool                 `json:"enforcePRGB"`
	CompliantDockerPrefixes []string             `json:"compliantDockerPrefixes"`
}

func (*Options) DefaultAndValidate

func (o *Options) DefaultAndValidate() []error

type Server

type Server struct {
	Name       string
	Informers  []cache.SharedIndexInformer
	HTTPServer *util.HTTPServer
}

Server is wrapper all computionadmission servers

func NewServerFromFlags

func NewServerFromFlags(name string, fs *flag.FlagSet, arguments []string) (*Server, error)

NewServerFromFlags builds a new Server object based on Flags

func (*Server) Run

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

Run launches all the informers and then starts HTTPServer

Jump to

Keyboard shortcuts

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