Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AgileClient = sync.OnceValue[*agile.Client](func() *agile.Client { host, mail, token := loadAtlassianCredentials() instance, err := agile.New(nil, host) if err != nil { log.Fatal(errors.WithMessage(err, "failed to create agile client")) } instance.Auth.SetBasicAuth(mail, token) return instance })
View Source
var ConfluenceClient = sync.OnceValue[*confluence.Client](func() *confluence.Client { host, mail, token := loadAtlassianCredentials() instance, err := confluence.New(nil, host) if err != nil { log.Fatal(errors.WithMessage(err, "failed to create confluence client")) } instance.Auth.SetBasicAuth(mail, token) return instance })
View Source
var DefaultHttpClient = sync.OnceValue(func() *http.Client { transport := &http.Transport{} proxyURL := os.Getenv("PROXY_URL") if proxyURL != "" { proxy, err := url.Parse(proxyURL) if err != nil { panic(fmt.Sprintf("Failed to parse PROXY_URL: %v", err)) } transport.Proxy = http.ProxyURL(proxy) transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} } return &http.Client{Transport: transport} })
View Source
var JiraClient = sync.OnceValue[*jira.Client](func() *jira.Client { host, mail, token := loadAtlassianCredentials() if host == "" || mail == "" || token == "" { log.Fatal("ATLASSIAN_HOST, ATLASSIAN_EMAIL, ATLASSIAN_TOKEN are required") } instance, err := jira.New(nil, host) if err != nil { log.Fatal(errors.WithMessage(err, "failed to create jira client")) } instance.Auth.SetBasicAuth(mail, token) return instance })
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.