Skip to content

Commit 9052da6

Browse files
author
Ivan Bertona
committed
Fix linter, tidy go.mod file.
1 parent 4b47373 commit 9052da6

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

ca/identity/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (c *Client) ResolveReference(ref *url.URL) *url.URL {
2323
return c.CaURL.ResolveReference(ref)
2424
}
2525

26-
// LoadStepClient configures an http.Client with the root in
26+
// LoadClient configures an http.Client with the root in
2727
// $STEPPATH/config/defaults.json and the identity defined in
2828
// $STEPPATH/config/identity.json
2929
func LoadClient() (*Client, error) {

ca/provisioner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func (p *Provisioner) Token(subject string, sans ...string) (string, error) {
118118
return tok.SignedString(p.jwk.Algorithm, p.jwk.Key)
119119
}
120120

121+
// SSHToken generates a SSH token.
121122
func (p *Provisioner) SSHToken(certType, keyID string, principals []string) (string, error) {
122123
jwtID, err := randutil.Hex(64)
123124
if err != nil {

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.13
44

55
require (
66
github.com/Masterminds/sprig/v3 v3.0.0
7-
github.com/davecgh/go-spew v1.1.1
87
github.com/go-chi/chi v4.0.2+incompatible
98
github.com/newrelic/go-agent v2.15.0+incompatible
109
github.com/pkg/errors v0.8.1

templates/values.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type Step struct {
99
SSH StepSSH
1010
}
1111

12+
// StepSSH holds SSH-related values for the CA.
1213
type StepSSH struct {
1314
HostKey ssh.PublicKey
1415
UserKey ssh.PublicKey

0 commit comments

Comments
 (0)