source

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSource added in v1.13.0

type MockSource struct {
	mock.Mock
}

MockSource can be used for testing

func NewMockSource added in v1.13.0

func NewMockSource() *MockSource

NewMockSource returns a new Source mock for testing

func (*MockSource) GetDomain added in v1.13.0

func (m *MockSource) GetDomain(ctx context.Context, name string) (*domain.Domain, error)

GetDomain is a mocked function

func (*MockSource) IsReady added in v1.22.0

func (m *MockSource) IsReady() bool

type Source added in v1.13.0

type Source interface {
	GetDomain(context.Context, string) (*domain.Domain, error)
}

Source represents an abstract interface of a domains configuration source.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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