Versions in this module Expand all Collapse all v0 v0.7.2 Jul 9, 2024 v0.7.1 Jun 14, 2024 Changes in this version + const DefaultRemoteUser + const DiscovererSnapshotterRoleNameFormat + const FileCloudRouter + const FileFirewallRules + const FileNetwork + const FileRoles + const FileServiceAccount + const FileStaticIP + const FileVMClarity + const FileVMClarityInstall + const FileVMClarityInstallScript + const FileVMClarityInstallScriptSchema + const FileVMClaritySchema + const FileVMClarityServer + const FileVMClarityServerSchema + const GCPClientContextKey + const PollInterval + const ProjectID + const ScannerRoleNameFormat + const TestAssetName + const Zone + type Config struct + EnvName string + PrivateKeyFile string + PublicKeyFile string + WorkDir string + type ConfigOptFn func(*Config) error + func WithContext(ctx context.Context) ConfigOptFn + func WithWorkDir(dir string) ConfigOptFn + type ContextKeyType string + type GCPEnv struct + func New(config *Config, opts ...ConfigOptFn) (*GCPEnv, error) + func (e *GCPEnv) Context(ctx context.Context) (context.Context, error) + func (e *GCPEnv) Endpoints(_ context.Context) (*types.Endpoints, error) + func (e *GCPEnv) ServiceLogs(_ context.Context, _ []string, startTime time.Time, stdout, stderr io.Writer) error + func (e *GCPEnv) SetUp(ctx context.Context) error + func (e *GCPEnv) TearDown(ctx context.Context) error