Documentation ¶
Index ¶
- Constants
- func ParseChain(cmd *cobra.Command) *apechain.Chain
- func ParseChainID(cmd *cobra.Command) (id apechain.ID)
- func ParseChainName(cmd *cobra.Command) apechain.Name
- func ParseTarget(cmd *cobra.Command) engine.Target
- func ParseTargetType(cmd *cobra.Command) engine.TargetType
- func PrintHumanReadableAPEChain(cmd *cobra.Command, chain *apechain.Chain)
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 ¶
ParseChain parses an APE chain which can be provided either as a rule statement or loaded from a binary/JSON file path.
func ParseChainID ¶
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 ¶
ParseChainName parses chain name: the place in the request lifecycle where policy is applied.
func ParseTarget ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.