transformation

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const TransformationContextLabel = "triggermesh.io/transformation-context"

Variables

This section is empty.

Functions

func New

func New(name, kind, broker, version string, crd crd.CRD, spec map[string]interface{}) triggermesh.Component

Types

type Transformation

type Transformation struct {
	Name    string
	CRD     crd.CRD
	Broker  string
	Version string
	// contains filtered or unexported fields
}

func (*Transformation) AsDigitalOceanObject added in v1.2.0

func (t *Transformation) AsDigitalOceanObject(additionalEnvs map[string]string) (interface{}, error)

func (*Transformation) AsDockerComposeObject added in v1.2.0

func (t *Transformation) AsDockerComposeObject(additionalEnvs map[string]string) (interface{}, error)

func (*Transformation) AsK8sObject

func (t *Transformation) AsK8sObject() (kubernetes.Object, error)

func (*Transformation) AsKubernetesDeployment added in v1.4.0

func (t *Transformation) AsKubernetesDeployment(additionalEnvs map[string]string) (interface{}, error)

func (*Transformation) ConsumedEventTypes

func (t *Transformation) ConsumedEventTypes() ([]string, error)

func (*Transformation) GetAPIVersion

func (t *Transformation) GetAPIVersion() string

func (*Transformation) GetEventSource

func (t *Transformation) GetEventSource() (string, error)

func (*Transformation) GetEventTypes

func (t *Transformation) GetEventTypes() ([]string, error)

func (*Transformation) GetKind

func (t *Transformation) GetKind() string

func (*Transformation) GetName

func (t *Transformation) GetName() string

func (*Transformation) GetPort

func (t *Transformation) GetPort(ctx context.Context) (string, error)

func (*Transformation) GetSpec

func (t *Transformation) GetSpec() map[string]interface{}

func (*Transformation) Info

func (*Transformation) Logs added in v1.2.0

func (t *Transformation) Logs(ctx context.Context, since time.Time, follow bool) (io.ReadCloser, error)

func (*Transformation) SetEventAttributes

func (t *Transformation) SetEventAttributes(attributes map[string]string) error

SetEventType sets events context attributes.

func (*Transformation) SetLabel added in v1.3.0

func (t *Transformation) SetLabel(key, value string)

func (*Transformation) SetSpec added in v1.2.0

func (t *Transformation) SetSpec(spec map[string]interface{})

func (*Transformation) Start

func (t *Transformation) Start(ctx context.Context, additionalEnvs map[string]string, restart bool) (*docker.Container, error)

func (*Transformation) Stop

func (t *Transformation) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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