contract

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package contract registers Shield's authenticated dashboard contract.

Index

Constants

View Source
const ContributorName = "shield"

Variables

This section is empty.

Functions

func Register

func Register(d *dispatcher.Dispatcher, reg dash.Registry, wreg dash.WardenRegistry, deps Deps) error

func ResolveActor

func ResolveActor(_ context.Context, p dash.Principal) (admin.Actor, error)

ResolveActor requires authenticated claims set by the host's identity adapter. Request params cannot grant scope or permissions.

Types

type ActorResolver

type ActorResolver func(context.Context, dash.Principal) (admin.Actor, error)

type Deps

type Deps struct {
	Admin   *admin.Service
	Resolve ActorResolver
}

type ScopeResolver

type ScopeResolver func(context.Context, dash.Principal) (store.Scope, error)

Jump to

Keyboard shortcuts

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