mock

package
v0.0.0-...-eb12069 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: BSD-3-Clause Imports: 3 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, addr 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, _ postage.Stamper) 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