updater

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttrUpdaterLatestVersion           = "latest_version"
	AttrUpdaterLatestVersionTime       = "latest_version_time"
	AttrUpdaterLatestLatestDownloadUrl = "latest_download_url"
	AttrUpdaterLatestCheck             = "last_check"
	Name                               = "updater"
	EntityUpdater                      = common.EntityType(Name)
)

Variables

This section is empty.

Functions

func New

func New() plugins.Plugable

func NewActions

func NewActions() map[string]entity_manager.ActorAction

func NewAttr

func NewAttr() m.Attributes

func NewStates

func NewStates() map[string]entity_manager.ActorState

Types

type Actor

type Actor struct {
	entity_manager.BaseActor
	// contains filtered or unexported fields
}

func NewActor

func NewActor(entityManager entity_manager.EntityManager,
	eventBus event_bus.EventBus) *Actor

func (*Actor) Spawn

func (e *Actor) Spawn() entity_manager.PluginActor

type GithubRelease

type GithubRelease struct {
	Name               string `json:"name"`
	BrowserDownloadUrl string `json:"browser_download_url"`
}

type GithubReleaseLatest

type GithubReleaseLatest struct {
	TagName   string          `json:"tag_name"`
	CreatedAt time.Time       `json:"created_at"`
	Assets    []GithubRelease `json:"assets"`
}

Jump to

Keyboard shortcuts

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