mocks

package
v0.0.0-...-1e66b67 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedStorage

type MockedStorage struct {
	mock.Mock
}

func (*MockedStorage) RetrieveMetadata

func (s *MockedStorage) RetrieveMetadata(pkg string, writer io.Writer) error

func (*MockedStorage) RetrieveTarball

func (s *MockedStorage) RetrieveTarball(pkg string, filename string, writer io.Writer) error

func (*MockedStorage) RetrieveUsernameFromToken

func (s *MockedStorage) RetrieveUsernameFromToken(token string) (string, error)

func (*MockedStorage) StoreMetadata

func (s *MockedStorage) StoreMetadata(pkg string, data io.Reader) error

func (*MockedStorage) StoreTarball

func (s *MockedStorage) StoreTarball(filename string, reader io.Reader) error

func (*MockedStorage) StoreUser

func (s *MockedStorage) StoreUser(pkg string) error

func (*MockedStorage) StoreUserToken

func (s *MockedStorage) StoreUserToken(token, username string) error

Jump to

Keyboard shortcuts

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