Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FreePlugins = []string{ "webhookx-signature", "wasm", "function", "basic-auth", "key-auth", "hmac-auth", "event-validation", } EnterprisePlugins = []string{ "connect-auth", } )
View Source
var (
ErrInvalidLicense = errors.New("license is invalid")
)
Functions ¶
func SetLicenser ¶
func SetLicenser(licenser Licenser)
Types ¶
type DefaultLicenser ¶
type DefaultLicenser struct {
// contains filtered or unexported fields
}
func NewLicenser ¶
func NewLicenser(license *license.License) *DefaultLicenser
func (*DefaultLicenser) Allow ¶
func (l *DefaultLicenser) Allow(feature string) bool
func (*DefaultLicenser) AllowAPI ¶
func (l *DefaultLicenser) AllowAPI(workspace string, path string, method string) bool
func (*DefaultLicenser) AllowPlugin ¶
func (l *DefaultLicenser) AllowPlugin(plugin string) bool
func (*DefaultLicenser) License ¶
func (l *DefaultLicenser) License() *license.License
Click to show internal directories.
Click to hide internal directories.