Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchAuthorizeInput ¶
type BatchAuthorizeResponse ¶
type BatchAuthorizeResponse struct { // Evaluations made by the authz service. Evaluations []*authzv1alpha1.Evaluation }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewFromConfig ¶
func (*Client) BatchAuthorize ¶
func (c *Client) BatchAuthorize(ctx context.Context, input BatchAuthorizeInput) (BatchAuthorizeResponse, error)
func (*Client) RawClient ¶
func (c *Client) RawClient() authzv1alpha1connect.AuthzServiceClient
RawClient returns the underlying Buf Connect client.
type DecisionNotFoundError ¶
type DecisionNotFoundError struct {
Key string
}
func (DecisionNotFoundError) Error ¶
func (e DecisionNotFoundError) Error() string
type Opts ¶
type Opts struct { HTTPClient connect.HTTPClient BaseURL string ClientOptions []connect.ClientOption // AttrCacheExpiration defaults to 24h if not provided AttrCacheExpiration time.Duration // AttrCleanupInterval defaults to 48h if not provided AttrCleanupInterval time.Duration }
type Request ¶
type Request struct { Principal eid.EID `json:"principal"` Action eid.EID `json:"action"` Resource eid.EID `json:"resource"` OverlayEntities []entity.Entity `json:"overlay_entities,omitempty"` OverlayChildren []entity.ChildRelation `json:"overlay_children,omitempty"` Tags map[string]string `json:"tags,omitempty"` }
Click to show internal directories.
Click to hide internal directories.