Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a policy engine client
type Option ¶
type Option func(x *Client)
Option is a functional option for Client
func WithPackage ¶
WithPackage specifies using package name. e.g. "example.my_policy"
func WithPolicyData ¶
WithPolicyData specifies raw policy data with name. If the `name` conflicts with file path loaded by WithFile or WithDir, the policy overwrites data loaded by WithFile or WithDir.
func WithPrinter ¶
WithPrinter specifies callback function to print statement in policy. This is useful for debugging.
Click to show internal directories.
Click to hide internal directories.