protocol

package
v0.0.0-...-ada256f Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package protocol is grouped around the Protocol component, the interface with one or multiple protocols. It is concurrency-safe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
}

Mock mocks the Protocol interface.

func (*Mock) GatewayURL

func (m *Mock) GatewayURL(r *t.AnnotatedResource) string

GatewayURL mocks the corresponding method on the Protocol interface.

func (*Mock) IsInvalidResourceErr

func (m *Mock) IsInvalidResourceErr(err error) bool

IsInvalidResourceErr mocks the corresponding method on the Protocol interface.

func (*Mock) Ls

func (m *Mock) Ls(ctx context.Context, r *t.AnnotatedResource, c chan<- *t.AnnotatedResource) error

Ls mocks the corresponding method on the Protocol interface.

func (*Mock) Stat

func (m *Mock) Stat(ctx context.Context, r *t.AnnotatedResource) error

Stat mocks the corresponding method on the Protocol interface.

type Protocol

type Protocol interface {
	GatewayURL(*t.AnnotatedResource) string
	Stat(context.Context, *t.AnnotatedResource) error
	Ls(context.Context, *t.AnnotatedResource, chan<- *t.AnnotatedResource) error
}

Protocol represents the interface with one or multiple protocols. It is concurrency-safe.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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