storetest

package
v2.42.5-go-mod+incompa... Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct{}

Store implements a snapstate.StoreService where every single method panics.

Embed in your own fakeStore to avoid having to keep up with that interface's evolution when it's unrelated to your code.

func (Store) Assertion

func (Store) Buy

func (Store) ConnectivityCheck

func (Store) ConnectivityCheck() (map[string]bool, error)

func (Store) CreateCohorts

func (Store) CreateCohorts(context.Context, []string) (map[string]string, error)

func (Store) DownloadStream

func (Store) DownloadStream(ctx context.Context, name string, downloadInfo *snap.DownloadInfo, user *auth.UserState) (io.ReadCloser, error)

func (Store) EnsureDeviceSession

func (Store) EnsureDeviceSession() (*auth.DeviceState, error)

func (Store) Find

func (Store) LoginUser

func (Store) LoginUser(username, password, otp string) (string, string, error)

func (Store) ReadyToBuy

func (Store) ReadyToBuy(*auth.UserState) error

func (Store) Sections

func (Store) Sections(context.Context, *auth.UserState) ([]string, error)

func (Store) SnapInfo

func (Store) SuggestedCurrency

func (Store) SuggestedCurrency() string

func (Store) UserInfo

func (Store) UserInfo(email string) (userinfo *store.User, err error)

func (Store) WriteCatalogs

func (Store) WriteCatalogs(context.Context, io.Writer, store.SnapAdder) error

Jump to

Keyboard shortcuts

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