mocks

package
v0.6.96 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 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