cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertCmd

type ConvertCmd struct {
	Input        string `flag:"" short:"i" help:"assertions file path" xor:"input,stdin"`
	Output       string `flag:"" short:"o" help:"decisions file path"`
	PolicyName   string `flag:"" default:"policy-rebac" help:"policy name"`
	PolicyPath   string `flag:"" default:"rebac.check" help:"policy package path"`
	PolicyRule   string `flag:"" default:"allowed" help:"policy rule name"`
	IdentityType string `flag:"" default:"sub" help:"identity type (sub|jwt|manual|none)" enum:"sub,jwt,manual,none"`
	StdIn        bool   `flag:"" name:"stdin" help:"read input from StdIn" xor:"input,stdin"`
	Version      bool   `flag:"" help:"version info"`
}

func (*ConvertCmd) Run

func (cmd *ConvertCmd) Run(ctx context.Context) error

type DecisionAssertions

type DecisionAssertions struct {
	Assertions []*api.DecisionAssertion `json:"assertions"`
}

Jump to

Keyboard shortcuts

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