mock

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 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 warden.Interface mock.

func (*Steward) IsRetrievable

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

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

func (*Steward) LastAddress

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

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

func (*Steward) Reupload

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

Reupload implements warden.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