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 ¶ added in v0.2.4
GetFullPath returns the full path file path under '$HOME/.kpm/config/'
Types ¶
type KpmConf ¶ added in v0.2.2
The kpm configuration
func DefaultKpmConf ¶ added in v0.2.2
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 ¶ added in v0.2.2
GetSettings will return the kpm setting singleton.
func (*Settings) AcquirePackageCacheLock ¶ added in v0.2.4
AcquirePackageCacheLock will try to lock the 'package-cache' file.
func (*Settings) DefaultOciRegistry ¶ added in v0.2.2
DefaultOciRepo return the default OCI registry 'ghcr.io'.
func (*Settings) DefaultOciRepo ¶ added in v0.2.2
DefaultOciRepo return the default OCI repo 'kusionstack'.
func (*Settings) ReleasePackageCacheLock ¶ added in v0.2.4
ReleasePackageCacheLock will try to unlock the 'package-cache' file.
Click to show internal directories.
Click to hide internal directories.