Documentation ¶
Overview ¶
Package data is a generated GoMock package.
Index ¶
- Variables
- func InitDB(drv dialect.Driver, logger mlog.Logger, slogLogEnabled bool, ...) (*ent.Client, error)
- func NewSqliteDB() (*ent.Client, error)
- func OpenDB(config *config.Config) (*sql.Driver, error)
- type Data
- type FanOutInterface
- type FanOutType
- type K8sClient
- type MockData
- func (m *MockData) Config() *config.Config
- func (m *MockData) DB() *ent.Client
- func (m *MockData) EXPECT() *MockDataMockRecorder
- func (m *MockData) InitDB() (func() error, error)
- func (m *MockData) InitK8s(arg0 <-chan struct{}) error
- func (m *MockData) InitOidcProvider()
- func (m *MockData) InitS3() error
- func (m *MockData) K8sClient() *K8sClient
- func (m *MockData) MinioCli() *minio.Client
- func (m *MockData) OidcConfig() OidcConfig
- func (m *MockData) WithTx(arg0 context.Context, arg1 func(*ent.Tx) error) error
- type MockDataMockRecorder
- func (mr *MockDataMockRecorder) Config() *gomock.Call
- func (mr *MockDataMockRecorder) DB() *gomock.Call
- func (mr *MockDataMockRecorder) InitDB() *gomock.Call
- func (mr *MockDataMockRecorder) InitK8s(arg0 any) *gomock.Call
- func (mr *MockDataMockRecorder) InitOidcProvider() *gomock.Call
- func (mr *MockDataMockRecorder) InitS3() *gomock.Call
- func (mr *MockDataMockRecorder) K8sClient() *gomock.Call
- func (mr *MockDataMockRecorder) MinioCli() *gomock.Call
- func (mr *MockDataMockRecorder) OidcConfig() *gomock.Call
- func (mr *MockDataMockRecorder) WithTx(arg0, arg1 any) *gomock.Call
- type NewDataParams
- type Obj
- type OidcConfig
- type OidcConfigItem
- type Startable
Constants ¶
This section is empty.
Variables ¶
var WireData = wire.NewSet(NewData)
Functions ¶
func NewSqliteDB ¶
Types ¶
type Data ¶
type Data interface { Config() *config.Config DB() *ent.Client MinioCli() *minio.Client K8sClient() *K8sClient OidcConfig() OidcConfig InitDB() (func() error, error) InitS3() error InitK8s(ch <-chan struct{}) (err error) InitOidcProvider() WithTx(ctx context.Context, fn func(tx *ent.Tx) error) error }
func NewDataImpl ¶
func NewDataImpl(input *NewDataParams) Data
type FanOutInterface ¶
type K8sClient ¶
type K8sClient struct { GatewayApiInstalled bool HTTPRouteLister gatewaylisterv1.HTTPRouteLister Client kubernetes.Interface MetricsClient versioned.Interface RestConfig *restclient.Config PodInformer cache.SharedIndexInformer PodLister v1.PodLister SecretInformer cache.SharedIndexInformer SecretLister v1.SecretLister ReplicaSetLister appsv1.ReplicaSetLister ServiceLister v1.ServiceLister IngressLister networkingv1.IngressLister EventInformer cache.SharedIndexInformer EventFanOut FanOutInterface[*eventsv1.Event] PodFanOut FanOutInterface[*corev1.Pod] EventLister eventsv1lister.EventLister // contains filtered or unexported fields }
type MockData ¶
type MockData struct {
// contains filtered or unexported fields
}
MockData is a mock of Data interface.
func NewMockData ¶
func NewMockData(ctrl *gomock.Controller) *MockData
NewMockData creates a new mock instance.
func (*MockData) EXPECT ¶
func (m *MockData) EXPECT() *MockDataMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockData) InitOidcProvider ¶
func (m *MockData) InitOidcProvider()
InitOidcProvider mocks base method.
func (*MockData) OidcConfig ¶
func (m *MockData) OidcConfig() OidcConfig
OidcConfig mocks base method.
type MockDataMockRecorder ¶
type MockDataMockRecorder struct {
// contains filtered or unexported fields
}
MockDataMockRecorder is the mock recorder for MockData.
func (*MockDataMockRecorder) Config ¶
func (mr *MockDataMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockDataMockRecorder) DB ¶
func (mr *MockDataMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.
func (*MockDataMockRecorder) InitDB ¶
func (mr *MockDataMockRecorder) InitDB() *gomock.Call
InitDB indicates an expected call of InitDB.
func (*MockDataMockRecorder) InitK8s ¶
func (mr *MockDataMockRecorder) InitK8s(arg0 any) *gomock.Call
InitK8s indicates an expected call of InitK8s.
func (*MockDataMockRecorder) InitOidcProvider ¶
func (mr *MockDataMockRecorder) InitOidcProvider() *gomock.Call
InitOidcProvider indicates an expected call of InitOidcProvider.
func (*MockDataMockRecorder) InitS3 ¶
func (mr *MockDataMockRecorder) InitS3() *gomock.Call
InitS3 indicates an expected call of InitS3.
func (*MockDataMockRecorder) K8sClient ¶
func (mr *MockDataMockRecorder) K8sClient() *gomock.Call
K8sClient indicates an expected call of K8sClient.
func (*MockDataMockRecorder) MinioCli ¶
func (mr *MockDataMockRecorder) MinioCli() *gomock.Call
MinioCli indicates an expected call of MinioCli.
func (*MockDataMockRecorder) OidcConfig ¶
func (mr *MockDataMockRecorder) OidcConfig() *gomock.Call
OidcConfig indicates an expected call of OidcConfig.
type NewDataParams ¶
type Obj ¶
type Obj[T runtime2.Object] interface { Type() FanOutType Old() T Current() T }
type OidcConfig ¶
type OidcConfig map[string]OidcConfigItem