config

package
v1.5.32 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

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 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) (testkube.Config, error)
}

Jump to

Keyboard shortcuts

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