python

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Filename string `json:"filename"`
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Version  string `json:"version"`
	SHA256   string `json:"sha256"`
	Size     int64  `json:"size"`
	Kind     string `json:"kind"`
}

type Python

type Python struct{}

func (*Python) GetDefaultVersion

func (p *Python) GetDefaultVersion(ctx context.Context) *core.InstalledVersion

func (*Python) Install

func (p *Python) Install(ctx context.Context, version *core.RemoteVersion) error

func (*Python) ListInstalledVersions

func (p *Python) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)

func (*Python) ListRemoteVersions

func (p *Python) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)

获取远程Python版本列表

func (*Python) Name

func (p *Python) Name() string

func (*Python) SetDefaultVersion

func (p *Python) SetDefaultVersion(ctx context.Context, version string) error

func (*Python) Uninstall

func (p *Python) Uninstall(ctx context.Context, version string) error

type Version

type Version struct {
	Version string `json:"version"`
	Files   []File `json:"files"`
}

Source Files

  • python.go

Jump to

Keyboard shortcuts

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