Skip to content

Commit 3ad5e9e

Browse files
author
Cecile Robert-Michon
committed
💎 Refactor scale sets service spec
1 parent cb9b07f commit 3ad5e9e

28 files changed

+2321
-1868
lines changed

cloud/fake_interfaces.go

Lines changed: 0 additions & 111 deletions
This file was deleted.

cloud/interfaces.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ type OldService interface {
3838
Delete(ctx context.Context, spec interface{}) error
3939
}
4040

41-
// GetterService is a temporary interface used by components which still require Get methods.
42-
// Once all components move to storing provider information within the relevant
43-
// Cluster/Machine specs, this interface should be removed.
44-
type GetterService interface {
45-
Get(ctx context.Context, spec interface{}) (interface{}, error)
46-
}
47-
4841
// CredentialGetter is a Service which knows how to retrieve credentials for an Azure
4942
// resource in a resource group.
5043
type CredentialGetter interface {

cloud/mocks/doc.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
Copyright 2019 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// Run go generate to regenerate this mock.
18+
//go:generate ../../hack/tools/bin/mockgen -destination service_mock.go -package mocks -source ../interfaces.go Service
19+
//go:generate /usr/bin/env bash -c "cat ../../hack/boilerplate/boilerplate.generatego.txt service_mock.go > _service_mock.go && mv _service_mock.go service_mock.go"
20+
package mocks //nolint

0 commit comments

Comments
 (0)