utils

package
v0.0.0-...-b1976e9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientAuth

func NewClientAuth(c, l string) (*kubernetes.Clientset, *rest.Config)

NewClientAuth for creating a new kubernetes client using either inCluster for connecting withing kubernetes namespace by using a service account or with a local kubernetes client configuration

func NewOSSignal

func NewOSSignal() osSignalHandler

NewOSSignal for creating a new signal

func NewSignal

func NewSignal() (stopCh chan struct{})

NewSignal for creating a new signal

func SetupSignalHandler

func SetupSignalHandler() (stopCh <-chan struct{})

Types

type KDAuditCFG

type KDAuditCFG struct {
	Threadiness int
	// contains filtered or unexported fields
}

KDAuditCFG for storing kdaudit configMap The configMap is used to check which kdaudit services will be loaded

func NewKDAuditCFG

func NewKDAuditCFG(client *kubernetes.Clientset) KDAuditCFG

NewKDAuditCFG for creating a new KDAuditCFG struct

func (*KDAuditCFG) ReadConfig

func (c *KDAuditCFG) ReadConfig()

ReadConfig for reading kdaudit configMap

type KDAuditInitFlags

type KDAuditInitFlags struct {
	ClientAuthType string
	LocalKubeCFG   string
}

KDAuditInitFlags is used to store kdaudit flags that are given during the startup

func ParseFlags

func ParseFlags() KDAuditInitFlags

ParseFlags for parsing flags into KDAuditInitFlags

Jump to

Keyboard shortcuts

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