ape

package
v0.44.6 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ingress = "ingress"
	S3      = "s3"
)
View Source
const (
	RuleFlag           = "rule"
	PathFlag           = "path"
	PathFlagDesc       = "Path to encoded chain in JSON or binary format"
	TargetNameFlag     = "target-name"
	TargetNameFlagDesc = "Resource name in APE resource name format"
	TargetTypeFlag     = "target-type"
	TargetTypeFlagDesc = "Resource type(container/namespace)"
	ChainIDFlag        = "chain-id"
	ChainIDFlagDesc    = "Chain id"
	ChainIDHexFlag     = "chain-id-hex"
	ChainIDHexFlagDesc = "Flag to parse chain ID as hex"
	ChainNameFlag      = "chain-name"
	ChainNameFlagDesc  = "Chain name(ingress|s3)"
	AllFlag            = "all"
)
View Source
const RuleFlagDesc = `` /* 2094-byte string literal not displayed */

Variables

This section is empty.

Functions

func ParseChain

func ParseChain(cmd *cobra.Command) *apechain.Chain

ParseChain parses an APE chain which can be provided either as a rule statement or loaded from a binary/JSON file path.

func ParseChainID

func ParseChainID(cmd *cobra.Command) (id apechain.ID)

ParseChainID handles the parsing of APE-chain identifier. For some subcommands, chain ID is optional as an input parameter and should be generated by the service instead.

func ParseChainName

func ParseChainName(cmd *cobra.Command) apechain.Name

ParseChainName parses chain name: the place in the request lifecycle where policy is applied.

func ParseTarget

func ParseTarget(cmd *cobra.Command) engine.Target

ParseTarget handles target parsing of an APE chain.

func ParseTargetType

func ParseTargetType(cmd *cobra.Command) engine.TargetType

ParseTargetType handles target type parsing of an APE chain.

func PrintHumanReadableAPEChain

func PrintHumanReadableAPEChain(cmd *cobra.Command, chain *apechain.Chain)

PrintHumanReadableAPEChain print APE chain rules.

Types

This section is empty.

Jump to

Keyboard shortcuts

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