Documentation ¶
Index ¶
Constants ¶
View Source
const CONFIG_JSON_PATH = ".kpm/config/config.json"
The config.json used to persist user information
View Source
const DEFAULT_REGISTRY = "ghcr.io"
View Source
const DEFAULT_REPO = "kusionstack"
View Source
const KPM_JSON_PATH = ".kpm/config/kpm.json"
The kpm.json used to describe the default configuration of kpm.
View Source
const PACKAGE_CACHE_PATH = ".kpm/config/package-cache"
The package-cache path, kpm will try lock 'package-cache' before downloading a package.
Variables ¶
This section is empty.
Functions ¶
func GetFullPath ¶
GetFullPath returns the full path file path under '$HOME/.kpm/config/'
Types ¶
type KpmConf ¶
The kpm configuration
func DefaultKpmConf ¶
func DefaultKpmConf() KpmConf
DefaultKpmConf create a default configuration for kpm.
type Settings ¶
type Settings struct { CredentialsFile string // the default configuration for kpm. Conf KpmConf // the flock used to lock the 'package-cache' file. PackageCacheLock *flock.Flock }
func GetSettings ¶
GetSettings will return the kpm setting singleton.
func (*Settings) AcquirePackageCacheLock ¶
AcquirePackageCacheLock will try to lock the 'package-cache' file.
func (*Settings) DefaultOciRegistry ¶
DefaultOciRepo return the default OCI registry 'ghcr.io'.
func (*Settings) DefaultOciRepo ¶
DefaultOciRepo return the default OCI repo 'kusionstack'.
func (*Settings) ReleasePackageCacheLock ¶
ReleasePackageCacheLock will try to unlock the 'package-cache' file.
Click to show internal directories.
Click to hide internal directories.