manager

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyManager

type PolicyManager interface {
	ManagePolicy(payload fleet.AgentPolicyRPCPayload)
	RemovePolicyDataset(policyID string, datasetID string, be backend.Backend)
	GetPolicyState() ([]policies.PolicyData, error)
	GetRepo() policies.PolicyRepo
	ApplyBackendPolicies(be backend.Backend) error
	RemoveBackendPolicies(be backend.Backend, permanently bool) error
	RemovePolicy(policyID string, policyName string, beName string) error
}

func New

func New(logger *zap.Logger, c config.Config, db *sqlx.DB) (PolicyManager, error)

Jump to

Keyboard shortcuts

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