config

package
v1.8.12-beta004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package config is a generated GoMock package.

Index

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) Get

func (c *ConfigMapConfig) Get(ctx context.Context) (result testkube.Config, err error)

Get 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

func (*ConfigMapConfig) Upsert

func (c *ConfigMapConfig) Upsert(ctx context.Context, result testkube.Config) (err error)

Upserts inserts record if not exists, updates otherwise

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) Get

Get mocks base method.

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.

func (*MockRepository) Upsert

func (m *MockRepository) Upsert(ctx context.Context, config testkube.Config) error

Upsert 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL