Documentation
¶
Index ¶
- func SetupCrawlerWebhookWithManager(mgr ctrl.Manager) error
- func SetupCronSearchWebhookWithManager(mgr ctrl.Manager) error
- func SetupDownloaderWebhookWithManager(mgr ctrl.Manager) error
- func SetupPipelineWebhookWithManager(mgr ctrl.Manager) error
- func SetupProfileWebhookWithManager(mgr ctrl.Manager) error
- func SetupSearchWebhookWithManager(mgr ctrl.Manager) error
- func SetupUploaderWebhookWithManager(mgr ctrl.Manager) error
- type CrawlerCustomValidator
- func (v *CrawlerCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *CrawlerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *CrawlerCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type CronSearchCustomDefaulter
- type CronSearchCustomValidator
- func (v *CronSearchCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *CronSearchCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *CronSearchCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type DownloaderCustomValidator
- func (v *DownloaderCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *DownloaderCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *DownloaderCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type PipelineCustomDefaulter
- type PipelineCustomValidator
- func (v *PipelineCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PipelineCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *PipelineCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
- type ProfileCustomValidator
- func (v *ProfileCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ProfileCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ProfileCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type SearchCustomValidator
- func (v *SearchCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SearchCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *SearchCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type UploaderCustomValidator
- func (v *UploaderCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *UploaderCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *UploaderCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupCrawlerWebhookWithManager ¶
SetupCrawlerWebhookWithManager registers the webhook for Crawler in the manager.
func SetupCronSearchWebhookWithManager ¶
SetupCronSearchWebhookWithManager registers the webhook for CronSearch in the manager.
func SetupDownloaderWebhookWithManager ¶
SetupDownloaderWebhookWithManager registers the webhook for Downloader in the manager.
func SetupPipelineWebhookWithManager ¶
SetupPipelineWebhookWithManager registers the webhook for Pipeline in the manager.
func SetupProfileWebhookWithManager ¶
SetupProfileWebhookWithManager registers the webhook for Profile in the manager.
func SetupSearchWebhookWithManager ¶
SetupSearchWebhookWithManager registers the webhook for Search in the manager.
func SetupUploaderWebhookWithManager ¶
SetupUploaderWebhookWithManager registers the webhook for Uploader in the manager.
Types ¶
type CrawlerCustomValidator ¶
type CrawlerCustomValidator struct {
// contains filtered or unexported fields
}
CrawlerCustomValidator struct is responsible for validating the Crawler resource when it is created, updated, or deleted.
func (*CrawlerCustomValidator) ValidateCreate ¶
func (v *CrawlerCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Crawler.
func (*CrawlerCustomValidator) ValidateDelete ¶
func (v *CrawlerCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Crawler.
func (*CrawlerCustomValidator) ValidateUpdate ¶
func (v *CrawlerCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Crawler.
type CronSearchCustomDefaulter ¶
type CronSearchCustomDefaulter struct {
// Default values for various CronJob fields
DefaultConcurrencyPolicy v1beta1.ConcurrencyPolicy
DefaultSuspend bool
DefaultSuccessfulJobsHistoryLimit int32
DefaultFailedJobsHistoryLimit int32
}
CronSearchCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind CronSearch when those are created or updated.
type CronSearchCustomValidator ¶
type CronSearchCustomValidator struct{}
CronSearchCustomValidator struct is responsible for validating the CronSearch resource when it is created, updated, or deleted.
func (*CronSearchCustomValidator) ValidateCreate ¶
func (v *CronSearchCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type CronSearch.
func (*CronSearchCustomValidator) ValidateDelete ¶
func (v *CronSearchCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Search.
func (*CronSearchCustomValidator) ValidateUpdate ¶
func (v *CronSearchCustomValidator) ValidateUpdate(_ context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Search.
type DownloaderCustomValidator ¶
type DownloaderCustomValidator struct {
// contains filtered or unexported fields
}
DownloaderCustomValidator struct is responsible for validating the Downloader resource when it is created, updated, or deleted.
func (*DownloaderCustomValidator) ValidateCreate ¶
func (v *DownloaderCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Downloader.
func (*DownloaderCustomValidator) ValidateDelete ¶
func (v *DownloaderCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Downloader.
func (*DownloaderCustomValidator) ValidateUpdate ¶
func (v *DownloaderCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Downloader.
type PipelineCustomDefaulter ¶
type PipelineCustomDefaulter struct {
}
PipelineCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Pipeline when those are created or updated.
type PipelineCustomValidator ¶
type PipelineCustomValidator struct {
// contains filtered or unexported fields
}
PipelineCustomValidator struct is responsible for validating the Pipeline resource when it is created, updated, or deleted.
func (*PipelineCustomValidator) ValidateCreate ¶
func (v *PipelineCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Pipeline.
func (*PipelineCustomValidator) ValidateDelete ¶
func (v *PipelineCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Pipeline.
func (*PipelineCustomValidator) ValidateUpdate ¶
func (v *PipelineCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Pipeline.
type ProfileCustomValidator ¶
type ProfileCustomValidator struct {
// contains filtered or unexported fields
}
ProfileCustomValidator struct is responsible for validating the Profile resource when it is created, updated, or deleted.
func (*ProfileCustomValidator) ValidateCreate ¶
func (v *ProfileCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Profile.
func (*ProfileCustomValidator) ValidateDelete ¶
func (v *ProfileCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Profile.
func (*ProfileCustomValidator) ValidateUpdate ¶
func (v *ProfileCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Profile.
type SearchCustomValidator ¶
type SearchCustomValidator struct {
// contains filtered or unexported fields
}
SearchCustomValidator struct is responsible for validating the Search resource when it is created, updated, or deleted.
func (*SearchCustomValidator) ValidateCreate ¶
func (v *SearchCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Search.
func (*SearchCustomValidator) ValidateDelete ¶
func (v *SearchCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Search.
func (*SearchCustomValidator) ValidateUpdate ¶
func (v *SearchCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Search.
type UploaderCustomValidator ¶
type UploaderCustomValidator struct {
// contains filtered or unexported fields
}
UploaderCustomValidator struct is responsible for validating the Uploader resource when it is created, updated, or deleted.
func (*UploaderCustomValidator) ValidateCreate ¶
func (v *UploaderCustomValidator) ValidateCreate(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Uploader.
func (*UploaderCustomValidator) ValidateDelete ¶
func (v *UploaderCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Uploader.
func (*UploaderCustomValidator) ValidateUpdate ¶
func (v *UploaderCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Uploader.