auth

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WriteAPIKeyDefaultACLs = []string{
		"search",
		"browse",
		"seeUnretrievableAttributes",
		"listIndexes",
		"analytics",
		"logs",
		"addObject",
		"deleteObject",
		"deleteIndex",
		"settings",
		"editSettings",
		"recommendation",
	}
)

Functions

func CheckACLs

func CheckACLs(cmd *cobra.Command, f *cmdutil.Factory) error

CheckACLs check if the current profile has the right ACLs to execute the command

func CheckAuth

func CheckAuth(cfg config.Config) error

func DisableAuthCheck

func DisableAuthCheck(cmd *cobra.Command)

func IsAuthCheckEnabled

func IsAuthCheckEnabled(cmd *cobra.Command) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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