Documentation
¶
Index ¶
Constants ¶
View Source
const ( Name = "CommandRun" Type = "https://witness.testifysec.com/attestations/CommandRun/v0.1" )
View Source
const (
MAX_PATH_LEN = 4096
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandRun ¶
type CommandRun struct { Cmd []string `json:"cmd"` Stdout string `json:"stdout,omitempty"` Stderr string `json:"stderr,omitempty"` ExitCode int `json:"exitcode"` Products *artifact.Attestor `json:"products"` Processes []ProcessInfo `json:"processes,omitempty"` // contains filtered or unexported fields }
func New ¶
func New(opts ...Option) *CommandRun
func (*CommandRun) Attest ¶
func (rc *CommandRun) Attest(ctx *attestation.AttestationContext) error
func (*CommandRun) Name ¶
func (rc *CommandRun) Name() string
func (*CommandRun) Subjects ¶
func (rc *CommandRun) Subjects() map[string]cryptoutil.DigestSet
func (*CommandRun) Type ¶
func (rc *CommandRun) Type() string
type Option ¶
type Option func(*CommandRun)
func WithCommand ¶
func WithMaterials ¶
func WithMaterials(materials map[string]cryptoutil.DigestSet) Option
func WithSilent ¶
func WithTracing ¶
Click to show internal directories.
Click to hide internal directories.