Skip to content

Commit

Permalink
fixup! WIP Secret Source Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Feb 26, 2025
1 parent c31c33a commit 28d7ad0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"go.k6.io/k6/internal/log"
"go.k6.io/k6/secretsource"

_ "go.k6.io/k6/internal/secretsource" //nolint:revive
_ "go.k6.io/k6/internal/secretsource" // import it to register internal secret sources
)

const waitLoggerCloseTimeout = time.Second * 5
Expand Down
1 change: 1 addition & 0 deletions internal/secretsource/file/file.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package file implements secret source that reads the secrets from a file as key=value pairs one per line
package file

import (
Expand Down
6 changes: 3 additions & 3 deletions internal/secretsource/init.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package secretsource registers all the internal secret sources when imported
package secretsource

// TODO(@mstoykov): do we want this? or do we want to have a function like createOutputs?
import (
_ "go.k6.io/k6/internal/secretsource/file" //nolint:revive
_ "go.k6.io/k6/internal/secretsource/mock" //nolint:revive
_ "go.k6.io/k6/internal/secretsource/file" // import them for init
_ "go.k6.io/k6/internal/secretsource/mock" // import them for init
)
1 change: 1 addition & 0 deletions internal/secretsource/mock/mock.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package mock implements a secret source that is just taking secrets on the cli
package mock

import (
Expand Down

0 comments on commit 28d7ad0

Please sign in to comment.