config

package
v1.9.22-beta003 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdConfigGetUniqueClusterId  executor.Command = "get_unique_cluster_id"
	CmdConfigGetTelemetryEnabled executor.Command = "get_telemetry_enabled"
	CmdConfigGet                 executor.Command = "get"
	CmdConfigUpsert              executor.Command = "upsert"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudRepository

type CloudRepository struct {
	// contains filtered or unexported fields
}

func NewCloudResultRepository

func NewCloudResultRepository(cloudClient cloud.TestKubeCloudAPIClient, apiKey string) *CloudRepository

func (*CloudRepository) Get

func (*CloudRepository) GetTelemetryEnabled

func (r *CloudRepository) GetTelemetryEnabled(ctx context.Context) (ok bool, err error)

func (*CloudRepository) GetUniqueClusterId

func (r *CloudRepository) GetUniqueClusterId(ctx context.Context) (string, error)

func (*CloudRepository) Upsert

func (r *CloudRepository) Upsert(ctx context.Context, config testkube.Config) (testkube.Config, error)

type GetRequest

type GetRequest struct{}

type GetResponse

type GetResponse struct {
	Config testkube.Config `json:"config"`
}

type GetTelemetryEnabledRequest

type GetTelemetryEnabledRequest struct{}

type GetTelemetryEnabledResponse

type GetTelemetryEnabledResponse struct {
	Enabled bool `json:"enabled"`
}

type GetUniqueClusterIdRequest

type GetUniqueClusterIdRequest struct{}

type GetUniqueClusterIdResponse

type GetUniqueClusterIdResponse struct {
	ClusterID string `json:"clusterId"`
}

type UpsertRequest

type UpsertRequest struct {
	Config testkube.Config `json:"config"`
}

type UpsertResponse

type UpsertResponse struct {
	Config testkube.Config `json:"config"`
}

Jump to

Keyboard shortcuts

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