Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ArtifactMediaTypePolicyBundle uploads a policy bundle as a tar or gzipped tar. ArtifactMediaTypePolicyBundle = artifact.MediaTypePolicyBundle // ArtifactMediaTypeJSON uploads any JSON value. ArtifactMediaTypeJSON = artifact.MediaTypeJSON )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentAuthConfig ¶ added in v0.15.0
type ArtifactInfo ¶
ArtifactInfo describes a stored artifact. The API computes Digest from the content's canonical form.
type ArtifactStatusError ¶
ArtifactStatusError is an unexpected HTTP status from an artifact route. A 404 or 405 on Upload means the API predates artifact storage.
func (*ArtifactStatusError) Error ¶
func (e *ArtifactStatusError) Error() string
type Client ¶
type Client struct {
Evidence *evidenceClient
RiskTemplate *riskTemplateClient
SubjectTemplate *subjectTemplateClient
Heartbeat *heartbeatClient
Playback *playbackClient
Artifact *artifactClient
// contains filtered or unexported fields
}
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.