k8sauditgke

package
v0.0.0-...-acd2641 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginID          uint32 = 16
	PluginName               = "k8saudit-gke"
	PluginDescription        = "Read Kubernetes Audit Events for GKE from a Pub/Sub subscription"
	PluginContact            = "github.com/falcosecurity/plugins"
	PluginVersion            = "0.1.0"
	PluginEventSource        = "k8s_audit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	k8saudit.Plugin

	Config PluginConfig
	// contains filtered or unexported fields
}

func (*Plugin) Info

func (p *Plugin) Info() *plugins.Info

func (*Plugin) Init

func (p *Plugin) Init(cfg string) error

initialize state

func (*Plugin) InitSchema

func (p *Plugin) InitSchema() *sdk.SchemaInfo

func (*Plugin) NewContainerService

func (p *Plugin) NewContainerService(ctx context.Context) (*container.Service, error)

func (*Plugin) Open

func (p *Plugin) Open(params string) (source.Instance, error)

func (*Plugin) OpenReader

func (k *Plugin) OpenReader(r string) (source.Instance, error)

func (*Plugin) String

func (p *Plugin) String(evt sdk.EventReader) (string, error)

type PluginConfig

type PluginConfig struct {
	ProjectID              string `` /* 137-byte string literal not displayed */
	CredentialsFile        string `` /* 279-byte string literal not displayed */
	NumGoroutines          int    `` /* 192-byte string literal not displayed */
	MaxOutstandingMessages int    `` /* 166-byte string literal not displayed */
	FetchClusterMetadata   bool   `json:"fetch_cluster_metadata"   jsonschema:"title=Fetch cluster metadata labels,description=(Default: false),default=false"`
	CacheExpiration        uint64 `` /* 134-byte string literal not displayed */
	UseAsync               bool   `` /* 166-byte string literal not displayed */
	MaxEventSize           uint64 `` /* 149-byte string literal not displayed */
}

func (*PluginConfig) Reset

func (p *PluginConfig) Reset()

Reset sets the configuration to its default values

Jump to

Keyboard shortcuts

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