Documentation
¶
Index ¶
- Constants
- func DecodeJSONObjectStrict(data []byte, target any) error
- func OpenSource(path string) (dal.DB, error)
- func ValidateAuthorizationEnvelope(data []byte) (authorization.Result, string, error)
- type AuthorizationError
- type Client
- func (c Client) Evidence(ctx context.Context, target Target, body []byte) (Response, error)
- func (c Client) Explain(ctx context.Context, target Target, body []byte) (Response, error)
- func (c Client) Query(ctx context.Context, target Target, dtql []byte) (Response, error)
- func (c Client) Update(ctx context.Context, target Target, table, row string, body []byte) (Response, error)
- type Response
- type SourceConfig
- type Target
Constants ¶
View Source
const ( MaxRequestBytes = 1 << 20 MaxResponseBytes = 8 << 20 )
Variables ¶
This section is empty.
Functions ¶
func DecodeJSONObjectStrict ¶
DecodeJSONObjectStrict rejects duplicate keys at every depth before optionally decoding the top-level object.
func ValidateAuthorizationEnvelope ¶
func ValidateAuthorizationEnvelope(data []byte) (authorization.Result, string, error)
Types ¶
type AuthorizationError ¶
AuthorizationError retains the owner's validated structured denial internally. Its Error string is deliberately safe for the existing public API error mapper.
func (*AuthorizationError) Error ¶
func (*AuthorizationError) Error() string
func (*AuthorizationError) Unwrap ¶
func (*AuthorizationError) Unwrap() error
type SourceConfig ¶
type SourceConfig struct {
BaseURL string `json:"baseUrl"`
DatabaseID string `json:"databaseId"`
TokenEnv string `json:"tokenEnv"`
PrincipalID string `json:"principalId"`
}
SourceConfig is CLI-owned connection metadata referenced by a normal project catalog's Path. Tokens remain in the daemon environment. PrincipalID binds the configured credential to the fixed local session; OVDB authenticates its own token and resolves memberships independently. No caller-supplied identity is sent.
Click to show internal directories.
Click to hide internal directories.