controllers

package
v0.0.0-...-d870e27 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostReconciler

type HostReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

HostReconciler reconciles a Host object

func (*HostReconciler) Reconcile

func (r *HostReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile comapares the Host Resource with the State of the Cluster and updates both accordingly

func (*HostReconciler) SetupWithManager

func (r *HostReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller and initializes every thing it needs

type ScanTemplates

type ScanTemplates struct {
	Port     int32
	Type     string
	ScanSpec executionv1.ScanSpec
}

func CreateScanTemplatesForHost

func CreateScanTemplatesForHost(host targetsv1.Host) []ScanTemplates

CreateScanTemplatesForHost defines which scans should be created for a Host

Jump to

Keyboard shortcuts

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