Documentation ¶
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 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 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) }
Click to show internal directories.
Click to hide internal directories.