Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
ビルド時に -ldflags で注入
Functions ¶
Types ¶
type EngineSwapper ¶
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 のトップレベル構造。
Click to show internal directories.
Click to hide internal directories.