controllers

package
v0.0.0-...-e2f1ce5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeCalculator

type NodeCalculator struct {
	Log        logr.Logger
	Reconciler *SecurityPolicyReconciler
}

func (*NodeCalculator) Calculate

func (*NodeCalculator) List

func (n *NodeCalculator) List(labels map[string]string) ([]string, error)

List is returned node external ip list.

type NodeEventPredicate

type NodeEventPredicate struct {
}

func (*NodeEventPredicate) Create

Create returns true if the Create event should be processed

func (*NodeEventPredicate) Delete

Delete returns true if the Delete event should be processed

func (*NodeEventPredicate) Generic

Generic returns true if the Generic event should be processed

func (*NodeEventPredicate) Update

Update returns true if the Update event should be processed

type SecurityPolicyAPI

type SecurityPolicyAPI struct {
	Log logr.Logger
}

SecurityPolicyAPI is Google Compute SecurityPolicy API structure.

func (*SecurityPolicyAPI) Apply

func (*SecurityPolicyAPI) Create

Create calls Security Policy Insert API

func (*SecurityPolicyAPI) Delete

func (api *SecurityPolicyAPI) Delete(ctx context.Context, name string) error

Delete is delete security policy.

func (*SecurityPolicyAPI) Get

Get returns search results by id

type SecurityPolicyNodeReconciler

type SecurityPolicyNodeReconciler struct {
	client.Client
	Log logr.Logger
}

SecurityPolicyNodeReconciler reconciles a SecurityPolicy object

func (*SecurityPolicyNodeReconciler) Reconcile

func (*SecurityPolicyNodeReconciler) SetupWithManager

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

SetupWithManager is reconcile control.

type SecurityPolicyReconciler

type SecurityPolicyReconciler struct {
	client.Client
	Log logr.Logger
}

SecurityPolicyReconciler reconciles a SecurityPolicy object

func (*SecurityPolicyReconciler) Reconcile

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

func (*SecurityPolicyReconciler) SetupWithManager

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

SetupWithManager is reconcile control.

Jump to

Keyboard shortcuts

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