meta

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 8 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
	GetName() string
	GetNamespace() string
	GetSecretStore() string
	NameValuePairs() []common.NameValuePair
}

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