vschemaacl

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AuthorizedDDLUsers specifies the users that can perform ddl operations
	AuthorizedDDLUsers string
)

Functions

func Authorized

func Authorized(caller *querypb.VTGateCallerID) bool

Authorized returns true if the given caller is allowed to execute vschema operations

func Init

func Init()

Init parses the users option and sets allowAll / acl accordingly

func RegisterSchemaACLFlags added in v0.15.0

func RegisterSchemaACLFlags(fs *pflag.FlagSet)

RegisterSchemaACLFlags installs log flags on the given FlagSet.

`go/cmd/*` entrypoints should either use servenv.ParseFlags(WithArgs)? which calls this function, or call this function directly before parsing command-line arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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