Documentation ¶
Index ¶
- type Context
- func (ctx Context) CacheDir() (string, error)
- func (ctx Context) CalculateCachePath(fileURL string) (string, error)
- func (ctx Context) CalculateMetadataPath(toothRepo string) (string, error)
- func (ctx Context) GlobalDotLipDir() (string, error)
- func (ctx Context) GoProxyList() []string
- func (ctx Context) LipVersion() versions.Version
- func (ctx Context) MetadataDir() (string, error)
- func (ctx Context) PluginDir() (string, error)
- func (ctx Context) WorkspaceDir() (string, error)
- func (ctx Context) WorkspaceDotLipDir() (string, 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 New ¶
func New(lipVersion versions.Version, globalDotLipDir string, workspaceDir string, goProxyList []string) Context
New creates a new context.
func (Context) CalculateCachePath ¶
CalculateCachePath calculates the cache path of a file downloaded from a URL.
func (Context) CalculateMetadataPath ¶
CalculateMetadataPath calculates the recorded metadata file path of a tooth.
func (Context) GlobalDotLipDir ¶
GlobalDotLipDir returns the global .lip directory.
func (Context) GoProxyList ¶
GoProxyList returns the Go Proxy URL.
func (Context) LipVersion ¶
LipVersion returns the lip version.
func (Context) MetadataDir ¶
MetadataDir returns the metadata directory.
func (Context) WorkspaceDir ¶
WorkspaceDir returns the workspace directory.
func (Context) WorkspaceDotLipDir ¶
WorkspaceDotLipDir returns the workspace .lip directory.
Click to show internal directories.
Click to hide internal directories.