Versions in this module Expand all Collapse all v0 v0.9.0 May 19, 2025 Changes in this version + type ClientOptions struct + AuthToken string + CaCertPaths string + ConfigPath string + Context string + InsecureTLS bool + ServerAddr string + Verbose bool + type HeaderDTO struct + Name string + Values string + type KeycloakClient interface + ConnectAndGetToken func() (string, error) + ConnectAndGetTokenAndRefreshToken func(string, string) (string, string, error) + GetOIDCConfig func() (*oauth2.Config, error) + func NewKeycloakClient(realmURL string, username string, password string) KeycloakClient + type MicrocksClient interface + CreateTestResult func(serviceID string, testEndpoint string, runnerType string, secretName string, ...) (string, error) + DownloadArtifact func(artifactURL string, mainArtifact bool, secret string) (string, error) + GetKeycloakURL func() (string, error) + GetTestResult func(testResultID string) (*TestResultSummary, error) + HttpClient func() *http.Client + SetOAuthToken func(oauthToken string) + UploadArtifact func(specificationFilePath string, mainArtifact bool) (string, error) + func NewClient(opts ClientOptions) (MicrocksClient, error) + func NewMicrocksClient(apiURL string) MicrocksClient + type OAuth2ClientContext struct + ClientId string + ClientSecret string + GrantType string + Password string + RefreshToken string + Scopes string + TokenURI string + Username string + type TestResultSummary struct + ElapsedTime int32 + ID string + InProgress bool + ServiceID string + Success bool + TestDate int64 + TestNumber int32 + TestedEndpoint string + Version int32