Documentation ¶
Index ¶
- type Config
- type FileConfig
- func (c *FileConfig) Active() *Remote
- func (c *FileConfig) Get(name string) (Remote, error)
- func (c *FileConfig) Load() error
- func (c *FileConfig) Remotes() []Remote
- func (c *FileConfig) Remove(name string) error
- func (c *FileConfig) Save(name string, token string) error
- func (c *FileConfig) SetActive(name string) error
- type Remote
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileConfig ¶
type FileConfig struct { Path string // contains filtered or unexported fields }
func (*FileConfig) Active ¶
func (c *FileConfig) Active() *Remote
func (*FileConfig) Load ¶
func (c *FileConfig) Load() error
func (*FileConfig) Remotes ¶
func (c *FileConfig) Remotes() []Remote
func (*FileConfig) Remove ¶
func (c *FileConfig) Remove(name string) error
func (*FileConfig) SetActive ¶
func (c *FileConfig) SetActive(name string) error
Click to show internal directories.
Click to hide internal directories.