oam

package
v1.10.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderName is provider name for install.
	ProviderName = "oam"
)

Variables

This section is empty.

Functions

func ApplyComponent

func ApplyComponent(ctx context.Context, params *oamprovidertypes.Params[cue.Value]) (cue.Value, error)

ApplyComponent apply component.

func GetProviders

func GetProviders() map[string]cuexruntime.ProviderFn

GetProviders returns the cue providers.

func GetTemplate

func GetTemplate() string

GetTemplate returns the cue template.

func RenderComponent

func RenderComponent(ctx context.Context, params *oamprovidertypes.Params[cue.Value]) (cue.Value, error)

RenderComponent render component

Types

type LoadParams

type LoadParams = oamprovidertypes.Params[LoadVars]

LoadParams is the load provider params.

type LoadReturnVars

type LoadReturnVars struct {
	Value any `json:"value"`
}

LoadReturnVars is the load provider return vars.

type LoadReturns

LoadReturns is the load provider returns.

func LoadComponent

func LoadComponent(ctx context.Context, params *LoadParams) (*LoadReturns, error)

LoadComponent load component describe info in application.

func LoadComponentInOrder

func LoadComponentInOrder(ctx context.Context, params *LoadParams) (*LoadReturns, error)

LoadComponentInOrder load component describe info in application output will be a list with order defined in application.

func LoadPolicies

func LoadPolicies(_ context.Context, params *LoadParams) (*LoadReturns, error)

LoadPolicies load policy describe info in application.

type LoadVars

type LoadVars struct {
	App string `json:"app,omitempty"`
}

LoadVars is the load provider vars.

Jump to

Keyboard shortcuts

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