dapr

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaprAPIVersion = "dapr.io/v1alpha1"
	DaprKind       = "Component"
)

Variables

This section is empty.

Functions

func ConstructDaprGeneric

func ConstructDaprGeneric(daprGeneric DaprGeneric, namespace string, componentName string, applicationName string, resourceName string, resourceType string) (unstructured.Unstructured, error)

ConstructDaprGeneric constructs a Dapr component.

The component name and resource name may be different. The component name is the name of the Dapr Kubernetes Component object to be created. Resource name is the name of the Radius resource.

Types

type DaprGeneric

type DaprGeneric struct {
	Type     *string
	Version  *string
	Metadata map[string]any
}

func (DaprGeneric) Validate

func (daprGeneric DaprGeneric) Validate() error

Validate checks if the required fields of a DaprGeneric struct are set and returns an error if any of them are not.

Jump to

Keyboard shortcuts

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