create_permission_config

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// SendNotificationEmail distinguishes unset (API default: email sent for
	// user and group grants) from an explicit false.
	SendNotificationEmail *bool
	EmailMessage          string
	TransferOwnership     bool
	FetchOptions          []fetch_config.Option
}

func New

func New(options ...Option) *Config

type Option

type Option func(*Config)

func WithEmailMessage

func WithEmailMessage(emailMessage string) Option

WithEmailMessage sets a custom message to include in the notification email.

func WithFetchOptions

func WithFetchOptions(fetchOptions ...fetch_config.Option) Option

func WithSendNotificationEmail

func WithSendNotificationEmail(sendNotificationEmail bool) Option

func WithTransferOwnership

func WithTransferOwnership(transferOwnership bool) Option

Jump to

Keyboard shortcuts

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