mock

package
v0.0.0-...-a524873 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunAPI

type RunAPI struct {
	ServiceFn      func(namespace, serviceID string) (*run.Service, error)
	ServiceInvoked bool

	ReplaceServiceFn      func(namespace, serviceID string, svc *run.Service) (*run.Service, error)
	ReplaceServiceInvoked bool
}

RunAPI represents a mock implementation of run.API.

func (*RunAPI) ReplaceService

func (a *RunAPI) ReplaceService(namespace, serviceID string, svc *run.Service) (*run.Service, error)

ReplaceService invokes the mock implementation and marks the function as invoked.

func (*RunAPI) Service

func (a *RunAPI) Service(namespace, service string) (*run.Service, error)

Service invokes the mock implementation and marks the function as invoked.

Jump to

Keyboard shortcuts

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