compound

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type   = "compound"
	TypeV1 = Type + runtime.VersionSeparator + "v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	// contains filtered or unexported fields
}

Method finally registers events at contained methods.

func (*Method) NotifyComponentVersion

func (m *Method) NotifyComponentVersion(version common.NameVersion) error

type Spec

type Spec struct {
	runtime.ObjectVersionedType
	Specifications []*pubsub.GenericPubSubSpec `json:"specifications,omitempty"`
}

Spec provides a pub sub adapter registering events at its provider.

func New

func New(specs ...pubsub.PubSubSpec) (*Spec, error)

func (*Spec) Describe

func (s *Spec) Describe(_ cpi.Context) string

func (*Spec) Effective

func (s *Spec) Effective() pubsub.PubSubSpec

func (*Spec) PubSubMethod

func (s *Spec) PubSubMethod(repo cpi.Repository) (pubsub.PubSubMethod, error)

func (*Spec) Unwrap

func (s *Spec) Unwrap(ctx cpi.Context) []pubsub.PubSubSpec

Jump to

Keyboard shortcuts

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