Documentation ¶
Index ¶
- type Store
- func (Store) Assertion(*asserts.AssertionType, []string, *auth.UserState) (asserts.Assertion, error)
- func (Store) Buy(*client.BuyOptions, *auth.UserState) (*client.BuyResult, error)
- func (Store) ConnectivityCheck() (map[string]bool, error)
- func (Store) CreateCohorts(context.Context, []string) (map[string]string, error)
- func (Store) Download(context.Context, string, string, *snap.DownloadInfo, progress.Meter, ...) error
- func (Store) DownloadAssertions([]string, *asserts.Batch, *auth.UserState) error
- func (Store) DownloadStream(ctx context.Context, name string, downloadInfo *snap.DownloadInfo, ...) (io.ReadCloser, int, error)
- func (Store) EnsureDeviceSession() (*auth.DeviceState, error)
- func (Store) Find(context.Context, *store.Search, *auth.UserState) ([]*snap.Info, error)
- func (Store) LoginUser(username, password, otp string) (string, string, error)
- func (Store) ReadyToBuy(*auth.UserState) error
- func (Store) Sections(context.Context, *auth.UserState) ([]string, error)
- func (Store) SeqFormingAssertion(*asserts.AssertionType, []string, int, *auth.UserState) (asserts.Assertion, error)
- func (Store) SnapAction(context.Context, []*store.CurrentSnap, []*store.SnapAction, ...) ([]store.SnapActionResult, []store.AssertionResult, error)
- func (Store) SnapExists(context.Context, store.SnapSpec, *auth.UserState) (naming.SnapRef, *channel.Channel, error)
- func (Store) SnapInfo(context.Context, store.SnapSpec, *auth.UserState) (*snap.Info, error)
- func (Store) SuggestedCurrency() string
- func (Store) UserInfo(email string) (userinfo *store.User, err error)
- func (Store) WriteCatalogs(context.Context, io.Writer, store.SnapAdder) error
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) CreateCohorts ¶
func (Store) DownloadAssertions ¶
func (Store) DownloadStream ¶
func (Store) EnsureDeviceSession ¶
func (Store) EnsureDeviceSession() (*auth.DeviceState, error)
func (Store) SeqFormingAssertion ¶
func (Store) SnapAction ¶
func (Store) SnapAction(context.Context, []*store.CurrentSnap, []*store.SnapAction, store.AssertionQuery, *auth.UserState, *store.RefreshOptions) ([]store.SnapActionResult, []store.AssertionResult, error)
func (Store) SnapExists ¶
func (Store) SuggestedCurrency ¶
Click to show internal directories.
Click to hide internal directories.