2023-01-17 23:54:16 +00:00
|
|
|
// Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
|
2020-12-14 15:36:45 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: go.pinniped.dev/internal/controller/supervisorconfig/generator (interfaces: SecretHelper)
|
|
|
|
|
|
|
|
// Package mocksecrethelper is a generated GoMock package.
|
|
|
|
package mocksecrethelper
|
|
|
|
|
|
|
|
import (
|
2021-01-07 22:58:09 +00:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-12-14 15:36:45 +00:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2021-03-01 16:08:57 +00:00
|
|
|
v1alpha1 "go.pinniped.dev/generated/latest/apis/supervisor/config/v1alpha1"
|
2020-12-18 22:55:05 +00:00
|
|
|
v1 "k8s.io/api/core/v1"
|
|
|
|
v10 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
2020-12-14 15:36:45 +00:00
|
|
|
)
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// MockSecretHelper is a mock of SecretHelper interface.
|
2020-12-14 15:36:45 +00:00
|
|
|
type MockSecretHelper struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockSecretHelperMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// MockSecretHelperMockRecorder is the mock recorder for MockSecretHelper.
|
2020-12-14 15:36:45 +00:00
|
|
|
type MockSecretHelperMockRecorder struct {
|
|
|
|
mock *MockSecretHelper
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// NewMockSecretHelper creates a new mock instance.
|
2020-12-14 15:36:45 +00:00
|
|
|
func NewMockSecretHelper(ctrl *gomock.Controller) *MockSecretHelper {
|
|
|
|
mock := &MockSecretHelper{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockSecretHelperMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-12-14 15:36:45 +00:00
|
|
|
func (m *MockSecretHelper) EXPECT() *MockSecretHelperMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// Generate mocks base method.
|
2020-12-16 22:27:09 +00:00
|
|
|
func (m *MockSecretHelper) Generate(arg0 *v1alpha1.FederationDomain) (*v1.Secret, error) {
|
2020-12-14 15:36:45 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Generate", arg0)
|
|
|
|
ret0, _ := ret[0].(*v1.Secret)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// Generate indicates an expected call of Generate.
|
2020-12-14 15:36:45 +00:00
|
|
|
func (mr *MockSecretHelperMockRecorder) Generate(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generate", reflect.TypeOf((*MockSecretHelper)(nil).Generate), arg0)
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// Handles mocks base method.
|
2020-12-18 22:55:05 +00:00
|
|
|
func (m *MockSecretHelper) Handles(arg0 v10.Object) bool {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Handles", arg0)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// Handles indicates an expected call of Handles.
|
2020-12-18 22:55:05 +00:00
|
|
|
func (mr *MockSecretHelperMockRecorder) Handles(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handles", reflect.TypeOf((*MockSecretHelper)(nil).Handles), arg0)
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// IsValid mocks base method.
|
2020-12-16 22:27:09 +00:00
|
|
|
func (m *MockSecretHelper) IsValid(arg0 *v1alpha1.FederationDomain, arg1 *v1.Secret) bool {
|
2020-12-14 15:36:45 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "IsValid", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// IsValid indicates an expected call of IsValid.
|
2020-12-14 15:36:45 +00:00
|
|
|
func (mr *MockSecretHelperMockRecorder) IsValid(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValid", reflect.TypeOf((*MockSecretHelper)(nil).IsValid), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// NamePrefix mocks base method.
|
2020-12-15 02:36:56 +00:00
|
|
|
func (m *MockSecretHelper) NamePrefix() string {
|
2020-12-14 15:36:45 +00:00
|
|
|
m.ctrl.T.Helper()
|
2020-12-15 02:36:56 +00:00
|
|
|
ret := m.ctrl.Call(m, "NamePrefix")
|
2020-12-14 15:36:45 +00:00
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// NamePrefix indicates an expected call of NamePrefix.
|
2020-12-15 02:36:56 +00:00
|
|
|
func (mr *MockSecretHelperMockRecorder) NamePrefix() *gomock.Call {
|
2020-12-14 15:36:45 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2020-12-15 02:36:56 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamePrefix", reflect.TypeOf((*MockSecretHelper)(nil).NamePrefix))
|
2020-12-14 15:36:45 +00:00
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// ObserveActiveSecretAndUpdateParentFederationDomain mocks base method.
|
2020-12-16 22:27:09 +00:00
|
|
|
func (m *MockSecretHelper) ObserveActiveSecretAndUpdateParentFederationDomain(arg0 *v1alpha1.FederationDomain, arg1 *v1.Secret) *v1alpha1.FederationDomain {
|
2020-12-14 15:36:45 +00:00
|
|
|
m.ctrl.T.Helper()
|
2020-12-16 22:27:09 +00:00
|
|
|
ret := m.ctrl.Call(m, "ObserveActiveSecretAndUpdateParentFederationDomain", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*v1alpha1.FederationDomain)
|
2020-12-15 14:13:01 +00:00
|
|
|
return ret0
|
2020-12-14 15:36:45 +00:00
|
|
|
}
|
|
|
|
|
2021-03-01 16:08:57 +00:00
|
|
|
// ObserveActiveSecretAndUpdateParentFederationDomain indicates an expected call of ObserveActiveSecretAndUpdateParentFederationDomain.
|
2020-12-16 22:27:09 +00:00
|
|
|
func (mr *MockSecretHelperMockRecorder) ObserveActiveSecretAndUpdateParentFederationDomain(arg0, arg1 interface{}) *gomock.Call {
|
2020-12-14 15:36:45 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2020-12-16 22:27:09 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObserveActiveSecretAndUpdateParentFederationDomain", reflect.TypeOf((*MockSecretHelper)(nil).ObserveActiveSecretAndUpdateParentFederationDomain), arg0, arg1)
|
2020-12-14 15:36:45 +00:00
|
|
|
}
|