Documentation ¶
Index ¶
- Variables
- func GetAPIClient(cliConfig Config) *openapi.APIClient
- func GetConfigurationPath() (string, error)
- func GetTokenClaims(tokenString string) (jwt.MapClaims, error)
- func GetVersion(ctx context.Context, cfg Config) (string, bool)
- func ParseServerURL(serverURL string) (scheme, endpoint, serverPath string, err error)
- func Save(config Config) error
- func SetupHttpClient(cfg Config) *resourcemanager.HTTPClient
- func ValidateServerURL(serverURL string) error
- type Config
- type Configurator
- type Entry
- type ListArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Env = "dev" DefaultCloudEndpoint = "http://app.tracetest.io" DefaultCloudDomain = "tracetest.io" DefaultCloudPath = "/" )
Functions ¶
func GetAPIClient ¶
func GetConfigurationPath ¶
func ParseServerURL ¶
func SetupHttpClient ¶
func SetupHttpClient(cfg Config) *resourcemanager.HTTPClient
func ValidateServerURL ¶
Types ¶
type Config ¶
type Config struct { Scheme string `yaml:"scheme"` Endpoint string `yaml:"endpoint"` ServerPath string `yaml:"serverPath,omitempty"` OrganizationID string `yaml:"organizationID,omitempty"` EnvironmentID string `yaml:"environmentID,omitempty"` Token string `yaml:"token,omitempty"` Jwt string `yaml:"jwt,omitempty"` AgentApiKey string `yaml:"-"` EndpointOverriden bool `yaml:"-"` // cloud config CloudAPIEndpoint string `yaml:"-"` AgentEndpoint string `yaml:"agentEndpoint,omitempty"` UIEndpoint string `yaml:"uIEndpoint,omitempty"` }
func LoadConfig ¶
func (Config) OAuthEndpoint ¶ added in v0.15.6
type Configurator ¶
type Configurator struct {
// contains filtered or unexported fields
}
func NewConfigurator ¶
func NewConfigurator(resources *resourcemanager.Registry) Configurator
func (Configurator) ShowOrganizationSelector ¶
func (c Configurator) ShowOrganizationSelector(ctx context.Context, cfg Config, flags agentConfig.Flags)
func (Configurator) Start ¶
func (c Configurator) Start(ctx context.Context, prev *Config, flags agentConfig.Flags) error
func (Configurator) WithOnFinish ¶
func (c Configurator) WithOnFinish(onFinish onFinishFn) Configurator
Click to show internal directories.
Click to hide internal directories.