meta

package
v1.14.1 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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const WasmStrictSandboxMetadataKey = "strictSandbox"

Variables

This section is empty.

Functions

func ContainsNamespace

func ContainsNamespace(items []common.NameValuePair) bool

Types

type Meta

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

func New

func New(options Options) *Meta

func (*Meta) AddWasmStrictSandbox

func (m *Meta) AddWasmStrictSandbox(comp *compapi.Component)

AddWasmStrictSandbox adds global wasm strict sandbox configuration to component metadata. When strict sandbox is enabled, WASM components always run in strict mode regardless of their configuration. When strict sandbox is disabled or unset, keep the original component configuration.

func (*Meta) AuthSecretStoreOrDefault

func (m *Meta) AuthSecretStoreOrDefault(resource Resource) string

func (*Meta) ToBaseMetadata

func (m *Meta) ToBaseMetadata(comp compapi.Component) (metadata.Base, error)

type Options

type Options struct {
	ID            string
	PodName       string
	Namespace     string
	StrictSandbox bool
	Mode          modes.DaprMode
}

type Resource

type Resource interface {
	Kind() string
	APIVersion() string
	GetName() string
	GetNamespace() string
	LogName() string
	GetSecretStore() string
	GetScopes() []string
	NameValuePairs() []common.NameValuePair
	ClientObject() client.Object

	// Returns a deep copy of the resource, with the object meta set only with
	// Name and Namespace.
	EmptyMetaDeepCopy() metav1.Object
}

Resource interface that applies to both Component and HTTPEndpoint resources.

Jump to

Keyboard shortcuts

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