Documentation
¶
Index ¶
- type File
- type Python
- func (p *Python) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
- func (p *Python) Install(ctx context.Context, version *core.RemoteVersion) error
- func (p *Python) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)
- func (p *Python) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)
- func (p *Python) Name() string
- func (p *Python) SetDefaultVersion(ctx context.Context, version string) error
- func (p *Python) Uninstall(ctx context.Context, version string) error
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Python ¶
type Python struct{}
func (*Python) GetDefaultVersion ¶
func (p *Python) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
func (*Python) ListInstalledVersions ¶
func (*Python) ListRemoteVersions ¶
获取远程Python版本列表
func (*Python) SetDefaultVersion ¶
Click to show internal directories.
Click to hide internal directories.