transformer

package
v0.0.0-...-72c293c Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(rl *fn.ResourceList) (bool, error)

Types

type Certificate

type Certificate struct {
	IssuerRef string `json:"issuerRef,omitempty" yaml:"issuerRef,omitempty"`
}

type Container

type Container struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type Service

type Service struct {
	Port       int32 `json:"port,omitempty" yaml:"port,omitempty"`
	TargetPort int32 `json:"targetPort,omitempty" yaml:"targetPort,omitempty"`
}

type WebHookOperation

type WebHookOperation string
const (
	WebHookOperationAdd    WebHookOperation = "add"
	WebHookOperationDelete WebHookOperation = "delete"
)

type Webhook

type Webhook struct {
	Operation WebHookOperation `json:"operation,omitempty" yaml:"operation,omitempty"`
	// webhook meta
	Webhook WebhookMeta `json:"webhook,omitempty" yaml:"webhook,omitempty"`
	// service
	Service Service `json:"service,omitempty" yaml:"service,omitempty"`
	// sertifcate
	Certificate Certificate `json:"certificate,omitempty" yaml:"certificate,omitempty"`
	// container
	Container Container `json:"container,omitempty" yaml:"container,omitempty"`
	// sWebhookResults is used internally to track which resources were updated
	WebhookResults webhookResults
}

Webhook contains the information to perform the operation to create or delete a webhook of a package

func (*Webhook) Transform

func (t *Webhook) Transform(rl *fn.ResourceList)

type WebhookMeta

type WebhookMeta struct {
	Name      string `json:"name,omitempty" yaml:"name,omitempty"`
	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
}

Jump to

Keyboard shortcuts

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