Documentation ¶
Index ¶
- func MapAPIToCRD(request testkube.WebhookCreateRequest) executorv1.Webhook
- func MapCRDToAPI(item executorv1.Webhook) testkube.Webhook
- func MapEventArrayToCRDEvents(items []executorv1.EventType) (events []testkube.EventType)
- func MapEventTypesToStringArray(eventTypes []testkube.EventType) (arr []executorv1.EventType)
- func MapSpecToUpdate(webhook *executorv1.Webhook) (request testkube.WebhookUpdateRequest)
- func MapStringArrayToCRDEvents(items []string) (events []testkube.EventType)
- func MapUpdateToSpec(request testkube.WebhookUpdateRequest, webhook *executorv1.Webhook) *executorv1.Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapAPIToCRD ¶
func MapAPIToCRD(request testkube.WebhookCreateRequest) executorv1.Webhook
MapAPIToCRD maps OpenAPI spec WebhookCreateRequest to CRD Webhook
func MapCRDToAPI ¶
func MapCRDToAPI(item executorv1.Webhook) testkube.Webhook
MapCRDToAPI maps Webhook CRD to OpenAPI spec Webhook
func MapEventArrayToCRDEvents ¶ added in v1.10.21
func MapEventArrayToCRDEvents(items []executorv1.EventType) (events []testkube.EventType)
MapEventArrayToCRDEvents maps event array of event types to OpenAPI spec list of EventType
func MapEventTypesToStringArray ¶
func MapEventTypesToStringArray(eventTypes []testkube.EventType) (arr []executorv1.EventType)
MapEventTypesToStringArray maps OpenAPI spec list of EventType to string array
func MapSpecToUpdate ¶ added in v1.14.0
func MapSpecToUpdate(webhook *executorv1.Webhook) (request testkube.WebhookUpdateRequest)
MapSpecToUpdate maps Webhook CRD to WebhookUpdate Request to spec
func MapStringArrayToCRDEvents ¶
MapStringArrayToCRDEvents maps string array of event types to OpenAPI spec list of EventType
func MapUpdateToSpec ¶ added in v1.14.0
func MapUpdateToSpec(request testkube.WebhookUpdateRequest, webhook *executorv1.Webhook) *executorv1.Webhook
MapUpdateToSpec maps WebhookUpdateRequest to Wehook CRD spec
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.