cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

ビルド時に -ldflags で注入

Functions

func Execute

func Execute() error

Types

type EngineSwapper

type EngineSwapper interface {
	SwapEngine(e *policy.Engine)
}

EngineSwapper はポリシーエンジンをアトミックに入れ替えるインターフェース。

type TestScenario

type TestScenario struct {
	Name    string   `yaml:"name"`
	Method  string   `yaml:"method"`
	Params  string   `yaml:"params"` // JSON 文字列
	Subject string   `yaml:"subject"`
	Roles   []string `yaml:"roles,omitempty"` // ドキュメント用(評価には使用しない)
	Expect  string   `yaml:"expect"`          // "allow" or "deny"
}

TestScenario は個々のテストシナリオ。

type TestScenarioFile

type TestScenarioFile struct {
	Scenarios []TestScenario `yaml:"scenarios"`
}

TestScenarioFile はシナリオ YAML のトップレベル構造。

Jump to

Keyboard shortcuts

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