updater

package
v0.0.0-...-b097151 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 2 Imported by: 0

README

problem statement

lib for doing in-place updates to a binary

features

  • backed by equinox.io
  • API exposed via interface
  • fake implementation to allow faking interactions

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	GetUpdateIfExistsStub func(releaseChannel string) (update *Update, err error)

	ApplyUpdateStub func(update *Update) (err error)
	// contains filtered or unexported fields
}

func (*Fake) ApplyUpdate

func (fake *Fake) ApplyUpdate(update *Update) (err error)

func (*Fake) ApplyUpdateArgsForCall

func (fake *Fake) ApplyUpdateArgsForCall(i int) *Update

func (*Fake) ApplyUpdateCallCount

func (fake *Fake) ApplyUpdateCallCount() int

func (*Fake) ApplyUpdateReturns

func (fake *Fake) ApplyUpdateReturns(result1 error)

func (*Fake) GetUpdateIfExists

func (fake *Fake) GetUpdateIfExists(releaseChannel string) (update *Update, err error)

func (*Fake) GetUpdateIfExistsArgsForCall

func (fake *Fake) GetUpdateIfExistsArgsForCall(i int) string

func (*Fake) GetUpdateIfExistsCallCount

func (fake *Fake) GetUpdateIfExistsCallCount() int

func (*Fake) GetUpdateIfExistsReturns

func (fake *Fake) GetUpdateIfExistsReturns(result1 *Update, result2 error)

func (*Fake) Invocations

func (fake *Fake) Invocations() map[string][][]interface{}

type Update

type Update struct {
	Version string
	// contains filtered or unexported fields
}

type Updater

type Updater interface {
	GetUpdateIfExists(
		releaseChannel string,
	) (
		update *Update,
		err error,
	)
	ApplyUpdate(
		update *Update,
	) (
		err error,
	)
}

func New

func New() Updater

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
internal
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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