avcheck

package
v0.0.0-...-9940484 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBom

func BuildBom(namespace, bomName, secretRef, installNamespace, tarballURL, catalogTriple string) (*hubv1.ClusterBom, error)

func StartServer

func StartServer(config *Configuration, monitoredControllers []Controller)

func StartServerForBasicCheck

func StartServerForBasicCheck()

Types

type AVCheck

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

func NewAVCheck

func NewAVCheck() *AVCheck

func (*AVCheck) GetLastReconcileTime

func (a *AVCheck) GetLastReconcileTime() time.Time

func (*AVCheck) ReconcileCalled

func (a *AVCheck) ReconcileCalled()

type Actor

type Actor struct {
	K8sClient      client.Client
	Log            logr.Logger
	InitialBom     *hubv1.ClusterBom
	ChangeInterval time.Duration
}

func (*Actor) Start

func (a *Actor) Start()

type Configuration

type Configuration struct {
	Namespace         string
	BomName           string
	SecretRef         string
	InstallNamespace  string
	TarballURL        string
	CatalogDefinition string
	ChangeInterval    time.Duration
	FailureThreshold  time.Duration
}

func (*Configuration) UnmarshalJSON

func (c *Configuration) UnmarshalJSON(data []byte) error

func (*Configuration) Validate

func (c *Configuration) Validate() error

type Controller

type Controller interface {
	GetName() string
	GetLastAVCheckReconcileTime() time.Time
}

Jump to

Keyboard shortcuts

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