env

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditClient

type AuditClient interface {
	GetFileWatchRules() ([]*rule.FileWatchRule, error)
	Close() error
}

AuditClient defines the interface for interacting with the auditd client

type Clients

type Clients interface {
	DockerClient() DockerClient
	AuditClient() AuditClient
	KubeClient() KubeClient
}

Clients provides an abstraction for accessing various clients needed by checks

type Configuration

type Configuration interface {
	Hostname() string
	MaxEventsPerRun() int
	EtcGroupPath() string
	NormalizeToHostRoot(path string) string
	RelativeToHostRoot(path string) string
	EvaluateFromCache(e eval.Evaluatable) (interface{}, error)
	IsLeader() bool
	NodeLabels() map[string]string
}

Configuration provides an abstraction for various environment methods used by checks

type Env

type Env interface {
	Clients
	Configuration
	RegoConfiguration
	Reporter() event.Reporter
}

Env provides environment methods for compliance checks execution

type KubeClient

type KubeClient interface {
	dynamic.Interface
	ClusterID() (string, error)
}

KubeClient is the Kubernetes (API server) client interface

type RegoConfiguration

type RegoConfiguration interface {
	ProvidedInput(ruleID string) eval.RegoInputMap
	DumpInputPath() string
}

RegoConfiguration provides the rego specific configuration

Jump to

Keyboard shortcuts

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