mock

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Steward

type Steward struct {
	// contains filtered or unexported fields
}

Steward represents steward.Interface mock.

func (*Steward) IsRetrievable

func (s *Steward) IsRetrievable(_ context.Context, _ swarm.Address) (bool, error)

IsRetrievable implements steward.Interface IsRetrievable method. The method always returns true.

func (*Steward) LastAddress

func (s *Steward) LastAddress() swarm.Address

LastAddress returns the last address given to the Reupload method call.

func (*Steward) Reupload

func (s *Steward) Reupload(_ context.Context, addr swarm.Address) error

Reupload implements steward.Interface Reupload method. The given address is recorded.

Jump to

Keyboard shortcuts

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