Documentation ¶
Index ¶
- Constants
- Variables
- func NewUserAgentTransport(userAgent string, rt http.RoundTripper) *minionTransport
- type Minion
- func (m *Minion) Apply(b []byte) error
- func (m *Minion) Check(opts Options) (*UpdateResponse, error)
- func (m *Minion) CurrentPath() (string, error)
- func (m *Minion) Download(opts Options) ([]byte, error)
- func (m *Minion) NewPath() (string, error)
- func (m *Minion) OldPath() (string, error)
- func (m *Minion) Reload() error
- type Options
- type ProgressReader
- type UpdateResponse
Constants ¶
View Source
const UserAgent = "minion-updater/1.0.0"
Variables ¶
View Source
var UpdateNotAvailable = errors.New("no update available")
Functions ¶
func NewUserAgentTransport ¶
func NewUserAgentTransport(userAgent string, rt http.RoundTripper) *minionTransport
Types ¶
type Minion ¶ added in v0.2.0
type Minion struct {
// contains filtered or unexported fields
}
func (*Minion) Check ¶ added in v0.2.0
func (m *Minion) Check(opts Options) (*UpdateResponse, error)
func (*Minion) CurrentPath ¶ added in v0.5.4
type ProgressReader ¶
type UpdateResponse ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.