refresh

package
v0.0.0-...-41dd8df Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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