components

package
v0.0.0-...-e30ce0b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Unstable version (v0).
	UnstableVersion = "v0"

	// First stable version (v1).
	FirstStableVersion = "v1"

	CloudEventMetadataType   = "cloudevent.type"
	CloudEventMetadataSource = "cloudevent.source"
	CloudEventMetadataId     = "cloudevent.id"
)

Variables

View Source
var (
	CloudEventMetadataKeys = map[string]struct{}{
		CloudEventMetadataType:   {},
		CloudEventMetadataSource: {},
		CloudEventMetadataId:     {},
	}
)

Functions

func IsInitialVersion

func IsInitialVersion(version string) bool

Types

type CompStore

type CompStore[T any] struct {
	// contains filtered or unexported fields
}

func NewCompStore

func NewCompStore[T any]() *CompStore[T]

func (*CompStore[T]) Del

func (c *CompStore[T]) Del(name string)

func (*CompStore[T]) Get

func (c *CompStore[T]) Get(name string) (T, bool)

func (*CompStore[T]) Set

func (c *CompStore[T]) Set(name string, val T)

type Loader

type Loader interface {
	LoadComponents() ([]v1alpha1.Component, error)
}

type LocalComponents

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

func NewLocalComponents

func NewLocalComponents(resourcesPaths ...string) *LocalComponents

func (*LocalComponents) LoadComponents

func (l *LocalComponents) LoadComponents() ([]v1alpha1.Component, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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