upgrade

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 16 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"`
}

type Status added in v0.26.0

type Status struct {
	UpgradeAvailable bool
	LatestVersion    string
}

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

type VersionCheckerOptions struct {
	GatewayClient      *client.Client
	DisableUpdateCheck bool
}

Jump to

Keyboard shortcuts

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