mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-08 15:02:18 -04:00
go: remove unused parameters
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
822d7823f8
commit
0036b24266
106 changed files with 320 additions and 323 deletions
|
@ -277,11 +277,11 @@ type stubCA struct {
|
|||
getNameErr error
|
||||
}
|
||||
|
||||
func (f stubCA) GetCertificate(csr []byte) ([]byte, error) {
|
||||
func (f stubCA) GetCertificate(_ []byte) ([]byte, error) {
|
||||
return f.cert, f.getCertErr
|
||||
}
|
||||
|
||||
func (f stubCA) GetNodeNameFromCSR(csr []byte) (string, error) {
|
||||
func (f stubCA) GetNodeNameFromCSR(_ []byte) (string, error) {
|
||||
return f.nodeName, f.getNameErr
|
||||
}
|
||||
|
||||
|
@ -297,15 +297,15 @@ type stubKubeClient struct {
|
|||
componentsRef string
|
||||
}
|
||||
|
||||
func (s *stubKubeClient) GetK8sComponentsRefFromNodeVersionCRD(ctx context.Context, nodeName string) (string, error) {
|
||||
func (s *stubKubeClient) GetK8sComponentsRefFromNodeVersionCRD(_ context.Context, _ string) (string, error) {
|
||||
return s.getK8sComponentsRefFromNodeVersionCRDVal, s.getK8sComponentsRefFromNodeVersionCRDErr
|
||||
}
|
||||
|
||||
func (s *stubKubeClient) GetComponents(ctx context.Context, configMapName string) (components.Components, error) {
|
||||
func (s *stubKubeClient) GetComponents(_ context.Context, _ string) (components.Components, error) {
|
||||
return s.getComponentsVal, s.getComponentsErr
|
||||
}
|
||||
|
||||
func (s *stubKubeClient) AddNodeToJoiningNodes(ctx context.Context, nodeName string, componentsRef string, isControlPlane bool) error {
|
||||
func (s *stubKubeClient) AddNodeToJoiningNodes(_ context.Context, nodeName string, componentsRef string, _ bool) error {
|
||||
s.joiningNodeName = nodeName
|
||||
s.componentsRef = componentsRef
|
||||
return s.addNodeToJoiningNodesErr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue