Documentation
¶
Index ¶
- Constants
- type BatchDecryptItem
- type BatchDecryptItemResult
- type BatchDecryptResult
- type Cipher
- type Client
- func (c *Client) BatchDecryptInbound(ctx context.Context, rt Runtime, opts Options, items []BatchDecryptItem) (BatchDecryptResult, error)
- func (c *Client) DecryptInbound(ctx context.Context, rt Runtime, opts Options) (DecryptResult, error)
- func (c *Client) PolicyDecision(ctx context.Context, rt Runtime, opts Options) (PolicyDecision, error)
- type DecryptResult
- type Identity
- type Options
- type Policy
- type PolicyCache
- type PolicyDecision
- type Runtime
- type Session
- type SessionOptions
Constants ¶
View Source
const ( ModeOff = "off" ModeThirdParty = "third_party" ModeRequired = "required" ModeDegraded = "degraded" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchDecryptItem ¶
type BatchDecryptItemResult ¶
type BatchDecryptResult ¶
type BatchDecryptResult struct {
Items []BatchDecryptItemResult
Failures []BatchDecryptItemResult
}
type Client ¶
type Client struct {
Identity func(context.Context, string) (Identity, error)
OpenSession func(context.Context, SessionOptions) (*Session, error)
BackendReady func() bool
PolicyCache *PolicyCache
}
func DefaultClient ¶
func DefaultClient() *Client
func (*Client) BatchDecryptInbound ¶
func (c *Client) BatchDecryptInbound(ctx context.Context, rt Runtime, opts Options, items []BatchDecryptItem) (BatchDecryptResult, error)
func (*Client) DecryptInbound ¶
func (*Client) PolicyDecision ¶
type DecryptResult ¶
type PolicyCache ¶
type PolicyCache struct {
// contains filtered or unexported fields
}
func NewPolicyCache ¶
func NewPolicyCache(now func() time.Time) *PolicyCache
func (*PolicyCache) Set ¶
func (c *PolicyCache) Set(key string, policy Policy)
type PolicyDecision ¶
type Runtime ¶
type Runtime interface {
CallMCPReadData(product, tool string, params map[string]any) (map[string]any, error)
CallMCPWriteDataStrict(product, tool string, params map[string]any) (map[string]any, error)
DryRun() bool
}
Runtime is the narrow MCP surface required by the DWS message crypto layer.
Click to show internal directories.
Click to hide internal directories.