Documentation ¶
Overview ¶
broker holds the typed objects that define the schemas for default Broker delivery settings.
Index ¶
- func ConfigMapName() string
- func ToContext(ctx context.Context, c *Config) context.Context
- type Config
- type Defaults
- func (d *Defaults) BackoffDelay(ns string) *string
- func (d *Defaults) BackoffPolicy(ns string) *eventingduckv1beta1.BackoffPolicyType
- func (d *Defaults) DeadLetterSink(ns string) *v1.Destination
- func (in *Defaults) DeepCopy() *Defaults
- func (in *Defaults) DeepCopyInto(out *Defaults)
- func (d *Defaults) Retry(ns string) *int32
- type ScopedDefaults
- type Store
- type StoreSingleton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMapName ¶
func ConfigMapName() string
ConfigMapName returns the name of the configmap to read for default Broker delivery settings.
Types ¶
type Config ¶
type Config struct {
BrokerDeliverySpecDefaults *Defaults
}
Config holds the collection of configurations that we attach to contexts. +k8s:deepcopy-gen=false
func FromContext ¶
FromContext extracts a Config from the provided context.
func FromContextOrDefaults ¶
FromContextOrDefaults is like FromContext, but when no Config is attached it returns a Config populated with the defaults for each of the Config fields.
type Defaults ¶
type Defaults struct { // NamespaceDefaults are the Broker delivery spec defaults to use in specific namespaces. The namespace is // the key, the value is the defaults. NamespaceDefaults map[string]ScopedDefaults `json:"namespaceDefaults,omitempty"` // ClusterDefaults are the Broker delivery spec defaults to use for all namepaces that are not in // NamespaceDefaults. ClusterDefaults ScopedDefaults `json:"clusterDefaults,omitempty"` }
Defaults includes the default values to be populated by the Webhook.
func NewDefaultsConfigFromConfigMap ¶
NewDefaultsConfigFromConfigMap creates a Defaults from the supplied configMap.
func NewDefaultsConfigFromMap ¶
NewDefaultsConfigFromMap creates a Defaults from the supplied Map.
func (*Defaults) BackoffDelay ¶
func (*Defaults) BackoffPolicy ¶
func (d *Defaults) BackoffPolicy(ns string) *eventingduckv1beta1.BackoffPolicyType
func (*Defaults) DeadLetterSink ¶
func (d *Defaults) DeadLetterSink(ns string) *v1.Destination
func (*Defaults) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Defaults.
func (*Defaults) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScopedDefaults ¶
type ScopedDefaults struct { // ScopedDefaults implements the Broker delivery spec. *eventingduckv1beta1.DeliverySpec }
ScopedDefaults are the Broker delivery setting defaults.
func (*ScopedDefaults) DeepCopy ¶
func (in *ScopedDefaults) DeepCopy() *ScopedDefaults
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScopedDefaults.
func (*ScopedDefaults) DeepCopyInto ¶
func (in *ScopedDefaults) DeepCopyInto(out *ScopedDefaults)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Store ¶
type Store struct {
*configmap.UntypedStore
}
Store is a typed wrapper around configmap.Untyped store to handle our ConfigMaps. +k8s:deepcopy-gen=false
func NewStore ¶
NewStore creates a new store of Configs and optionally calls functions when ConfigMaps are updated.
type StoreSingleton ¶
type StoreSingleton struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false