@@ -11,7 +11,7 @@ import (
11
11
"golang.org/x/time/rate"
12
12
13
13
"github.com/trufflesecurity/trufflehog/v3/pkg/common"
14
- "github.com/trufflesecurity/trufflehog/v3/pkg/context"
14
+ trContext "github.com/trufflesecurity/trufflehog/v3/pkg/context"
15
15
"github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb"
16
16
)
17
17
@@ -258,7 +258,7 @@ func checkResponseStatus(r *http.Response) error {
258
258
}
259
259
260
260
// getPostmanResponseBodyBytes makes a request to the Postman API and returns the response body as bytes.
261
- func (c * Client ) getPostmanResponseBodyBytes (ctx context .Context , urlString string , headers map [string ]string ) ([]byte , error ) {
261
+ func (c * Client ) getPostmanResponseBodyBytes (ctx trContext .Context , urlString string , headers map [string ]string ) ([]byte , error ) {
262
262
req , err := c .NewRequest (urlString , headers )
263
263
if err != nil {
264
264
return nil , err
@@ -305,7 +305,7 @@ func (c *Client) getPostmanResponseBodyBytes(ctx context.Context, urlString stri
305
305
306
306
// EnumerateWorkspaces returns the workspaces for a given user (both private, public, team and personal).
307
307
// Consider adding additional flags to support filtering.
308
- func (c * Client ) EnumerateWorkspaces (ctx context .Context ) ([]Workspace , error ) {
308
+ func (c * Client ) EnumerateWorkspaces (ctx trContext .Context ) ([]Workspace , error ) {
309
309
ctx .Logger ().V (2 ).Info ("enumerating workspaces" )
310
310
workspacesObj := struct {
311
311
Workspaces []Workspace `json:"workspaces"`
@@ -339,7 +339,7 @@ func (c *Client) EnumerateWorkspaces(ctx context.Context) ([]Workspace, error) {
339
339
}
340
340
341
341
// GetWorkspace returns the workspace for a given workspace
342
- func (c * Client ) GetWorkspace (ctx context .Context , workspaceUUID string ) (Workspace , error ) {
342
+ func (c * Client ) GetWorkspace (ctx trContext .Context , workspaceUUID string ) (Workspace , error ) {
343
343
ctx .Logger ().V (2 ).Info ("getting workspace" , "workspace" , workspaceUUID )
344
344
obj := struct {
345
345
Workspace Workspace `json:"workspace"`
@@ -361,7 +361,7 @@ func (c *Client) GetWorkspace(ctx context.Context, workspaceUUID string) (Worksp
361
361
}
362
362
363
363
// GetEnvironmentVariables returns the environment variables for a given environment
364
- func (c * Client ) GetEnvironmentVariables (ctx context .Context , environment_uuid string ) (VariableData , error ) {
364
+ func (c * Client ) GetEnvironmentVariables (ctx trContext .Context , environment_uuid string ) (VariableData , error ) {
365
365
ctx .Logger ().V (3 ).Info ("getting environment variables" , "environment_uuid" , environment_uuid )
366
366
obj := struct {
367
367
VariableData VariableData `json:"environment"`
@@ -383,7 +383,7 @@ func (c *Client) GetEnvironmentVariables(ctx context.Context, environment_uuid s
383
383
}
384
384
385
385
// GetCollection returns the collection for a given collection
386
- func (c * Client ) GetCollection (ctx context .Context , collection_uuid string ) (Collection , error ) {
386
+ func (c * Client ) GetCollection (ctx trContext .Context , collection_uuid string ) (Collection , error ) {
387
387
ctx .Logger ().V (3 ).Info ("getting collection" , "collection_uuid" , collection_uuid )
388
388
obj := struct {
389
389
Collection Collection `json:"collection"`
0 commit comments