Versions in this module Expand all Collapse all v1 v1.10.1 Feb 12, 2025 v1.10.0 Feb 3, 2025 Changes in this version + const DefaultMaxDepth + const HelmReleaseKind + const ProviderName + func CheckResourceStatus(obj unstructured.Unstructured) (*types.HealthStatus, error) + func GetProviders() map[string]cuexruntime.ProviderFn + func GetTemplate() string + type AppCollector struct + func NewAppCollector(cli client.Client, opt Option) *AppCollector + func (c *AppCollector) CollectResourceFromApp(ctx context.Context) ([]Resource, error) + func (c *AppCollector) FindResourceFromAppliedResourcesField(ctx context.Context, app *v1beta1.Application) ([]Resource, error) + func (c *AppCollector) FindResourceFromResourceTrackerSpec(ctx context.Context, app *v1beta1.Application) ([]Resource, error) + func (c *AppCollector) ListApplicationResources(ctx context.Context, app *v1beta1.Application) ([]types.AppliedResource, error) + type ChildrenResourcesRule struct + DefaultGenListOptionFunc genListOptionFunc + DisableFilterByOwnerReference bool + GroupResourceType GroupResourceType + SubResources *SubResources + type CustomSelector struct + DefaultLabelSelector bool + type FilterOption struct + APIVersion string + Cluster string + ClusterNamespace string + Components []string + Kind string + QueryNewest bool + type GroupResourceType struct + Group string + Kind string + type ListParams = oamprovidertypes.OAMParams[ListVars] + type ListResult struct + Error string + List []T + func CollectResources(ctx context.Context, params *ListParams) (*ListResult[querytypes.ResourceItem], error) + func CollectServiceEndpoints(ctx context.Context, params *ListParams) (*ListResult[querytypes.ServiceEndpoint], error) + func ListAppliedResources(ctx context.Context, params *ListParams) (*ListResult[querytypes.AppliedResource], error) + func ListResourcesInApp(ctx context.Context, params *ListParams) (*ListResult[Resource], error) + func SearchEvents(ctx context.Context, params *SearchParams) (*ListResult[corev1.Event], error) + type ListVars struct + App Option + type LogParams = oamprovidertypes.OAMParams[LogVars] + type LogResult struct + Outputs map[string]interface{} + func CollectLogsInPod(ctx context.Context, params *LogParams) (*LogResult, error) + type LogVars struct + Cluster string + Namespace string + Options *corev1.PodLogOptions + Pod string + type Option struct + Filter FilterOption + Name string + Namespace string + WithStatus bool + WithTree bool + type Resource struct + Cluster string + Component string + Object *unstructured.Unstructured + Revision string + type ResourceType struct + APIVersion string + Kind string + type RuleList []ChildrenResourcesRule + func (rl *RuleList) GetRule(grt GroupResourceType) (*ChildrenResourcesRule, bool) + type SearchParams = oamprovidertypes.OAMParams[SearchVars] + type SearchVars struct + Cluster string + Value *unstructured.Unstructured + type SubResourceSelector struct + type SubResources []*SubResourceSelector + func (c *SubResources) Get(rt ResourceType) *SubResourceSelector + func (c *SubResources) Put(cr *SubResourceSelector) + type WorkloadUnstructured struct + func (w *WorkloadUnstructured) GetSelector(fields ...string) (labels.Selector, error) v1.10.0-alpha.1 Oct 1, 2024