permission

package
v1.42.21 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	All  bit.Mask = ^0
	None bit.Mask = 0

	Live bit.Mask = 1 << iota // 1 << 0 which is 00000001
	Test                      // 1 << 1 which is 00000010

	// Three main use cases
	Admin
	Published
	Secret

	// Payment specific
	Authorize
	Capture

	// List permissions
	Bundle
	Campaign
	Collection
	Coupon
	Form
	Order
	Organization
	Payment
	Plan
	Product
	Referral
	Referrer
	Store
	Subscriber
	User
	Variant

	// Read permissions
	ReadBundle
	ReadCampaign
	ReadCollection
	ReadCoupon
	ReadForm
	ReadOrder
	ReadOrganization
	ReadPayment
	ReadPlan
	ReadProduct
	ReadReferral
	ReadReferrer
	ReadStore
	ReadSubscriber
	ReadUser
	ReadVariant

	// Write permissions
	WriteBundle
	WriteCampaign
	WriteCollection
	WriteCoupon
	WriteForm
	WriteOrder
	WriteOrganization
	WritePayment
	WritePlan
	WriteProduct
	WriteReferral
	WriteReferrer
	WriteStore
	WriteSubscriber
	WriteUser
	WriteVariant

	Return
	ReadReturn
	WriteReturn
)

Variables

View Source
var Charge = Authorize | Capture

Composite permissions, (both required)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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