refresh

package
v0.0.0-...-b918686 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallFakeSnapRefreshAll

func CallFakeSnapRefreshAll(c *check.C, snaps []string, changeFunc ChangeFakeUpdateSnap, fakeStore *store.Store) string

func CallFakeSnapRefreshForSnap

func CallFakeSnapRefreshForSnap(c *check.C, snap string, changeFunc ChangeFakeUpdateSnap, fakeStore *store.Store) string

CallFakeSnapRefresh calls snappy update after faking a new version available for the specified snap. The fake is made copying the currently installed snap. changeFunc can be used to modify the snap before it is built and served.

func MakeFakeRefreshForSnap

func MakeFakeRefreshForSnap(c *check.C, snap, targetDir string, changeFunc ChangeFakeUpdateSnap) error

func NoOp

func NoOp(snapPath string) error

NoOp leaves the snap unchanged.

Types

type ChangeFakeUpdateSnap

type ChangeFakeUpdateSnap func(snapPath string) error

ChangeFakeUpdateSnap is the type of the functions used to modify a snap before it is served as a fake update.

Jump to

Keyboard shortcuts

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