license

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCloud

func IsCloud(license *model.License) bool

IsCloud returns true when the server is on cloud, and false otherwise.

func IsConfiguredForDevelopment

func IsConfiguredForDevelopment(config *model.Config) bool

IsConfiguredForDevelopment returns true when the server has `EnableDeveloper` and `EnableTesting` configuration settings enabled, signaling a non-production, developer mode.

func IsE10LicensedOrDevelopment

func IsE10LicensedOrDevelopment(config *model.Config, license *model.License) bool

IsE10LicensedOrDevelopment returns true when the server is at least licensed with a legacy Mattermost Enterprise E10 License or a Mattermost Professional License, or has `EnableDeveloper` and `EnableTesting` configuration settings enabled, signaling a non-production, developer mode.

func IsE20LicensedOrDevelopment

func IsE20LicensedOrDevelopment(config *model.Config, license *model.License) bool

IsE20LicensedOrDevelopment returns true when the server is licensed with a legacy Mattermost Enterprise E20 License or a Mattermost Enterprise License, or has `EnableDeveloper` and `EnableTesting` configuration settings enabled, signaling a non-production, developer mode.

func IsEnterpriseLicensedOrDevelopment

func IsEnterpriseLicensedOrDevelopment(config *model.Config, license *model.License) bool

IsEnterpriseLicensedOrDevelopment returns true when the server is licensed with any Mattermost Enterprise License, or has `EnableDeveloper` and `EnableTesting` configuration settings enabled signaling a non-production, developer mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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