store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 21 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 {
	// contains filtered or unexported fields
}

Store is our snappy software store implementation

func NewStore

func NewStore(topDir, addr string, assertFallback bool) *Store

NewStore creates a new store server serving snaps from the given top directory and assertions from topDir/asserts. If assertFallback is true missing assertions are looked up in the main online store.

func (*Store) SnapsDir

func (s *Store) SnapsDir() string

func (*Store) Start

func (s *Store) Start() error

Start listening

func (*Store) Stop

func (s *Store) Stop() error

Stop stops the server

func (*Store) URL

func (s *Store) URL() string

URL returns the base-url that the store is listening on

Jump to

Keyboard shortcuts

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