settings

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialRemover

type CredentialRemover interface {
	Delete(string) error
}

type Service

type Service struct {
	Store       projectconfig.Store
	Credentials CredentialRemover
	Locker      authapp.Locker
}

func (Service) AddProfile

func (s Service) AddProfile(name, siteURL string) error

func (Service) CreateAlias added in v0.1.4

func (s Service) CreateAlias(profileName, name string, alias projectconfig.Alias) error

CreateAlias 在同一配置事务内检查名称与写入,防止并发创建覆盖已有 Alias。

func (Service) DeleteAlias

func (s Service) DeleteAlias(profileName, name string) error

func (Service) DeleteProfile

func (s Service) DeleteProfile(name string) error

func (Service) RenameAlias

func (s Service) RenameAlias(profileName, currentName, newName string) error

func (Service) SetAlias

func (s Service) SetAlias(profileName, name string, alias projectconfig.Alias) error

func (Service) SetAliasAccount

func (s Service) SetAliasAccount(profileName, name, account string) error

func (Service) SetProfileOrganization

func (s Service) SetProfileOrganization(profileName, organization string) error

func (Service) UpdateProfileURL

func (s Service) UpdateProfileURL(name, siteURL string) error

func (Service) UseProfile

func (s Service) UseProfile(name string) error

Jump to

Keyboard shortcuts

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