perceivertester

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: 3 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

	PodPerceiverServiceAccountName   string
	ImagePerceiverServiceAccountName string

	IsOpenshift bool
}

func ReadAuxiliaryConfig

func ReadAuxiliaryConfig(auxConfigPath string) *AuxiliaryConfig

type Config

type Config struct {
	// general protoform config
	MasterURL      string
	KubeConfigPath string

	// Perceptor config
	PerceptorPort int32

	// perceivers config
	AnnotationIntervalSeconds int
	DumpIntervalMinutes       int
	ImagePerceiverPort        int32
	PodPerceiverPort          int32

	LogLevel string

	AuxConfig *AuxiliaryConfig
}

func ReadConfig

func ReadConfig(configPath string) *Config

func (*Config) ImagePerceiverConfig

func (pc *Config) ImagePerceiverConfig() model.ImagePerceiverConfigMap

func (*Config) PerceptorConfig

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

func (*Config) PodPerceiverConfig

func (pc *Config) PodPerceiverConfig() model.PodPerceiverConfigMap

type Kube

type Kube struct {
	Config *Config
	// model objects
	Perceptor    *model.Perceptor
	PodPerceiver *model.PodPerceiver
	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