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

update

package
v1.140.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdmin

AddAdmin adds an explicit CAN_MANAGE permission for the 'admins' group if explicitAdminPermissionCheck returns true for the provided object ID.

func AddCurrentUserAsManage

func AddCurrentUserAsManage(ctx ACLCustomizerContext, acl []iam.AccessControlRequest) ([]iam.AccessControlRequest, error)

Whether the object requires explicit manage permissions for the calling user if not set. As described in https://github.com/databricks/terraform-provider-databricks/issues/1504, certain object types require that we explicitly grant the calling user CAN_MANAGE permissions when POSTing permissions changes through the REST API, to avoid accidentally revoking the calling user's ability to manage the current object.

func ObjectIdMatches

func ObjectIdMatches(expected string) func(ACLCustomizerContext, []iam.AccessControlRequest) bool

ObjectIdMatches returns a condition that checks if the object ID matches the expected value.

Types

type ACLCustomizer

type ACLCustomizer func(ctx ACLCustomizerContext, objectAcls []iam.AccessControlRequest) ([]iam.AccessControlRequest, error)

ACLCustomizer is a function that modifies the access control list of an object before it is updated.

func If

If applies ths customizer if the condition is true.

func RewritePermissions

func RewritePermissions(mapping map[iam.PermissionLevel]iam.PermissionLevel) ACLCustomizer

type ACLCustomizerContext

type ACLCustomizerContext struct {
	GetCurrentUser func() (string, error)
	GetId          func() string
}

Context that is available to aclUpdateCustomizer implementations.

Jump to

Keyboard shortcuts

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