Documentation ¶
Index ¶
- Constants
- type CloudRepository
- func (r *CloudRepository) Get(ctx context.Context) (testkube.Config, error)
- func (r *CloudRepository) GetTelemetryEnabled(ctx context.Context) (ok bool, err error)
- func (r *CloudRepository) GetUniqueClusterId(ctx context.Context) (string, error)
- func (r *CloudRepository) Upsert(ctx context.Context, config testkube.Config) (testkube.Config, error)
- type GetRequest
- type GetResponse
- type GetTelemetryEnabledRequest
- type GetTelemetryEnabledResponse
- type GetUniqueClusterIdRequest
- type GetUniqueClusterIdResponse
- type UpsertRequest
- type UpsertResponse
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" CmdConfigGetOrganizationPlan executor.Command = "get_org_plan" )
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, grpcConn *grpc.ClientConn, apiKey string) *CloudRepository
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)
type GetRequest ¶
type GetRequest struct{}
type GetResponse ¶
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 UpsertResponse ¶
Click to show internal directories.
Click to hide internal directories.