approfilecache

package
v0.0.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationProfileAccessImpl

type ApplicationProfileAccessImpl struct {
	// contains filtered or unexported fields
}

func (*ApplicationProfileAccessImpl) GetCapabilities

func (access *ApplicationProfileAccessImpl) GetCapabilities() ([]collector.CapabilitiesCalls, error)

func (*ApplicationProfileAccessImpl) GetDNS

func (access *ApplicationProfileAccessImpl) GetDNS() (*[]collector.DnsCalls, error)

func (*ApplicationProfileAccessImpl) GetExecList

func (access *ApplicationProfileAccessImpl) GetExecList() (*[]collector.ExecCalls, error)

func (*ApplicationProfileAccessImpl) GetName added in v0.0.3

func (access *ApplicationProfileAccessImpl) GetName() string

func (*ApplicationProfileAccessImpl) GetNamespace added in v0.0.3

func (access *ApplicationProfileAccessImpl) GetNamespace() string

func (*ApplicationProfileAccessImpl) GetNetworkActivity

func (access *ApplicationProfileAccessImpl) GetNetworkActivity() (*collector.NetworkActivity, error)

func (*ApplicationProfileAccessImpl) GetOpenList

func (access *ApplicationProfileAccessImpl) GetOpenList() (*[]collector.OpenCalls, error)

func (*ApplicationProfileAccessImpl) GetSystemCalls

func (access *ApplicationProfileAccessImpl) GetSystemCalls() ([]string, error)

type ApplicationProfileCache

type ApplicationProfileCache interface {
	// Load an application profile to the cache
	LoadApplicationProfile(namespace, kind, workloadName, ownerKind, ownerName, containerName, containerID string, acceptPartial bool) error

	// Anticipate an application profile to be loaded to the cache
	AnticipateApplicationProfile(namespace, kind, workloadName, ownerKind, ownerName, containerName, containerID string, acceptPartial bool) error

	// Delete an application profile from the cache
	DeleteApplicationProfile(containerID string) error

	// Has application profile for the given container in Kubernetes workload (identified by namespace, kind, workload name and container name)
	HasApplicationProfile(namespace, kind, workloadName, containerName string) bool

	// Get application profile access for the given container in Kubernetes workload (identified by container name and ID in the cache)
	GetApplicationProfileAccess(containerName, containerID string) (SingleApplicationProfileAccess, error)
}

type ApplicationProfileCacheEntry added in v0.0.3

type ApplicationProfileCacheEntry struct {
	ApplicationProfile *collector.ApplicationProfile
	WorkloadName       string
	WorkloadKind       string
	OwnerName          string
	OwnerKind          string
	Namespace          string
	AcceptPartial      bool
	OwnerLevelProfile  bool
}

type ApplicationProfileK8sCache

type ApplicationProfileK8sCache struct {
	// contains filtered or unexported fields
}

func NewApplicationProfileK8sCache

func NewApplicationProfileK8sCache(k8sConfig *rest.Config) (*ApplicationProfileK8sCache, error)

func (*ApplicationProfileK8sCache) AnticipateApplicationProfile

func (cache *ApplicationProfileK8sCache) AnticipateApplicationProfile(namespace, kind, workloadName, ownerKind, ownerName, containerName, containerID string, acceptPartial bool) error

func (*ApplicationProfileK8sCache) DeleteApplicationProfile

func (cache *ApplicationProfileK8sCache) DeleteApplicationProfile(containerID string) error

func (*ApplicationProfileK8sCache) Destroy

func (cache *ApplicationProfileK8sCache) Destroy()

func (*ApplicationProfileK8sCache) GetApplicationProfileAccess

func (cache *ApplicationProfileK8sCache) GetApplicationProfileAccess(containerName, containerID string) (SingleApplicationProfileAccess, error)

func (*ApplicationProfileK8sCache) HasApplicationProfile

func (cache *ApplicationProfileK8sCache) HasApplicationProfile(namespace, kind, workloadName, containerName string) bool

func (*ApplicationProfileK8sCache) LoadApplicationProfile

func (cache *ApplicationProfileK8sCache) LoadApplicationProfile(namespace, kind, workloadName, ownerKind, ownerName, containerName, containerID string, acceptPartial bool) error

func (*ApplicationProfileK8sCache) StartController

func (c *ApplicationProfileK8sCache) StartController()

type SingleApplicationProfileAccess

type SingleApplicationProfileAccess interface {
	// Get application profile name
	GetName() string
	// Get application profile namespace
	GetNamespace() string
	// Get exec list
	GetExecList() (*[]collector.ExecCalls, error)
	// Get open list
	GetOpenList() (*[]collector.OpenCalls, error)
	// Get network activity
	GetNetworkActivity() (*collector.NetworkActivity, error)
	// Get system calls
	GetSystemCalls() ([]string, error)
	// Get capabilities
	GetCapabilities() ([]collector.CapabilitiesCalls, error)
	// Get DNS activity
	GetDNS() (*[]collector.DnsCalls, error)
}

Jump to

Keyboard shortcuts

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