Documentation
¶
Index ¶
Constants ¶
View Source
const (
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
Variables ¶
This section is empty.
Functions ¶
func GetDefaultProjectID ¶
GetDefaultProjectID returns the ID of user's configured default GCP project.
Types ¶
type GCPProject ¶
func GetDefaultProject ¶
func GetDefaultProject(t *testing.T) GCPProject
GetDefaultProject returns the ID of user's configured default GCP project.
type GcloudConfig ¶
type GcloudConfig struct {
EnvVars []string
}
func (*GcloudConfig) AddConfig ¶
func (c *GcloudConfig) AddConfig(key string, value string)
type Harness ¶
type Harness struct { *testing.T MockGCP mockgcp.Interface HTTPClient *http.Client Ctx context.Context Events *test.MemoryEventSink Project GCPProject // GRPCUnaryClientInterceptor is the GRPC interceptor for use in tests. GRPCUnaryClientInterceptor grpc.UnaryClientInterceptor Endpoint string GcloudConfiguration string ProxyEndpoint *net.TCPAddr // contains filtered or unexported fields }
func NewHarness ¶
func (*Harness) CompareGoldenFile ¶
func (*Harness) RegisteredServices ¶
func (h *Harness) RegisteredServices() mockgcpregistry.Normalizer
func (*Harness) RunCommand ¶
func (*Harness) StartProxy ¶
func (t *Harness) StartProxy()
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) BuildGcloudConfig ¶
Click to show internal directories.
Click to hide internal directories.