accessrequest

package
v0.0.0-...-8f91da0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceDetails

func GetResourceDetails(ctx context.Context, clusterName string, lister client.ListResourcesClient, ids []types.ResourceID) (map[string]types.ResourceDetails, error)

GetResourceDetails gets extra details for a list of resources in a given cluster.

func GetResourceIDsByCluster

func GetResourceIDsByCluster(r types.AccessRequest) map[string][]types.ResourceID

GetResourceIDsByCluster will return resource IDs grouped by cluster.

func GetResourcesByKind

GetResourcesByKind is an alternative to client.GetResourcesWithFilters that searches with the resource kinds used in access requests instead of the resource types expected by ListResources.

The ResourceType field in the request should not be set by the caller, as it will be overridden.

func GetResourcesByResourceIDs

func GetResourcesByResourceIDs(ctx context.Context, lister client.ListResourcesClient, resourceIDs []types.ResourceID, opts ...ListResourcesRequestOption) ([]types.ResourceWithLabels, error)

GetResourcesByResourceID gets a list of resources by their resource IDs.

Types

type ListResourcesRequestOption

type ListResourcesRequestOption func(*proto.ListResourcesRequest)

Jump to

Keyboard shortcuts

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