refactor: fix typos.

refactor: typo in whitelister file name.
This commit is contained in:
Fernandez Ludovic 2017-06-01 22:10:19 +02:00 committed by Ludovic Fernandez
parent 18d11e02d0
commit 63f9bccf9f
6 changed files with 8 additions and 8 deletions

View file

@ -33,7 +33,7 @@ type ChallengeCert struct {
certificate *tls.Certificate certificate *tls.Certificate
} }
// Init inits acccount struct // Init inits account struct
func (a *Account) Init() error { func (a *Account) Init() error {
err := a.DomainsCertificate.Init() err := a.DomainsCertificate.Init()
if err != nil { if err != nil {

View file

@ -54,7 +54,7 @@ func (l *Leadership) Participate(pool *safe.Pool) {
}) })
} }
// AddListener adds a leadership listerner // AddListener adds a leadership listener
func (l *Leadership) AddListener(listener LeaderListener) { func (l *Leadership) AddListener(listener LeaderListener) {
l.listeners = append(l.listeners, listener) l.listeners = append(l.listeners, listener)
} }

View file

@ -12,7 +12,7 @@ import (
"github.com/containous/traefik/types" "github.com/containous/traefik/types"
) )
type mockDynamoDBCLient struct { type mockDynamoDBClient struct {
dynamodbiface.DynamoDBAPI dynamodbiface.DynamoDBAPI
testWithError bool testWithError bool
} }
@ -40,7 +40,7 @@ var frontend = &types.Frontend{
// ScanPages simulates a call to ScanPages (see https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/#DynamoDB.ScanPages) // ScanPages simulates a call to ScanPages (see https://docs.aws.amazon.com/sdk-for-go/api/service/dynamodb/#DynamoDB.ScanPages)
// by running the fn function twice and returning an item each time. // by running the fn function twice and returning an item each time.
func (m *mockDynamoDBCLient) ScanPages(input *dynamodb.ScanInput, fn func(*dynamodb.ScanOutput, bool) bool) error { func (m *mockDynamoDBClient) ScanPages(input *dynamodb.ScanInput, fn func(*dynamodb.ScanOutput, bool) bool) error {
if m.testWithError { if m.testWithError {
return errors.New("fake error") return errors.New("fake error")
} }
@ -86,7 +86,7 @@ func (m *mockDynamoDBCLient) ScanPages(input *dynamodb.ScanInput, fn func(*dynam
func TestLoadDynamoConfigSuccessful(t *testing.T) { func TestLoadDynamoConfigSuccessful(t *testing.T) {
dbiface := &dynamoClient{ dbiface := &dynamoClient{
db: &mockDynamoDBCLient{ db: &mockDynamoDBClient{
testWithError: false, testWithError: false,
}, },
} }
@ -110,7 +110,7 @@ func TestLoadDynamoConfigSuccessful(t *testing.T) {
func TestLoadDynamoConfigFailure(t *testing.T) { func TestLoadDynamoConfigFailure(t *testing.T) {
dbiface := &dynamoClient{ dbiface := &dynamoClient{
db: &mockDynamoDBCLient{ db: &mockDynamoDBClient{
testWithError: true, testWithError: true,
}, },
} }

View file

@ -36,7 +36,7 @@ func TestSplitAndTrimString(t *testing.T) {
input: " foo ,, bar ", input: " foo ,, bar ",
expected: []string{"foo", "bar"}, expected: []string{"foo", "bar"},
}, { }, {
desc: "consecutive commas with witespace", desc: "consecutive commas with whitespace",
input: " foo , , bar ", input: " foo , , bar ",
expected: []string{"foo", "bar"}, expected: []string{"foo", "bar"},
}, { }, {

View file

@ -419,7 +419,7 @@ func NewTraefikDefaultPointersConfiguration() *TraefikConfiguration {
defaultBoltDb.Prefix = "/traefik" defaultBoltDb.Prefix = "/traefik"
defaultBoltDb.Constraints = types.Constraints{} defaultBoltDb.Constraints = types.Constraints{}
//default Provider //default Kubernetes
var defaultKubernetes kubernetes.Provider var defaultKubernetes kubernetes.Provider
defaultKubernetes.Watch = true defaultKubernetes.Watch = true
defaultKubernetes.Endpoint = "" defaultKubernetes.Endpoint = ""