Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bundle ¶
type Bundle struct {
BundleSource *BundleSource `json:"authz,omitempty"`
}
Bundle defines a bundle bundles:
authz: service: acmecorp resource: somedir/bundle.tar.gz persist: true polling: min_delay_seconds: 10 max_delay_seconds: 20 signing: keyid: my_global_key scope: read
type BundleSource ¶
type DecisionLogs ¶
type DecisionLogs struct {
Console bool `json:"console,omitempty"`
}
type OpaConfig ¶
type OpaConfig struct { Services []Service `json:"services,omitempty"` Bundles map[string]Bundle `json:"bundles,omitempty"` DecisionLogs DecisionLogs `json:"decision_logs,omitempty"` }
OpaConfig defines the top level OPA config to go to json
type Service ¶
type Service struct { Name string `json:"name,omitempty"` URL string `json:"url,omitempty"` Credentials map[string]interface{} `json:"credentials,omitempty"` }
Service defines a service services:
- name: acmecorp url: https://example.com/service/v1 credentials: bearer: token: "bGFza2RqZmxha3NkamZsa2Fqc2Rsa2ZqYWtsc2RqZmtramRmYWxkc2tm"
Click to show internal directories.
Click to hide internal directories.