{"modulePath":"github.com/AliyunContainerService/node-problem-detector","version":"v0.6.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package condition\n\n## Types\n\n```go\ntype ConditionManager interface {\n\t// Start starts the condition manager.\n\tStart()\n\t// UpdateCondition updates a specific condition.\n\tUpdateCondition(types.Condition)\n\t// GetConditions returns all current conditions.\n\tGetConditions() []types.Condition\n}\n```\nConditionManager synchronizes node conditions with the apiserver with problem client. It makes sure that: 1) Node conditions are updated to apiserver as soon as possible. 2) Node problem detector won't flood apiserver. 3) No one else could change the node conditions maintained by node problem detector. ConditionManager checks every updatePeriod to see whether there is node condition update. If there are any, it will synchronize with the apiserver. This addresses 1) and 2). ConditionManager synchronizes with apiserver every resyncPeriod no matter there is node condition update or not. This addresses 3).\n\n```go\nfunc NewConditionManager(client problemclient.Client, clock clock.Clock) ConditionManager\n```\nNewConditionManager creates a condition manager.\n\n","path":"github.com/AliyunContainerService/node-problem-detector/pkg/condition","name":"condition","synopsis":"","isRedistributable":true}
