Documentation
¶
Index ¶
- func GetProviders() map[string]cuexruntime.ProviderFn
- func GetTemplate() string
- func Log(ctx context.Context, params *LogParams) (*any, error)
- func PatchK8sObject(_ context.Context, params *providertypes.Params[cue.Value]) (cue.Value, error)
- type LogConfig
- type LogParams
- type LogSource
- type LogVars
- type PatchVars
- type Resource
- type StringParams
- type StringReturnVars
- type StringReturns
- type StringVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviders ¶ added in v0.6.2
func GetProviders() map[string]cuexruntime.ProviderFn
GetProviders return the provider
Types ¶
type LogConfig ¶ added in v0.6.2
type LogConfig struct { Data bool `json:"data,omitempty"` Source *LogSource `json:"source,omitempty"` }
LogConfig is the config of the log
type LogSource ¶ added in v0.6.2
type LogSource struct { URL string `json:"url,omitempty"` Resources []Resource `json:"resources,omitempty"` }
LogSource is the source of the log
type LogVars ¶ added in v0.6.2
type LogVars struct { Data any `json:"data,omitempty"` Level int `json:"level"` Source *LogSource `json:"source,omitempty"` }
LogVars is the vars for log
type Resource ¶ added in v0.6.2
type Resource struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` Cluster string `json:"cluster,omitempty"` LabelSelector map[string]string `json:"labelSelector,omitempty"` }
Resource is the log resources
type StringParams ¶ added in v0.6.2
type StringParams = providertypes.Params[StringVars]
StringParams .
type StringReturnVars ¶ added in v0.6.2
type StringReturnVars struct {
String string `json:"str"`
}
StringReturnVars .
type StringReturns ¶ added in v0.6.2
type StringReturns = providertypes.Returns[StringReturnVars]
StringReturns .
func String ¶ added in v0.6.2
func String(_ context.Context, params *StringParams) (*StringReturns, error)
String convert byte to string
Click to show internal directories.
Click to hide internal directories.