contexts

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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) CacheDir

func (ctx Context) CacheDir() (string, error)

CacheDir returns the cache directory.

func (Context) CalculateCachePath

func (ctx Context) CalculateCachePath(fileURL string) (string, error)

CalculateCachePath calculates the cache path of a file downloaded from a URL.

func (Context) CalculateMetadataPath

func (ctx Context) CalculateMetadataPath(toothRepo string) (string, error)

CalculateMetadataPath calculates the recorded metadata file path of a tooth.

func (Context) GlobalDotLipDir

func (ctx Context) GlobalDotLipDir() (string, error)

GlobalDotLipDir returns the global .lip directory.

func (Context) GoProxyList

func (ctx Context) GoProxyList() []string

GoProxyList returns the Go Proxy URL.

func (Context) LipVersion

func (ctx Context) LipVersion() versions.Version

LipVersion returns the lip version.

func (Context) MetadataDir

func (ctx Context) MetadataDir() (string, error)

MetadataDir returns the metadata directory.

func (Context) PluginDir

func (ctx Context) PluginDir() (string, error)

PluginDir returns the plugin directory.

func (Context) WorkspaceDir

func (ctx Context) WorkspaceDir() (string, error)

WorkspaceDir returns the workspace directory.

func (Context) WorkspaceDotLipDir

func (ctx Context) WorkspaceDotLipDir() (string, error)

WorkspaceDotLipDir returns the workspace .lip directory.

Jump to

Keyboard shortcuts

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