mock

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock provides a mock registry server for testing purposes it mocks the behaviour of a registry server with in-memory storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemRegistry

func NewMemRegistry() registry.Registry

NewMemRegistry creates a new in-memory registry

func NewMockServer

func NewMockServer() (*regclient.Client, *httptest.Server)

NewMockServer creates an in-memory mock server (with a pinset) without any access protection and a registry client to match

func NewMockServerRegistry

func NewMockServerRegistry(reg registry.Registry) (*regclient.Client, *httptest.Server)

NewMockServerRegistry creates a mock server & client with a passed-in registry

Types

This section is empty.

Jump to

Keyboard shortcuts

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