mocks

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockRemoteURL

func NewMockRemoteURL() interfaces.RemoteURLInterface

Types

type MockRemoteURL

type MockRemoteURL struct {
	GetCallback func(ctx context.Context, uri string) (admin.UrlBlob, error)
}

Mock implementation of a RemoteURLInterface

func (*MockRemoteURL) Get

func (m *MockRemoteURL) Get(ctx context.Context, uri string) (admin.UrlBlob, error)

Jump to

Keyboard shortcuts

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