updater

package module
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 3 Imported by: 0

README

Updater

Provides an ability to perform an application update from either Artifactory or typical Website

Start HTTP for testing

Python 3

python -m http.server 8081

Python 2

python -m SimpleHTTPServer 8081

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	OS                string `json:"os"`
	Arch              string `json:"arch"`
	Name              string `json:"name"`
	Timestamp         int64  `json:"timestamp"`
	Version           string `json:"version"`
	Changelog         string `json:"changelog"`
	BaseURL           string
	URL               string
	ArchiveName       string
	User              []byte
	Pass              []byte
	DisableVerifyCert bool
	Issue             string
}

func (*AppConfig) String

func (a *AppConfig) String() string

type Connection

type Connection struct {
	Name               string
	HostName           string
	User               string
	PassOrToken        string
	URLPrefix          string
	Repository         string
	Path               string
	OnAvailable        string
	OnAvailableTimeout int

	OnHostNamePrefix string

	OnHostNameSuffix string

	OnAvailableViaHTTP  bool
	DisableValidateCert bool
	AQLSupport          bool
	// contains filtered or unexported fields
}

func NewUser

func NewUser(user, passOrToken, urlPrefix, repository string) *Connection

func (*Connection) Available

func (c *Connection) Available() bool

func (*Connection) HostPfx

func (c *Connection) HostPfx() bool

func (*Connection) HostSuffix

func (c *Connection) HostSuffix() bool

func (*Connection) SetAvailable

func (c *Connection) SetAvailable(val bool)

func (*Connection) SetHostPfx

func (c *Connection) SetHostPfx(val bool)

func (*Connection) SetHostSfx

func (c *Connection) SetHostSfx(val bool)

type Version

type Version struct {
	Version   string
	BuildDate string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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