components

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

func CheckDeprecated added in v1.12.0

func CheckDeprecated(log logger.Logger, name, version string, versionSet Versioning)

CheckDeprecated checks if a version is deprecated and logs a warning if it is using information derived from the version set.

func IsInitialVersion added in v1.0.0

func IsInitialVersion(version string) bool

IsInitialVersion returns true when a version is considered an unstable version (v0) or first stable version (v1). For backward compatibility, empty strings are also included.

func IsWasmComponentType added in v1.12.0

func IsWasmComponentType(componentType string) bool

func RegisterWasmComponentType added in v1.12.0

func RegisterWasmComponentType(category Category, typeName string)

Types

type Category added in v1.9.0

type Category string
const (
	CategoryBindings        Category = "bindings"
	CategoryPubSub          Category = "pubsub"
	CategorySecretStore     Category = "secretstores"
	CategoryStateStore      Category = "state"
	CategoryWorkflow        Category = "workflow"
	CategoryWorkflowBackend Category = "workflowbackend"
	CategoryMiddleware      Category = "middleware"
	CategoryConfiguration   Category = "configuration"
	CategoryCryptoProvider  Category = "crypto"
	CategoryLock            Category = "lock"
	CategoryNameResolution  Category = "nameresolution"
)

supported components category

type VersionConstructor added in v1.12.0

type VersionConstructor struct {
	Version     string
	Constructor any
}

VersionConstructor is a version name func pair used to construct a component.

type Versioning added in v1.12.0

type Versioning struct {
	// Preferred is the preferred version to use, used to log a warning if a
	// deprecated version is used.
	Preferred VersionConstructor

	// Deprecated is a list of deprecated versions to log a warning if used.
	Deprecated []VersionConstructor

	// Others is a list of other versions that are supported, but not preferred.
	Others []VersionConstructor

	// Default is the default version to use when no version is specified. This
	// should make a VersionConstructor from the set above.
	Default string
}

Versioning is a struct that contains the versioning information for a single component Type. It is expected that each VersionConstructor be unique.

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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