sdk

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2026 License: AGPL-3.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SeededUUID

func SeededUUID(seedMap map[string]string) (uuid.UUID, error)

SeededUUID generates a consistent UUID for the same seedMap. This is useful for generating consistent StreamIDs across executions.

Types

type AgentAuthConfig added in v0.15.0

type AgentAuthConfig struct {
	ClientID     string
	ClientSecret string
}

type Client

type Client struct {
	Evidence *evidenceClient

	RiskTemplate *riskTemplateClient

	SubjectTemplate *subjectTemplateClient

	Heartbeat *heartbeatClient

	Playback *playbackClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client *http.Client, config *Config) *Client

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method string, path string, reader io.Reader) (*http.Response, error)

type Config

type Config struct {
	BaseURL string
	Logger  *zap.SugaredLogger

	AgentAuth *AgentAuthConfig
}

type PlaybackPolicyError added in v0.19.0

type PlaybackPolicyError struct {
	Errors []policyeval.EvalError
}

PlaybackPolicyError is returned when the API rejects the policy itself (422): it does not parse, compile or evaluate, times out, or contains no compliance_framework package.

func (*PlaybackPolicyError) Error added in v0.19.0

func (e *PlaybackPolicyError) Error() string

type PlaybackRequest added in v0.19.0

type PlaybackRequest = policyeval.EvaluateRequest

type PlaybackResponse added in v0.19.0

type PlaybackResponse = policyeval.EvaluateResponse

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL