commands

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"policycommands",
	"Policy script commands",
	cell.Provide(NewPolicyCommands),
)

Functions

func NewPolicyCommands

func NewPolicyCommands(params CmdParams) hive.ScriptCmdsOut

Types

type CmdParams

type CmdParams struct {
	cell.In

	EPL endpointmanager.EndpointsLookup

	// used for staging
	Repository policy.PolicyRepository
	DB         *statedb.DB
	Services   statedb.Table[*loadbalancer.Service]
	Backends   statedb.Table[*loadbalancer.Backend]

	ClusterMeshPolicyConfig cmtypes.PolicyConfig
	Config                  *option.DaemonConfig
	PMFactory               policymap.Factory
}

type PolicyCommands

type PolicyCommands map[string]script.Cmd

Jump to

Keyboard shortcuts

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