Skip to content

Commit 94483d2

Browse files
committed
godoc: credentials helper -> credentials-helper
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 4c9fc24 commit 94483d2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

client/client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ const (
2121
var errProgramExited = fmt.Errorf("exited 1")
2222

2323
// mockProgram simulates interactions between the docker client and a remote
24-
// credentials helper.
24+
// credentials-helper.
2525
// Unit tests inject this mocked command into the remote to control execution.
2626
type mockProgram struct {
2727
arg string
2828
input io.Reader
2929
}
3030

31-
// Output returns responses from the remote credentials helper.
31+
// Output returns responses from the remote credentials-helper.
3232
// It mocks those responses based in the input in the mock.
3333
func (m *mockProgram) Output() ([]byte, error) {
3434
in, err := io.ReadAll(m.input)
@@ -80,7 +80,7 @@ func (m *mockProgram) Output() ([]byte, error) {
8080
return []byte(fmt.Sprintf("unknown argument %q with %q", m.arg, inS)), errProgramExited
8181
}
8282

83-
// Input sets the input to send to a remote credentials helper.
83+
// Input sets the input to send to a remote credentials-helper.
8484
func (m *mockProgram) Input(in io.Reader) {
8585
m.input = in
8686
}

client/command.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ func createProgramCmdRedirectErr(commandName string, args []string, env *map[str
3838
return programCmd
3939
}
4040

41-
// Shell invokes shell commands to talk with a remote credentials helper.
41+
// Shell invokes shell commands to talk with a remote credentials-helper.
4242
type Shell struct {
4343
cmd *exec.Cmd
4444
}
4545

46-
// Output returns responses from the remote credentials helper.
46+
// Output returns responses from the remote credentials-helper.
4747
func (s *Shell) Output() ([]byte, error) {
4848
return s.cmd.Output()
4949
}
5050

51-
// Input sets the input to send to a remote credentials helper.
51+
// Input sets the input to send to a remote credentials-helper.
5252
func (s *Shell) Input(in io.Reader) {
5353
s.cmd.Stdin = in
5454
}

credentials/credentials.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func SetCredsLabel(label string) {
4343
CredsLabel = label
4444
}
4545

46-
// Serve initializes the credentials helper and parses the action argument.
46+
// Serve initializes the credentials-helper and parses the action argument.
4747
// This function is designed to be called from a command line interface.
4848
// It uses os.Args[1] as the key for the action.
4949
// It uses os.Stdin as input and os.Stdout as output.

0 commit comments

Comments
 (0)