Documentation
¶
Index ¶
Constants ¶
View Source
const ArtifactVersion = "compute-network-conformance.v1"
View Source
const DefaultProviderVersion = "v0.2.0-dev"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CaptiveProof ¶
type CaptiveProof struct {
DenyByDefault bool `json:"deny_by_default"`
CheckedModes []core.NetworkMode `json:"checked_modes"`
Residue ResidueScan `json:"residue"`
}
type ConformanceArtifact ¶
type ConformanceArtifact struct {
Version string `json:"version"`
Mode Mode `json:"mode"`
GeneratedAt time.Time `json:"generated_at"`
Supported bool `json:"supported"`
Specs []network.ConformanceSpec `json:"specs"`
Transfer *TransferProof `json:"transfer,omitempty"`
Captive *CaptiveProof `json:"captive,omitempty"`
}
func RunConformance ¶
func RunConformance(ctx context.Context, opts RunOptions) (ConformanceArtifact, error)
type ResidueScan ¶
type RunOptions ¶
type RunOptions struct {
Mode Mode
ArtifactPath string
WorkDir string
BindHost string
Payload []byte
ContentServerCommand []string
ContentServerEnv []string
LookPath func(string) (string, error)
DialContext func(context.Context, string, string) (net.Conn, error)
RunCommand func(context.Context, string, ...string) ([]byte, error)
TorSocksAddress string
ProviderVersion string
Now time.Time
}
Click to show internal directories.
Click to hide internal directories.