server

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraOptions

type ExtraOptions struct {
	QPS          float64
	Burst        int
	ResyncPeriod time.Duration

	LicenseFile string
	CacheDir    string

	NATSAddr     string
	NATSCredFile string

	FileServerPathPrefix string
	FileServerFilesDir   string

	ScannerImage       string
	TrivyImage         string
	TrivyDBCacherImage string
	FileServerAddr     string
	ScanInCluster      bool
	Workspace          string

	ScanRequestTTLPeriod time.Duration
	ScanReportTTLPeriod  time.Duration
}

func NewExtraOptions

func NewExtraOptions() *ExtraOptions

func (*ExtraOptions) AddFlags

func (s *ExtraOptions) AddFlags(fs *pflag.FlagSet)

func (*ExtraOptions) ApplyTo

func (s *ExtraOptions) ApplyTo(cfg *apiserver.ExtraConfig) error

func (*ExtraOptions) Validate

func (s *ExtraOptions) Validate() []error

type ScannerServerOptions added in v0.0.2

type ScannerServerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	ExtraOptions       *ExtraOptions

	StdOut io.Writer
	StdErr io.Writer
}

ScannerServerOptions contains state for master/api server

func NewScannerServerOptions added in v0.0.11

func NewScannerServerOptions(out, errOut io.Writer) *ScannerServerOptions

NewScannerServerOptions returns a new ScannerServerOptions

func (ScannerServerOptions) AddFlags added in v0.0.2

func (o ScannerServerOptions) AddFlags(fs *pflag.FlagSet)

func (*ScannerServerOptions) Complete added in v0.0.2

func (o *ScannerServerOptions) Complete() error

Complete fills in fields required to have valid data

func (*ScannerServerOptions) Config added in v0.0.2

func (o *ScannerServerOptions) Config() (*apiserver.Config, error)

Config returns config for the api server given ScannerServerOptions

func (ScannerServerOptions) Run added in v0.0.2

Run starts a new ScannerServer given ScannerServerOptions

func (ScannerServerOptions) Validate added in v0.0.2

func (o ScannerServerOptions) Validate(args []string) error

Validate validates ScannerServerOptions

Jump to

Keyboard shortcuts

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