Versions in this module Expand all Collapse all v0 v0.1.2 Jan 29, 2024 Changes in this version + type BatonService struct + func (b *BatonService) GetAccess(ctx context.Context, resourceType, resourceID string) (*v1.ResourceAccessListOutput, error) + func (b *BatonService) GetAccessForResource(ctx context.Context, resourceType, resourceID string) (*ResourceAccessListOutput, error) + func (b *BatonService) GetEntitlements(ctx context.Context) (*v1.EntitlementListOutput, error) + func (b *BatonService) GetPrincipals(ctx context.Context, resourceType, resourceID string) (*v1.ResourceListOutput, error) + func (b *BatonService) GetResourceById(ctx context.Context, resourceType, resourceID string) (*v1.ResourceOutput, error) + func (b *BatonService) GetResourceTypes(ctx context.Context) (*v1.ResourceTypeListOutput, error) + func (b *BatonService) GetResources(ctx context.Context) (*v1.ResourceListOutput, error) + func (b *BatonService) GetResourcesWithPrincipalCount(ctx context.Context, resourceType string) (*ResourceListOutputWithCount, error) + type Controller struct + func NewController(ctx context.Context, store *dotc1z.C1File, syncID, resourceType string, ...) Controller + func (ctrl *Controller) GetAccessHandler(c *gin.Context) + func (ctrl *Controller) GetEntitlementsHandler(c *gin.Context) + func (ctrl *Controller) GetGrantsForResourceHandler(c *gin.Context) + func (ctrl *Controller) GetResourceHandler(c *gin.Context) + func (ctrl *Controller) GetResourceTypesHandler(c *gin.Context) + func (ctrl *Controller) GetResourcesHandler(c *gin.Context) + func (ctrl *Controller) GetResourcesWithPrincipalCountHandler(c *gin.Context) + func (ctrl *Controller) Run(addr string) error + type EmbededFS struct + func (efs EmbededFS) Exists(prefix string, path string) bool + type GrantsWithPrincipalResourceType struct + PrincipalResourceType *v2.ResourceType + type GrantsWithPrincipalResourceTypeListOutput struct + Grants []*GrantsWithPrincipalResourceType + type ResourceAccessListOutput struct + PrincipalAccess []*ResourceAccessOutput + Resource *v2.Resource + ResourceType *v2.ResourceType + type ResourceAccessOutput struct + Entitlements []*v2.Entitlement + Grants []*v2.Grant + Resource *v2.Resource + ResourceType *v2.ResourceType + type ResourceListOutputWithCount struct + Resources []*ResourceOutputWithCount + type ResourceOutputWithCount struct + Parent *v2.Resource + Resource *v2.Resource + ResourceType *v2.ResourceType + UserCount int