Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2023 Changes in this version + type AdminService struct + func NewAdminService(l log.Logger, addr string, serviceToken string) (AdminService, error) + func (r AdminService) PageAPIKeys(ctx context.Context, input PageAPIKeysInput) (PageAPIKeysResult, error) + func (r AdminService) PageTargets(ctx context.Context, input PageTargetsInput) (PageTargetsResult, error) + type ClientService struct + func NewClientService(l log.Logger, addr string) (ClientService, error) + func (c ClientService) Authenticate(ctx context.Context, apiKey string, target domain.Target) (string, error) + type MetricService struct + func NewMetricService(l log.Logger, addr string, accountID string, tokens map[string]string, ...) (MetricService, error) + func (m MetricService) SendMetrics(ctx context.Context, clusterIdentifier string) + func (m MetricService) StoreMetrics(ctx context.Context, req domain.MetricsRequest) error + type PageAPIKeysInput struct + AccountIdentifier string + EnvironmentIdentifier string + OrgIdentifier string + PageNumber int + PageSize int + ProjectIdentifier string + type PageAPIKeysResult struct + APIKeys []admingen.ApiKey + Finished bool + type PageTargetsInput struct + AccountIdentifier string + EnvironmentIdentifier string + OrgIdentifier string + PageNumber int + PageSize int + ProjectIdentifier string + type PageTargetsResult struct + Finished bool + Targets []admingen.Target