Documentation
¶
Index ¶
- func SetupClusterCrawlerWebhookWithManager(mgr ctrl.Manager) error
- func SetupClusterDownloaderWebhookWithManager(mgr ctrl.Manager) error
- func SetupClusterUploaderWebhookWithManager(mgr ctrl.Manager) error
- 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 ClusterCrawlerCustomValidator
- func (v *ClusterCrawlerCustomValidator) ValidateCreate(_ context.Context, obj *ocularcrashoverriderunv1beta1.ClusterCrawler) (admission.Warnings, error)
- func (v *ClusterCrawlerCustomValidator) ValidateDelete(ctx context.Context, obj *ocularcrashoverriderunv1beta1.ClusterCrawler) (admission.Warnings, error)
- func (v *ClusterCrawlerCustomValidator) ValidateUpdate(_ context.Context, ...) (admission.Warnings, error)
- type ClusterDownloaderCustomValidator
- func (v *ClusterDownloaderCustomValidator) ValidateCreate(_ context.Context, obj *ocularcrashoverriderunv1beta1.ClusterDownloader) (admission.Warnings, error)
- func (v *ClusterDownloaderCustomValidator) ValidateDelete(ctx context.Context, obj *ocularcrashoverriderunv1beta1.ClusterDownloader) (admission.Warnings, error)
- func (v *ClusterDownloaderCustomValidator) ValidateUpdate(_ context.Context, ...) (admission.Warnings, error)
- type ClusterUploaderCustomValidator
- func (v *ClusterUploaderCustomValidator) ValidateCreate(_ context.Context, obj *ocularcrashoverriderunv1beta1.ClusterUploader) (admission.Warnings, error)
- func (v *ClusterUploaderCustomValidator) ValidateDelete(ctx context.Context, obj *ocularcrashoverriderunv1beta1.ClusterUploader) (admission.Warnings, error)
- func (v *ClusterUploaderCustomValidator) ValidateUpdate(ctx context.Context, ...) (admission.Warnings, error)
- type CrawlerCustomValidator
- func (v *CrawlerCustomValidator) ValidateCreate(ctx context.Context, crawler *ocularcrashoverriderunv1beta1.Crawler) (admission.Warnings, error)
- func (v *CrawlerCustomValidator) ValidateDelete(ctx context.Context, crawler *ocularcrashoverriderunv1beta1.Crawler) (admission.Warnings, error)
- func (v *CrawlerCustomValidator) ValidateUpdate(ctx context.Context, ...) (admission.Warnings, error)
- type CronSearchCustomDefaulter
- type CronSearchCustomValidator
- func (v *CronSearchCustomValidator) ValidateCreate(_ context.Context, cronSearch *v1beta1.CronSearch) (admission.Warnings, error)
- func (v *CronSearchCustomValidator) ValidateDelete(_ context.Context, cronSearch *v1beta1.CronSearch) (admission.Warnings, error)
- func (v *CronSearchCustomValidator) ValidateUpdate(_ context.Context, _, newCronSearch *v1beta1.CronSearch) (admission.Warnings, error)
- type DownloaderCustomValidator
- func (v *DownloaderCustomValidator) ValidateCreate(_ context.Context, downloader *ocularcrashoverriderunv1beta1.Downloader) (admission.Warnings, error)
- func (v *DownloaderCustomValidator) ValidateDelete(ctx context.Context, downloader *ocularcrashoverriderunv1beta1.Downloader) (admission.Warnings, error)
- func (v *DownloaderCustomValidator) ValidateUpdate(_ context.Context, _, newDownloader *ocularcrashoverriderunv1beta1.Downloader) (admission.Warnings, error)
- type PipelineCustomDefaulter
- type PipelineCustomValidator
- func (v *PipelineCustomValidator) ValidateCreate(ctx context.Context, pipeline *ocularcrashoverriderunv1beta1.Pipeline) (admission.Warnings, error)
- func (v *PipelineCustomValidator) ValidateDelete(ctx context.Context, pipeline *ocularcrashoverriderunv1beta1.Pipeline) (admission.Warnings, error)
- func (v *PipelineCustomValidator) ValidateUpdate(ctx context.Context, _, newPipeline *ocularcrashoverriderunv1beta1.Pipeline) (admission.Warnings, error)
- type ProfileCustomValidator
- func (v *ProfileCustomValidator) ValidateCreate(ctx context.Context, profile *ocularcrashoverriderunv1beta1.Profile) (admission.Warnings, error)
- func (v *ProfileCustomValidator) ValidateDelete(ctx context.Context, profile *ocularcrashoverriderunv1beta1.Profile) (admission.Warnings, error)
- func (v *ProfileCustomValidator) ValidateUpdate(ctx context.Context, _, newProfile *ocularcrashoverriderunv1beta1.Profile) (admission.Warnings, error)
- type SearchCustomValidator
- func (v *SearchCustomValidator) ValidateCreate(ctx context.Context, search *ocularcrashoverriderunv1beta1.Search) (admission.Warnings, error)
- func (v *SearchCustomValidator) ValidateDelete(ctx context.Context, search *ocularcrashoverriderunv1beta1.Search) (admission.Warnings, error)
- func (v *SearchCustomValidator) ValidateUpdate(ctx context.Context, ...) (admission.Warnings, error)
- type UploaderCustomValidator
- func (v *UploaderCustomValidator) ValidateCreate(_ context.Context, uploader *ocularcrashoverriderunv1beta1.Uploader) (admission.Warnings, error)
- func (v *UploaderCustomValidator) ValidateDelete(ctx context.Context, uploader *ocularcrashoverriderunv1beta1.Uploader) (admission.Warnings, error)
- func (v *UploaderCustomValidator) ValidateUpdate(ctx context.Context, ...) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupClusterCrawlerWebhookWithManager ¶ added in v0.2.5
SetupClusterCrawlerWebhookWithManager registers the webhook for ClusterCrawler in the manager.
func SetupClusterDownloaderWebhookWithManager ¶ added in v0.2.5
SetupClusterDownloaderWebhookWithManager registers the webhook for ClusterDownloader in the manager.
func SetupClusterUploaderWebhookWithManager ¶ added in v0.2.5
SetupClusterUploaderWebhookWithManager registers the webhook for ClusterUploader in the manager.
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 ClusterCrawlerCustomValidator ¶ added in v0.2.5
type ClusterCrawlerCustomValidator struct {
// contains filtered or unexported fields
}
func (*ClusterCrawlerCustomValidator) ValidateCreate ¶ added in v0.2.5
func (v *ClusterCrawlerCustomValidator) ValidateCreate(_ context.Context, obj *ocularcrashoverriderunv1beta1.ClusterCrawler) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type ClusterCrawler.
func (*ClusterCrawlerCustomValidator) ValidateDelete ¶ added in v0.2.5
func (v *ClusterCrawlerCustomValidator) ValidateDelete(ctx context.Context, obj *ocularcrashoverriderunv1beta1.ClusterCrawler) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type ClusterCrawler.
func (*ClusterCrawlerCustomValidator) ValidateUpdate ¶ added in v0.2.5
func (v *ClusterCrawlerCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *ocularcrashoverriderunv1beta1.ClusterCrawler) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type ClusterCrawler.
type ClusterDownloaderCustomValidator ¶ added in v0.2.5
type ClusterDownloaderCustomValidator struct {
// contains filtered or unexported fields
}
ClusterDownloaderCustomValidator struct is responsible for validating the ClusterDownloader resource
func (*ClusterDownloaderCustomValidator) ValidateCreate ¶ added in v0.2.5
func (v *ClusterDownloaderCustomValidator) ValidateCreate(_ context.Context, obj *ocularcrashoverriderunv1beta1.ClusterDownloader) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type ClusterDownloader.
func (*ClusterDownloaderCustomValidator) ValidateDelete ¶ added in v0.2.5
func (v *ClusterDownloaderCustomValidator) ValidateDelete(ctx context.Context, obj *ocularcrashoverriderunv1beta1.ClusterDownloader) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type ClusterDownloader.
func (*ClusterDownloaderCustomValidator) ValidateUpdate ¶ added in v0.2.5
func (v *ClusterDownloaderCustomValidator) ValidateUpdate(_ context.Context, oldObj, newObj *ocularcrashoverriderunv1beta1.ClusterDownloader) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type ClusterDownloader.
type ClusterUploaderCustomValidator ¶ added in v0.2.5
type ClusterUploaderCustomValidator struct {
// contains filtered or unexported fields
}
ClusterUploaderCustomValidator struct is responsible for validating the ClusterUploader resource when it is created, updated, or deleted.
func (*ClusterUploaderCustomValidator) ValidateCreate ¶ added in v0.2.5
func (v *ClusterUploaderCustomValidator) ValidateCreate(_ context.Context, obj *ocularcrashoverriderunv1beta1.ClusterUploader) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type ClusterUploader.
func (*ClusterUploaderCustomValidator) ValidateDelete ¶ added in v0.2.5
func (v *ClusterUploaderCustomValidator) ValidateDelete(ctx context.Context, obj *ocularcrashoverriderunv1beta1.ClusterUploader) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type ClusterUploader.
func (*ClusterUploaderCustomValidator) ValidateUpdate ¶ added in v0.2.5
func (v *ClusterUploaderCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj *ocularcrashoverriderunv1beta1.ClusterUploader) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type ClusterUploader.
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, crawler *ocularcrashoverriderunv1beta1.Crawler) (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, crawler *ocularcrashoverriderunv1beta1.Crawler) (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, oldCrawler, newCrawler *ocularcrashoverriderunv1beta1.Crawler) (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.
func (*CronSearchCustomDefaulter) Default ¶
func (d *CronSearchCustomDefaulter) Default(_ context.Context, cronSearch *v1beta1.CronSearch) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Search.
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, cronSearch *v1beta1.CronSearch) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type CronSearch.
func (*CronSearchCustomValidator) ValidateDelete ¶
func (v *CronSearchCustomValidator) ValidateDelete(_ context.Context, cronSearch *v1beta1.CronSearch) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type CronSearch.
func (*CronSearchCustomValidator) ValidateUpdate ¶
func (v *CronSearchCustomValidator) ValidateUpdate(_ context.Context, _, newCronSearch *v1beta1.CronSearch) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type CronSearch.
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, downloader *ocularcrashoverriderunv1beta1.Downloader) (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, downloader *ocularcrashoverriderunv1beta1.Downloader) (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, _, newDownloader *ocularcrashoverriderunv1beta1.Downloader) (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.
func (*PipelineCustomDefaulter) Default ¶
func (d *PipelineCustomDefaulter) Default(_ context.Context, pipeline *ocularcrashoverriderunv1beta1.Pipeline) error
Default implements webhook.CustomDefaulter so a webhook will be registered for the Kind Pipeline.
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, pipeline *ocularcrashoverriderunv1beta1.Pipeline) (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, pipeline *ocularcrashoverriderunv1beta1.Pipeline) (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, _, newPipeline *ocularcrashoverriderunv1beta1.Pipeline) (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, profile *ocularcrashoverriderunv1beta1.Profile) (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, profile *ocularcrashoverriderunv1beta1.Profile) (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, _, newProfile *ocularcrashoverriderunv1beta1.Profile) (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, search *ocularcrashoverriderunv1beta1.Search) (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, search *ocularcrashoverriderunv1beta1.Search) (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, oldSearch, newSearch *ocularcrashoverriderunv1beta1.Search) (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, uploader *ocularcrashoverriderunv1beta1.Uploader) (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, uploader *ocularcrashoverriderunv1beta1.Uploader) (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, oldUploader, newUploader *ocularcrashoverriderunv1beta1.Uploader) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Uploader.