Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultAutoDetectTick = 2 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func IsResourceAvailable ¶
func IsResourceAvailable(gvk schema.GroupVersionKind) bool
IsResourceAvailable gets the state from state manager
Types ¶
type Background ¶
type Background struct {
// contains filtered or unexported fields
}
Background represents a procedure that runs in the background, periodically auto-detecting features
func NewAutoDetect ¶
func NewAutoDetect(mgr manager.Manager, config DetectConfig) (*Background, error)
New creates a new auto-detect runner
func (*Background) DetectCapabilities ¶
func (b *Background) DetectCapabilities()
DetectCapabilities populates state manager
func (*Background) Start ¶
func (b *Background) Start()
Start initializes the auto-detection process that runs in the background
func (*Background) Stop ¶
func (b *Background) Stop()
Stop causes the background process to stop auto detecting capabilities
type DetectConfig ¶
type DetectConfig struct { GroupVersionKinds []schema.GroupVersionKind Delay *time.Duration ExitOnChange bool }
Click to show internal directories.
Click to hide internal directories.