manager

package
v0.0.0-...-f36c4e0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSource

func AddSource(state *State, name string, url string) error

func GetOrigin

func GetOrigin(url string) error

Comment

func RefreshSources

func RefreshSources(state *State) error

func SaveState

func SaveState(state *State) error

Types

type State

type State struct {
	Sources        map[string]string `json:"sources"`
	CurrentVersion map[string]string `json:"current_version"`
}

func LoadState

func LoadState() *State

Jump to

Keyboard shortcuts

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