Documentation
¶
Index ¶
- Constants
- func Main(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) int
- func ValidateRequestV1(request RequestV1) error
- func ValidateResponseV1(request RequestV1, response ResponseV1) error
- type AccessObservationV1
- type EnvironmentVariableV1
- type ExecutableInspectionV1
- type ExecutableObservationV1
- type FileObservationV1
- type LinkObservationV1
- type RequestV1
- type ResponseV1
Constants ¶
View Source
const ( VolumeCopySourceRoot = "/.reploy-volume-copy/source" VolumeCopyTargetRoot = "/.reploy-volume-copy/target" )
View Source
const ( RequestSchemaV1 = "reploy-probe-request-v1" ResponseSchemaV1 = "reploy-probe-response-v1" )
View Source
const PortableToolEnvironmentProfileV1 = "portable-tool-v1"
Variables ¶
This section is empty.
Functions ¶
func ValidateRequestV1 ¶
func ValidateResponseV1 ¶
func ValidateResponseV1(request RequestV1, response ResponseV1) error
Types ¶
type AccessObservationV1 ¶
type EnvironmentVariableV1 ¶
func PortableToolEnvironmentV1 ¶
func PortableToolEnvironmentV1() []EnvironmentVariableV1
PortableToolEnvironmentV1 returns a fresh copy of the fixed environment installed by restricted-exec for portable-tool validation probes.
type ExecutableInspectionV1 ¶
type ExecutableObservationV1 ¶
type ExecutableObservationV1 struct {
ID string `json:"id"`
InvocationPath string `json:"invocation_path"`
Links []LinkObservationV1 `json:"links"`
Terminal FileObservationV1 `json:"terminal"`
Access []AccessObservationV1 `json:"access"`
}
type FileObservationV1 ¶
type LinkObservationV1 ¶
type RequestV1 ¶
type RequestV1 struct {
Schema string `json:"schema"`
Inspections []ExecutableInspectionV1 `json:"inspections"`
}
func DecodeRequestV1 ¶
type ResponseV1 ¶
type ResponseV1 struct {
Schema string `json:"schema"`
Observations []ExecutableObservationV1 `json:"observations"`
}
func DecodeResponseV1 ¶
func DecodeResponseV1(request RequestV1, content []byte) (ResponseV1, error)
DecodeResponseV1 accepts only the closed canonical response schema and binds every observation to the request that caused it.
func Inspect ¶
func Inspect(request RequestV1) (ResponseV1, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.