nixmetadata

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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