Documentation ¶
Index ¶
- Constants
- func ApplyComponent(ctx context.Context, params *oamprovidertypes.OAMParams[cue.Value]) (cue.Value, error)
- func GetProviders() map[string]cuexruntime.ProviderFn
- func GetTemplate() string
- func RenderComponent(ctx context.Context, params *oamprovidertypes.OAMParams[cue.Value]) (cue.Value, error)
- type LoadParams
- type LoadResult
- 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.OAMParams[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.OAMParams[LoadVars]
LoadParams is the load provider params.
type LoadResult ¶
type LoadResult struct {
Value any `json:"value"`
}
LoadResult is the load provider result.
func LoadComponent ¶
func LoadComponent(ctx context.Context, params *LoadParams) (*LoadResult, error)
LoadComponent load component describe info in application.
func LoadComponentInOrder ¶
func LoadComponentInOrder(ctx context.Context, params *LoadParams) (*LoadResult, 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) (*LoadResult, error)
LoadPolicies load policy describe info in application.
Click to show internal directories.
Click to hide internal directories.