installation

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPath = "/Library/Application Support/Kontext/installation.json"
	EnvPath     = "KONTEXT_INSTALLATION_STATE"
)

Variables

View Source
var ErrNotFound = errors.New("installation state not found")

Functions

func PathFromEnv

func PathFromEnv() string

Types

type State

type State struct {
	InstallationID string `json:"installation_id"`
}

func Ensure

func Ensure() (State, error)

func EnsureFile

func EnsureFile(path string) (State, error)

func Load

func Load() (State, error)

func LoadFile

func LoadFile(path string) (State, error)

Jump to

Keyboard shortcuts

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