Documentation ¶
Index ¶
- func CreatePubsubTopic(client *pubsub.Client, ctx context.Context, topicNames []string) error
- func CreateSubscriptions(client *pubsub.Client, ctx context.Context, topicNames []string) (map[string]*pubsub.Subscription, error)
- func ReadFile(filepath string) ([]byte, error)
- func StartPubSubEmulator(ctx context.Context, project string) (testcontainers.Container, *pubsub.Client, error)
- func TestSetupEnvForGoogleCredentials(t *testing.T) (reset func())
- type Config
- type PubSub
- type Sentry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePubsubTopic ¶
func CreateSubscriptions ¶
func StartPubSubEmulator ¶
func TestSetupEnvForGoogleCredentials ¶
TestSetupEnvForGoogleCredentials creates a temporary file containing dummy user account JSON then set the environment variable GOOGLE_APPLICATION_CREDENTIALS to point to the file. This is useful for tests that assume Google Cloud Client libraries can automatically find the user account credentials in any environment. At the end of the test, the returned function can be called to perform cleanup.
Types ¶
Click to show internal directories.
Click to hide internal directories.