Documentation
¶
Index ¶
- Constants
- Variables
- func EndpointURL(baseURL, endpoint string) string
- func GetInstallationID(ctx context.Context, gatewayClient propertyClient) (string, error)
- func ServerBaseURL() string
- type CommunityLicenseClient
- type CommunityLicenseIssuer
- type CommunityLicenseRequest
- type Status
- type VersionChecker
- type VersionCheckerOptions
Constants ¶
View Source
const ( DefaultServerBaseURL = "https://upgrade-server.obot.ai" InstallationIDPropertyKey = "installation_id" )
Variables ¶
View Source
var ( ErrCommunityLicenseRequest = errors.New("community license request failed") ErrCommunityLicenseResponse = errors.New("community license response was invalid") )
Functions ¶
func EndpointURL ¶
func GetInstallationID ¶
func ServerBaseURL ¶
func ServerBaseURL() string
Types ¶
type CommunityLicenseClient ¶
type CommunityLicenseClient struct {
// contains filtered or unexported fields
}
func NewCommunityLicenseIssuer ¶
func NewCommunityLicenseIssuer(gatewayClient propertyClient, baseURL string, httpClient *http.Client) *CommunityLicenseClient
func (*CommunityLicenseClient) Issue ¶
func (c *CommunityLicenseClient) Issue(ctx context.Context, request CommunityLicenseRequest) (string, error)
type CommunityLicenseIssuer ¶
type CommunityLicenseIssuer interface {
Issue(context.Context, CommunityLicenseRequest) (string, error)
}
type CommunityLicenseRequest ¶
type VersionChecker ¶ added in v0.26.0
type VersionChecker struct {
// contains filtered or unexported fields
}
func NewVersionChecker ¶ added in v0.26.0
func NewVersionChecker(ctx context.Context, opts VersionCheckerOptions) (*VersionChecker, error)
func (*VersionChecker) Status ¶ added in v0.26.0
func (c *VersionChecker) Status() Status
type VersionCheckerOptions ¶ added in v0.26.0
Click to show internal directories.
Click to hide internal directories.