Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetGCEClient = func() (Storage, error) { if gceClient != nil { return gceClient, nil } ctx := context.Background() cli, err := storage.NewClient(ctx, option.WithCredentialsFile(config.GetGCEServiceKeyFilepath())) if err != nil { return nil, fmt.Errorf("cannot create gce storage client: %w", err) } gceClient = &gceClientImpl{cli: cli} return gceClient, nil }
GetGCEClient ...
View Source
var GetGCETestClient = func() (Storage, error) { return &testGCEClient{}, nil }
GetGCETestClient ...
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.