authorizer

package
v0.32.8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CheckUnknown checkType = iota
	CheckDecision
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizerCmd

type AuthorizerCmd struct {
	CheckDecision EvalCmd         `cmd:"" name:"eval" help:"evaluate policy decision"`
	ExecQuery     QueryCmd        `cmd:"" name:"query" help:"execute query"`
	DecisionTree  DecisionTreeCmd `cmd:"" name:"decisiontree" help:"get decision tree"`
	GetPolicy     GetPolicyCmd    `cmd:"" help:"get policy"`
	ListPolicies  ListPoliciesCmd `cmd:"" help:"list policies"`
	Test          TestCmd         `cmd:"" help:"execute authorizer assertions"`
}

type DecisionTreeCmd added in v0.32.4

type DecisionTreeCmd struct {
	Request  string `` /* 131-byte string literal not displayed */
	Template bool   `name:"template" short:"t" help:"prints a check permission request template on stdout"`
	Editor   bool   `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
	clients.AuthorizerConfig
}

func (*DecisionTreeCmd) Run added in v0.32.4

func (cmd *DecisionTreeCmd) Run(c *cc.CommonCtx) error

type EvalCmd added in v0.32.4

type EvalCmd struct {
	Request  string `` /* 129-byte string literal not displayed */
	Template bool   `name:"template" short:"t" help:"prints a check permission request template on stdout"`
	Editor   bool   `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
	clients.AuthorizerConfig
}

func (*EvalCmd) Run added in v0.32.4

func (cmd *EvalCmd) Run(c *cc.CommonCtx) error

type GetPolicyCmd added in v0.32.4

type GetPolicyCmd struct {
	Request  string `` /* 128-byte string literal not displayed */
	Template bool   `name:"template" short:"t" help:"prints a check permission request template on stdout"`
	Editor   bool   `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
	clients.AuthorizerConfig
}

func (*GetPolicyCmd) Run added in v0.32.4

func (cmd *GetPolicyCmd) Run(c *cc.CommonCtx) error

type ListPoliciesCmd added in v0.32.4

type ListPoliciesCmd struct {
	Request  string `arg:"" type:"string" name:"request" optional:"" help:"json request or file path to list request or '-' to read from stdin"`
	Template bool   `name:"template" short:"t" help:"prints a check permission request template on stdout"`
	Editor   bool   `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
	clients.AuthorizerConfig
}

func (*ListPoliciesCmd) Run added in v0.32.4

func (cmd *ListPoliciesCmd) Run(c *cc.CommonCtx) error

type QueryCmd added in v0.32.4

type QueryCmd struct {
	Request  string `` /* 134-byte string literal not displayed */
	Template bool   `name:"template" short:"t" help:"prints a check permission request template on stdout"`
	Editor   bool   `name:"edit" short:"e" help:"edit request" hidden:"" type:"fflag.Editor"`
	clients.AuthorizerConfig
}

func (*QueryCmd) Run added in v0.32.4

func (cmd *QueryCmd) Run(c *cc.CommonCtx) error

type TestCmd

type TestCmd struct {
	Exec     TestExecCmd     `cmd:"" help:"execute assertions"`
	Template TestTemplateCmd `cmd:"" help:"output assertions template"`
}

type TestExecCmd

type TestExecCmd struct {
	File    string `arg:""  default:"assertions.json" help:"filepath to assertions file"`
	NoColor bool   `flag:"" default:"false" help:"disable colorized output"`
	Summary bool   `flag:"" default:"false" help:"display test summary"`

	clients.AuthorizerConfig
	// contains filtered or unexported fields
}

func (*TestExecCmd) Run

func (cmd *TestExecCmd) Run(c *cc.CommonCtx) error

nolint: funlen,gocyclo

type TestTemplateCmd

type TestTemplateCmd struct {
	V2     bool `flag:"" default:"false" help:"use v2 template"`
	Pretty bool `flag:"" default:"false" help:"pretty print JSON"`
}

func (*TestTemplateCmd) Run

func (cmd *TestTemplateCmd) Run(c *cc.CommonCtx) error

Jump to

Keyboard shortcuts

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