updater

package
v0.0.0-...-040dba6 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Server       string
	ClientId     string
	Vendor       string
	Product      string
	Variant      string
	OS           string
	Arch         string
	WithUnstable bool
	Version      string
	LastChecked  time.Time
}

func ReadStateFromFile

func ReadStateFromFile(filename string) (*State, error)

func StateFromClientState

func StateFromClientState(state *catalog.ClientState, server string, lastChecked time.Time) *State

func (*State) IsInstalled

func (state *State) IsInstalled() bool

func (*State) IsValid

func (state *State) IsValid() bool

func (*State) SaveToFile

func (state *State) SaveToFile(filename string) error

func (*State) ToClientState

func (state *State) ToClientState() *catalog.ClientState

Jump to

Keyboard shortcuts

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