scannertester

package
v0.0.0-...-5d42de7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuxiliaryConfig

type AuxiliaryConfig struct {
	Namespace string

	IsOpenshift bool
}

func ReadAuxiliaryConfig

func ReadAuxiliaryConfig(auxConfigPath string) *AuxiliaryConfig

type Config

type Config struct {
	MasterURL      string
	KubeConfigPath string

	HubHost         string
	HubUser         string
	HubUserPassword string
	HubPort         int32

	ScannerMemory          string
	JavaInitialHeapSizeMBs int
	JavaMaxHeapSizeMBs     int

	PerceptorHost   string
	PerceptorPort   int32
	ImageFacadePort int32
	ScannerPort     int32

	// Secret config
	HubPasswordSecretName string
	HubPasswordSecretKey  string

	LogLevel string

	AuxConfig *AuxiliaryConfig
}

func ReadConfig

func ReadConfig(configPath string) *Config

func (*Config) MockImagefacadeConfig

func (config *Config) MockImagefacadeConfig() model.MockImagefacadeConfigMap

func (*Config) PerceptorConfig

func (config *Config) PerceptorConfig() model.PerceptorConfigMap

func (*Config) ScannerConfig

func (config *Config) ScannerConfig() model.ScannerConfigMap

type Kube

type Kube struct {
	Config *Config
	// model objects
	Perceptor       *model.Perceptor
	MockImagefacade *model.MockImagefacade
	Scanner         *model.Scanner
	Prometheus      *model.Prometheus
	// kubernetes resources
	ReplicationControllers []*v1.ReplicationController
	ConfigMaps             []*v1.ConfigMap
	Services               []*v1.Service
	Secrets                []*v1.Secret
}

func NewKube

func NewKube(config *Config) *Kube

func (*Kube) GetConfigMaps

func (kube *Kube) GetConfigMaps() []*v1.ConfigMap

func (*Kube) GetReplicationControllers

func (kube *Kube) GetReplicationControllers() []*v1.ReplicationController

func (*Kube) GetSecrets

func (kube *Kube) GetSecrets() []*v1.Secret

func (*Kube) GetServices

func (kube *Kube) GetServices() []*v1.Service

type Openshift

type Openshift struct {
	Config *Config

	Kube *Kube

	ReplicationControllers []*v1.ReplicationController
	ConfigMaps             []*v1.ConfigMap
	Services               []*v1.Service
	Secrets                []*v1.Secret
}

func NewOpenshift

func NewOpenshift(config *Config) *Openshift

func (*Openshift) GetConfigMaps

func (os *Openshift) GetConfigMaps() []*v1.ConfigMap

func (*Openshift) GetReplicationControllers

func (os *Openshift) GetReplicationControllers() []*v1.ReplicationController

func (*Openshift) GetSecrets

func (os *Openshift) GetSecrets() []*v1.Secret

func (*Openshift) GetServices

func (os *Openshift) GetServices() []*v1.Service

Jump to

Keyboard shortcuts

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