Documentation ¶
Overview ¶
Package config is a generated GoMock package.
Index ¶
- type ConfigMapConfig
- func (c *ConfigMapConfig) Get(ctx context.Context) (result testkube.Config, err error)
- func (c *ConfigMapConfig) GetTelemetryEnabled(ctx context.Context) (ok bool, err error)
- func (c *ConfigMapConfig) GetUniqueClusterId(ctx context.Context) (clusterId string, err error)
- func (c *ConfigMapConfig) Upsert(ctx context.Context, result testkube.Config) (err error)
- type MockRepository
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context) (testkube.Config, error)
- func (m *MockRepository) GetTelemetryEnabled(ctx context.Context) (bool, error)
- func (m *MockRepository) GetUniqueClusterId(ctx context.Context) (string, error)
- func (m *MockRepository) Upsert(ctx context.Context, config testkube.Config) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Get(ctx interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetTelemetryEnabled(ctx interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetUniqueClusterId(ctx interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Upsert(ctx, config interface{}) *gomock.Call
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapConfig ¶
type ConfigMapConfig struct {
// contains filtered or unexported fields
}
ConfigMapConfig contains configmap config properties
func NewConfigMapConfig ¶
func NewConfigMapConfig(name, namespace string) (*ConfigMapConfig, error)
NewConfigMapConfig is a constructor for configmap config
func (*ConfigMapConfig) GetTelemetryEnabled ¶
func (c *ConfigMapConfig) GetTelemetryEnabled(ctx context.Context) (ok bool, err error)
GetTelemetryEnabled get telemetry enabled
func (*ConfigMapConfig) GetUniqueClusterId ¶
func (c *ConfigMapConfig) GetUniqueClusterId(ctx context.Context) (clusterId string, err error)
GetUniqueClusterId gets unique cluster based ID
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetTelemetryEnabled ¶
func (m *MockRepository) GetTelemetryEnabled(ctx context.Context) (bool, error)
GetTelemetryEnabled mocks base method.
func (*MockRepository) GetUniqueClusterId ¶
func (m *MockRepository) GetUniqueClusterId(ctx context.Context) (string, error)
GetUniqueClusterId mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetTelemetryEnabled ¶
func (mr *MockRepositoryMockRecorder) GetTelemetryEnabled(ctx interface{}) *gomock.Call
GetTelemetryEnabled indicates an expected call of GetTelemetryEnabled.
func (*MockRepositoryMockRecorder) GetUniqueClusterId ¶
func (mr *MockRepositoryMockRecorder) GetUniqueClusterId(ctx interface{}) *gomock.Call
GetUniqueClusterId indicates an expected call of GetUniqueClusterId.
func (*MockRepositoryMockRecorder) Upsert ¶
func (mr *MockRepositoryMockRecorder) Upsert(ctx, config interface{}) *gomock.Call
Upsert indicates an expected call of Upsert.
type Repository ¶
type Repository interface { // GetUniqueClusterId gets unique cluster based ID GetUniqueClusterId(ctx context.Context) (string, error) // GetTelemetryEnabled get telemetry enabled GetTelemetryEnabled(ctx context.Context) (ok bool, err error) // Get gets execution result by id Get(ctx context.Context) (testkube.Config, error) // Upserts inserts record if not exists, updates otherwise Upsert(ctx context.Context, config testkube.Config) error }