Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NixMetadata ¶
type NixMetadata struct {
SysUserName string `json:"sysUserName"`
SysArch string `json:"sysArch"`
SysOs string `json:"sysOs"`
GitUserName string `json:"gitUserName"`
GitUser string `json:"gitUser"`
GitEmail string `json:"gitEmail"`
Shell string `json:"shell"`
ShellRcFile string `json:"shellRcFile"`
Version string `json:"version"`
CurrentVersion *semver.Version `json:"current_semver_version"`
LastUpdated time.Time `json:"last_updated"`
LastNixVersionCheckAt time.Time `json:"last_nix_version_check"`
LastNixVersion string `json:"last_nix_version"`
LastNegativeUpdatePrompt time.Time `json:"last_negative_update_prompt"`
}
func Get ¶
func Get() (NixMetadata, error)
func (*NixMetadata) ParseCurrentVersion ¶
func (n *NixMetadata) ParseCurrentVersion()
func (*NixMetadata) ShouldFetchNixVersion ¶
func (n *NixMetadata) ShouldFetchNixVersion() bool
func (*NixMetadata) ShouldRunUpdateScript ¶
func (n *NixMetadata) ShouldRunUpdateScript() bool
func (*NixMetadata) UpdateLastNegativeUpdatePrompt ¶
func (n *NixMetadata) UpdateLastNegativeUpdatePrompt() error
func (*NixMetadata) UpdateLastNixVersionCheck ¶
func (n *NixMetadata) UpdateLastNixVersionCheck() error
Click to show internal directories.
Click to hide internal directories.