Documentation ¶
Index ¶
- Constants
- func Scheme(ctx context.Context) meta.Scheme
- type ConditionStatus
- type ConditionTracker
- type LoggingNode
- func (m *LoggingNode) AddConfigListener(ch chan<- *node.LoggingCapabilityConfig)
- func (l *LoggingNode) GetHealth(_ context.Context, _ *emptypb.Empty) (*corev1.Health, error)
- func (m *LoggingNode) Info(_ context.Context, _ *emptypb.Empty) (*capabilityv1.InfoResponse, error)
- func (m *LoggingNode) SetClient(client node.NodeLoggingCapabilityClient)
- func (l *LoggingNode) SyncNow(_ context.Context, req *capabilityv1.Filter) (*emptypb.Empty, error)
- type Plugin
Constants ¶
View Source
const (
CondConfigSync = "Config Sync"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConditionStatus ¶
type ConditionStatus int32
const ( StatusPending ConditionStatus = 0 StatusFailure ConditionStatus = 1 )
func (ConditionStatus) String ¶
func (s ConditionStatus) String() string
type ConditionTracker ¶
type ConditionTracker interface { Set(key string, value ConditionStatus, reason string) Clear(key string, reason ...string) List() []string }
func NewConditionTracker ¶
func NewConditionTracker(logger *zap.SugaredLogger) ConditionTracker
type LoggingNode ¶
type LoggingNode struct { capabilityv1.UnsafeNodeServer controlv1.UnsafeHealthServer // contains filtered or unexported fields }
func NewLoggingNode ¶
func NewLoggingNode(ct ConditionTracker, lg *zap.SugaredLogger) *LoggingNode
func (*LoggingNode) AddConfigListener ¶
func (m *LoggingNode) AddConfigListener(ch chan<- *node.LoggingCapabilityConfig)
func (*LoggingNode) Info ¶
func (m *LoggingNode) Info(_ context.Context, _ *emptypb.Empty) (*capabilityv1.InfoResponse, error)
func (*LoggingNode) SetClient ¶
func (m *LoggingNode) SetClient(client node.NodeLoggingCapabilityClient)
func (*LoggingNode) SyncNow ¶
func (l *LoggingNode) SyncNow(_ context.Context, req *capabilityv1.Filter) (*emptypb.Empty, error)
Implements capabilityv1.NodeServer
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) StreamServers ¶
func (*Plugin) UseStreamClient ¶
func (p *Plugin) UseStreamClient(cc grpc.ClientConnInterface)
Click to show internal directories.
Click to hide internal directories.