upgrade

package
v0.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 EndpointURL(baseURL, endpoint string) string

func GetInstallationID

func GetInstallationID(ctx context.Context, gatewayClient propertyClient) (string, error)

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

type CommunityLicenseIssuer

type CommunityLicenseIssuer interface {
	Issue(context.Context, CommunityLicenseRequest) (string, error)
}

type CommunityLicenseRequest

type CommunityLicenseRequest struct {
	Name           string `json:"name"`
	Email          string `json:"email"`
	Company        string `json:"company,omitempty"`
	InstallationID string `json:"installationId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL