Documentation ¶
Index ¶
- type Config
- type Context
- func (ctx *Context) CacheDir() (path.Path, error)
- func (ctx *Context) Config() *Config
- func (ctx *Context) CreateDirStructure() error
- func (ctx *Context) GitHubMirrorURL() (*url.URL, error)
- func (ctx *Context) GlobalDotLipDir() (path.Path, error)
- func (ctx *Context) GoModuleProxyURL() (*url.URL, error)
- func (ctx *Context) LipVersion() semver.Version
- func (ctx *Context) LoadOrCreateConfigFile() error
- func (ctx *Context) LocalDotLipDir() (path.Path, error)
- func (ctx *Context) MetadataDir() (path.Path, error)
- func (ctx *Context) ProxyURL() (*url.URL, error)
- func (ctx *Context) SaveConfigFile() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is the context of the application.
func (*Context) CreateDirStructure ¶
CreateDirStructure creates the directory structure.
func (*Context) GitHubMirrorURL ¶
GitHubMirrorURL returns the GitHub mirror URL.
func (*Context) GlobalDotLipDir ¶
GlobalDotLipDir returns the global .lip directory.
func (*Context) GoModuleProxyURL ¶
GoModuleProxyURL returns the go module proxy URL.
func (*Context) LipVersion ¶
func (ctx *Context) LipVersion() semver.Version
LipVersion returns the lip version.
func (*Context) LoadOrCreateConfigFile ¶
LoadOrCreateConfigFile loads or creates the config file.
func (*Context) LocalDotLipDir ¶
LocalDotLipDir returns the local .lip directory.
func (*Context) MetadataDir ¶
MetadataDir returns the metadata directory.
func (*Context) SaveConfigFile ¶
SaveConfigFile saves the config file.
Click to show internal directories.
Click to hide internal directories.