Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextKey = settingsKeyType{}
Functions ¶
func AsMetaDuration ¶
AsMetaDuration parses the value at key as a time.Duration into the target, if it exists.
Types ¶
type Injectable ¶
type Injectable interface {
ConfigMap() string
Inject(context.Context, *v1.ConfigMap) (context.Context, error)
}
Injectable defines a ConfigMap registration to be loaded into context on startup
type Settings ¶
type Settings struct {
BatchMaxDuration *metav1.Duration
BatchIdleDuration *metav1.Duration
TTLAfterNotRegistered *metav1.Duration
// This feature flag is temporary and will be removed in the near future.
DriftEnabled bool
}
+k8s:deepcopy-gen=true
func FromContext ¶
func (*Settings) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Settings.
func (*Settings) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.