Documentation ¶
Index ¶
- Constants
- func ApplyComponent(ctx context.Context, params *oamprovidertypes.Params[cue.Value]) (cue.Value, error)
- func GetProviders() map[string]cuexruntime.ProviderFn
- func GetTemplate() string
- func RenderComponent(ctx context.Context, params *oamprovidertypes.Params[cue.Value]) (cue.Value, error)
- type LoadParams
- type LoadReturnVars
- type LoadReturns
- type LoadVars
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.
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 ¶
type LoadReturns = oamprovidertypes.Returns[LoadReturnVars]
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.
Click to show internal directories.
Click to hide internal directories.