auth

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthBuilder

func GetAuthBuilder() (*ab.AuthImpl, error)

func IsAuthItemKnown

func IsAuthItemKnown[list listWithNames](items []list, name string) bool

func NscStore

func NscStore() (string, error)

func RenderUserLimits

func RenderUserLimits(limits ab.UserLimits, cols *columns.Writer) error

func SelectAccount

func SelectAccount(op ab.Operator, choice string, prompt string) (ab.Account, error)

func SelectOperator

func SelectOperator(operatorName string, pick bool, useSelected bool) (*ab.AuthImpl, ab.Operator, error)

func SelectOperatorAccount

func SelectOperatorAccount(operatorName string, accountName string, pick bool) (*ab.AuthImpl, ab.Operator, ab.Account, error)

func SelectSigningKey

func SelectSigningKey(acct ab.Account, choice string) (ab.ScopeLimits, error)

func SortedAuthNames

func SortedAuthNames[list listWithNames](items []list) []string

func UpdateTags

func UpdateTags(tags ab.Tags, add []string, rm []string) error

Types

type OperatorLimitsManager

type OperatorLimitsManager interface {
	OperatorLimits() jwt.OperatorLimits
	SetOperatorLimits(limits jwt.OperatorLimits) error
}

type UserLimitsManager

type UserLimitsManager interface {
	UserPermissionLimits() jwt.UserPermissionLimits
	SetUserPermissionLimits(limits jwt.UserPermissionLimits) error
}

Jump to

Keyboard shortcuts

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