Help us shape the future of Go! Take the 2026 Go Developer Survey

skillstate

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel string
const (
	ChannelDevelopment Channel = "development"
	ChannelCanary      Channel = "canary"
	ChannelStable      Channel = "stable"
	ChannelPinned      Channel = "pinned"
)

type Selection

type Selection struct {
	ActiveVersion string             `json:"active_version,omitempty"`
	Channels      map[Channel]string `json:"channels,omitempty"`
	History       []string           `json:"history,omitempty"`
	UpdatedAt     time.Time          `json:"updated_at"`
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(root string) (*Store, error)

func (*Store) Activate

func (s *Store) Activate(ctx context.Context, skill, version string, channel Channel) error

func (*Store) ActiveVersion

func (s *Store) ActiveVersion(skill string) (string, error)

func (*Store) CachePath

func (s *Store) CachePath(name string) (string, error)

func (*Store) EnsureLayout

func (s *Store) EnsureLayout() error

func (*Store) InstalledPath

func (s *Store) InstalledPath(skill, version string) (string, error)

func (*Store) IsInstalled

func (s *Store) IsInstalled(skill, version string) (bool, error)

func (*Store) ListSkills

func (s *Store) ListSkills() ([]string, error)

func (*Store) ListVersions

func (s *Store) ListVersions(skill string) ([]string, error)

func (*Store) PreviousVersion

func (s *Store) PreviousVersion(skill string) (string, error)

func (*Store) RemoveVersion

func (s *Store) RemoveVersion(ctx context.Context, skill, version string) error

func (*Store) Resolve

func (s *Store) Resolve(skill, version string, channel Channel) (string, error)

func (*Store) Root

func (s *Store) Root() string

func (*Store) Snapshot

func (s *Store) Snapshot(skill string) (Selection, error)

func (*Store) TempPath

func (s *Store) TempPath(prefix string) (string, error)

Jump to

Keyboard shortcuts

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