diff --git a/client/client_test.go b/client/client_test.go index 322d7f0..a7fad8b 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -21,14 +21,14 @@ const ( var errProgramExited = fmt.Errorf("exited 1") // mockProgram simulates interactions between the docker client and a remote -// credentials helper. +// credentials-helper. // Unit tests inject this mocked command into the remote to control execution. type mockProgram struct { arg string input io.Reader } -// Output returns responses from the remote credentials helper. +// Output returns responses from the remote credentials-helper. // It mocks those responses based in the input in the mock. func (m *mockProgram) Output() ([]byte, error) { in, err := io.ReadAll(m.input) @@ -80,7 +80,7 @@ func (m *mockProgram) Output() ([]byte, error) { return []byte(fmt.Sprintf("unknown argument %q with %q", m.arg, inS)), errProgramExited } -// Input sets the input to send to a remote credentials helper. +// Input sets the input to send to a remote credentials-helper. func (m *mockProgram) Input(in io.Reader) { m.input = in } diff --git a/client/command.go b/client/command.go index 0794d31..1936234 100644 --- a/client/command.go +++ b/client/command.go @@ -38,17 +38,17 @@ func createProgramCmdRedirectErr(commandName string, args []string, env *map[str return programCmd } -// Shell invokes shell commands to talk with a remote credentials helper. +// Shell invokes shell commands to talk with a remote credentials-helper. type Shell struct { cmd *exec.Cmd } -// Output returns responses from the remote credentials helper. +// Output returns responses from the remote credentials-helper. func (s *Shell) Output() ([]byte, error) { return s.cmd.Output() } -// Input sets the input to send to a remote credentials helper. +// Input sets the input to send to a remote credentials-helper. func (s *Shell) Input(in io.Reader) { s.cmd.Stdin = in } diff --git a/credentials/credentials.go b/credentials/credentials.go index 91d9d4b..7bb0495 100644 --- a/credentials/credentials.go +++ b/credentials/credentials.go @@ -43,7 +43,7 @@ func SetCredsLabel(label string) { CredsLabel = label } -// Serve initializes the credentials helper and parses the action argument. +// Serve initializes the credentials-helper and parses the action argument. // This function is designed to be called from a command line interface. // It uses os.Args[1] as the key for the action. // It uses os.Stdin as input and os.Stdout as output.