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 { // Decisions in the response. // Usually you'll want GetDecision() to look up a specific decision // which checks it exists. Decisions map[string]*authzv1alpha1.Evaluation }
func (BatchAuthorizeResponse) GetDecision ¶
func (r BatchAuthorizeResponse) GetDecision(key string) (*authzv1alpha1.Evaluation, error)
GetDecision looks up a decision by the client key. The client key is the key to the map that you provided in BatchAuthorizeInput.
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 }
Click to show internal directories.
Click to hide internal directories.