Documentation ¶
Index ¶
- Variables
- func BasicAuthor(username, password string) grpc.UnaryClientInterceptor
- type AuthType
- type Client
- func (c Client) AddPolicies(ctx context.Context, namespace, sec, ptype string, rules [][]string) ([][]string, error)
- func (c Client) Enforce(ctx context.Context, namespace string, level command.EnforcePayload_Level, ...) (bool, error)
- func (c Client) ListNamespaces(ctx context.Context) ([]string, error)
- func (c Client) ListPolicies(ctx context.Context, namespace string) ([][]string, error)
- func (c Client) PrintModel(ctx context.Context, namespace string) (string, error)
- func (c Client) RemovePolicies(ctx context.Context, namespace, sec, ptype string, rules [][]string) ([][]string, error)
- func (c Client) ShowStats(ctx context.Context) ([]byte, error)
- func (c Client) UpdatePolicies(ctx context.Context, namespace, sec, ptype string, old, new [][]string) (bool, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MarshalFailed = errors.New("marshal failed")
)
Functions ¶
func BasicAuthor ¶
func BasicAuthor(username, password string) grpc.UnaryClientInterceptor
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) AddPolicies ¶
func (Client) ListNamespaces ¶
func (Client) ListPolicies ¶
func (Client) PrintModel ¶
func (Client) RemovePolicies ¶
Click to show internal directories.
Click to hide internal directories.