Help us shape the future of Go! Take the 2026 Go Developer Survey

admincmd

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package admincmd provides the "admin" cobra command a host CLI mounts to grant, revoke and list platform administrators. It opens the identity database directly, so the first administrator can be created before any exists.

In authorization mode rebac the graph is not written from here: the running server's reconciler applies the change at its next run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(open Open) *cobra.Command

Command returns "admin" with grant, revoke and list.

Types

type Open

type Open func(ctx context.Context) (client *ent.Client, closeFn func() error, err error)

Open opens the identity database for one command, returning its client and the function that closes it.

Jump to

Keyboard shortcuts

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