Documentation ¶
Overview ¶
Package agentcli provides a CDPI agent that is configured using a protobuf-based manifest.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownConfigProto = errors.New("unknown config proto")
ErrUnknownConfigProto is the error a Provider should return if the provided `anypb.Any` is of an unknown type.
Functions ¶
This section is empty.
Types ¶
type Handles ¶
Handles are abstractions over impure, external resources like time and stdio streams.
func DefaultHandles ¶
func DefaultHandles() Handles
DefaultHandles returns a Handles implementation that delegates to the standard implementations for external resources.
type Provider ¶
type Provider interface { EnactmentBackend(_ context.Context, _ Handles, nodeID string, conf *anypb.Any) (enactment.Backend, error) TelemetryBackend(_ context.Context, _ Handles, nodeID string, conf *anypb.Any) (telemetry.Backend, error) }
Provider provides a dynamic way of registering enactment or telemetry backend providers. If the provided configuration isn't of the appropriate type, the factory function is expected to return nil, ErrUnknownConfigProto.
type UnsupportedEnactmentBackend ¶
type UnsupportedEnactmentBackend struct{}
type UnsupportedTelemetryBackend ¶
type UnsupportedTelemetryBackend struct{}
Click to show internal directories.
Click to hide internal directories.