codec

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

View Source
const ExtensionWorkMeta = "metadata"

ExtensionWorkMeta is an extension attribute for work meta data.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestBundleCodec

type ManifestBundleCodec struct{}

ManifestBundleCodec is a codec to encode/decode a ManifestWork/cloudevent with ManifestBundle for a source.

func NewManifestBundleCodec

func NewManifestBundleCodec() *ManifestBundleCodec

func (*ManifestBundleCodec) Decode

Decode a cloudevent whose data is ManifestBundle to a ManifestWork.

func (*ManifestBundleCodec) Encode

func (c *ManifestBundleCodec) Encode(source string, eventType types.CloudEventsType, work *workv1.ManifestWork) (*cloudevents.Event, error)

Encode the spec of a ManifestWork to a cloudevent with ManifestBundle.

func (*ManifestBundleCodec) EventDataType

func (c *ManifestBundleCodec) EventDataType() types.CloudEventsDataType

EventDataType always returns the event data type `io.open-cluster-management.works.v1alpha1.manifestbundles`.

Jump to

Keyboard shortcuts

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