webhookconfig

package
v0.0.0-...-affaa53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(indexer Indexer, webhookCfgMapName, webhookCfgMapNamespace string) *assetWebhookConfigService

Types

type AssetWebhookConfig

type AssetWebhookConfig struct {
	Validations        []AssetWebhookService `json:"validations,omitempty"`
	Mutations          []AssetWebhookService `json:"mutations,omitempty"`
	MetadataExtractors []WebhookService      `json:"metadataExtractors,omitempty"`
}

type AssetWebhookConfigMap

type AssetWebhookConfigMap map[string]AssetWebhookConfig

type AssetWebhookConfigService

type AssetWebhookConfigService interface {
	Get(ctx context.Context) (AssetWebhookConfigMap, error)
}

type AssetWebhookService

type AssetWebhookService struct {
	WebhookService `json:",inline"`
	Metadata       *runtime.RawExtension `json:"metadata,omitempty"`
}

type Config

type Config struct {
	CfgMapName      string `envconfig:"default=webhook-configmap"`
	CfgMapNamespace string `envconfig:"default=kyma-system"`
}

type Indexer

type Indexer interface {
	GetByKey(key string) (item interface{}, exists bool, err error)
}

type WebhookService

type WebhookService struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`

	// +optional
	Endpoint string `json:"endpoint,omitempty"`
	// +optional
	Filter string `json:"filter,omitempty"`
}

Directories

Path Synopsis
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL