Fix lint
This commit is contained in:
parent
183c771d4e
commit
741ccfd2ce
@ -36,7 +36,6 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestLoad(t *testing.T) {
|
func TestLoad(t *testing.T) {
|
||||||
|
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
cert string
|
cert string
|
||||||
|
@ -256,7 +256,7 @@ func getAggregatedAPIServerConfig(
|
|||||||
return apiServerConfig, nil
|
return apiServerConfig, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// main returns an error instead of calling plog.Fatal to allow defer statements to run
|
// main returns an error instead of calling plog.Fatal to allow defer statements to run.
|
||||||
func main() error {
|
func main() error {
|
||||||
defer plog.Setup()()
|
defer plog.Setup()()
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ func (c ClientCertIssuers) Name() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c ClientCertIssuers) IssueClientCertPEM(username string, groups []string, ttl time.Duration) ([]byte, []byte, error) {
|
func (c ClientCertIssuers) IssueClientCertPEM(username string, groups []string, ttl time.Duration) ([]byte, []byte, error) {
|
||||||
var errs []error
|
errs := make([]error, 0, len(c))
|
||||||
|
|
||||||
for _, issuer := range c {
|
for _, issuer := range c {
|
||||||
certPEM, keyPEM, err := issuer.IssueClientCertPEM(username, groups, ttl)
|
certPEM, keyPEM, err := issuer.IssueClientCertPEM(username, groups, ttl)
|
||||||
|
@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"go.pinniped.dev/internal/mocks/issuermocks"
|
"go.pinniped.dev/internal/mocks/issuermocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -70,17 +70,17 @@ func (p *FederationDomainIssuer) validate() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Issuer returns the issuer
|
// Issuer returns the issuer.
|
||||||
func (p *FederationDomainIssuer) Issuer() string {
|
func (p *FederationDomainIssuer) Issuer() string {
|
||||||
return p.issuer
|
return p.issuer
|
||||||
}
|
}
|
||||||
|
|
||||||
// IssuerHost returns the issuerHost
|
// IssuerHost returns the issuerHost.
|
||||||
func (p *FederationDomainIssuer) IssuerHost() string {
|
func (p *FederationDomainIssuer) IssuerHost() string {
|
||||||
return p.issuerHost
|
return p.issuerHost
|
||||||
}
|
}
|
||||||
|
|
||||||
// IssuerPath returns the issuerPath
|
// IssuerPath returns the issuerPath.
|
||||||
func (p *FederationDomainIssuer) IssuerPath() string {
|
func (p *FederationDomainIssuer) IssuerPath() string {
|
||||||
return p.issuerPath
|
return p.issuerPath
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user