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 ¶
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 ¶
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.
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.
Click to show internal directories.
Click to hide internal directories.