Documentation
¶
Index ¶
- type Config
- type ControllerConfig
- type DependentConfig
- type ExecHandlerConfig
- type FuncHandlerConfig
- type HTTPHandlerConfig
- type HTTPHanlderTLSConfig
- type HandlerConfig
- type HandlerType
- type InjectorConfig
- type MetricsConfig
- type ReconcilerConfig
- type ReferenceConfig
- type SyncerConfig
- type WebhookConfig
- type WebhookHandlerConfig
- type WebhookTLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Controllers []*ControllerConfig `json:"controllers"`
Webhook *WebhookConfig `json:"webhook,omitempty"`
Metrics *MetricsConfig `json:"metrics,omitempty"`
}
type ControllerConfig ¶
type ControllerConfig struct {
Name string
Resource schema.GroupVersionKind `json:"resource"`
Dependents []DependentConfig `json:"dependents"`
References []ReferenceConfig `json:"references"`
Reconciler *ReconcilerConfig `json:"reconciler,omitempty"`
Finalizer *HandlerConfig `json:"finalizer,omitempty"`
Syncer *SyncerConfig `json:"syncer,omitempty"`
}
func (*ControllerConfig) Validate ¶
func (c *ControllerConfig) Validate() error
type DependentConfig ¶ added in v0.4.0
type DependentConfig struct {
schema.GroupVersionKind
Orphan bool `json:"orphan"`
}
func (*DependentConfig) Validate ¶ added in v0.4.0
func (c *DependentConfig) Validate() error
type ExecHandlerConfig ¶
type ExecHandlerConfig struct {
Command string `json:"command"`
Args []string `json:"args"`
WorkingDir string `json:"workingDir"`
Env map[string]string `json:"env"`
Timeout string `json:"timeout"`
Debug bool `json:"debug"`
}
func (ExecHandlerConfig) Validate ¶
func (c ExecHandlerConfig) Validate() error
type FuncHandlerConfig ¶ added in v0.6.0
func (*FuncHandlerConfig) Validate ¶ added in v0.6.0
func (c *FuncHandlerConfig) Validate() error
type HTTPHandlerConfig ¶
type HTTPHandlerConfig struct {
URL string `json:"url"`
TLS *HTTPHanlderTLSConfig `json:"tls,omitempty"`
Timeout string `json:"timeout"`
Debug bool `json:"debug"`
}
func (HTTPHandlerConfig) Validate ¶
func (c HTTPHandlerConfig) Validate() error
type HTTPHanlderTLSConfig ¶
type HTTPHanlderTLSConfig struct {
CertFile string `json:"certFile"`
KeyFile string `json:"keyFile"`
CACertFile string `json:"caCertFile"`
}
func (*HTTPHanlderTLSConfig) Validate ¶
func (c *HTTPHanlderTLSConfig) Validate() error
type HandlerConfig ¶
type HandlerConfig struct {
Exec *ExecHandlerConfig `json:"exec"`
HTTP *HTTPHandlerConfig `json:"http"`
Func *FuncHandlerConfig `json:"-"`
}
func (*HandlerConfig) Validate ¶
func (c *HandlerConfig) Validate() error
type InjectorConfig ¶ added in v0.3.0
type InjectorConfig struct {
HandlerConfig
VerifyKeyFile string `json:"verifyKeyFile"`
}
func (*InjectorConfig) Validate ¶ added in v0.3.0
func (c *InjectorConfig) Validate() error
type MetricsConfig ¶ added in v0.5.0
func (*MetricsConfig) Validate ¶ added in v0.5.0
func (c *MetricsConfig) Validate() error
type ReconcilerConfig ¶ added in v0.2.0
type ReconcilerConfig struct {
HandlerConfig
RequeueAfter string `json:"requeueAfter"`
Observe bool `json:"observe"`
}
func (*ReconcilerConfig) Validate ¶ added in v0.2.0
func (c *ReconcilerConfig) Validate() error
type ReferenceConfig ¶
type ReferenceConfig struct {
schema.GroupVersionKind
NameFieldPath string `json:"nameFieldPath"`
}
func (*ReferenceConfig) Validate ¶
func (c *ReferenceConfig) Validate() error
type SyncerConfig ¶
type SyncerConfig struct {
Interval string `json:"interval"`
}
func (SyncerConfig) Validate ¶
func (c SyncerConfig) Validate() error
type WebhookConfig ¶
type WebhookConfig struct {
Host string `json:"host"`
Port int `json:"port"`
TLS *WebhookTLSConfig `json:"tls"`
Handlers []*WebhookHandlerConfig `json:"handlers"`
}
func (*WebhookConfig) Validate ¶
func (c *WebhookConfig) Validate() error
type WebhookHandlerConfig ¶
type WebhookHandlerConfig struct {
Resource schema.GroupVersionKind `json:"resource"`
Validator *HandlerConfig `json:"validator"`
Mutator *HandlerConfig `json:"mutator"`
Injector *InjectorConfig `json:"injector"`
}
func (*WebhookHandlerConfig) Validate ¶
func (c *WebhookHandlerConfig) Validate() error
type WebhookTLSConfig ¶
func (*WebhookTLSConfig) Validate ¶
func (c *WebhookTLSConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.