Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebCapability ¶
type WebCapability struct { ReadWriteCapability webCapability ReadOnlyCapability *webCapability Children []*WebCapability }
WebCapability is type for representing api.Capability in the consent screen
func AllWebCapabilities ¶
func AllWebCapabilities() []*WebCapability
AllWebCapabilities returns all WebCapabilities as a tree
func WebCapabilities ¶
func WebCapabilities(cc api.Capabilities) (wc []*WebCapability)
WebCapabilities creates a slice of WebCapability from api.Capabilities
func (WebCapability) IsCreateMT ¶
func (c WebCapability) IsCreateMT() bool
IsCreateMT checks if this WebCapability is api.CapabilityCreateMT skipcq: CRT-P0003
type WebNotificationClass ¶
type WebNotificationClass struct { ReadWriteCapability *api.NotificationClass Children []*WebNotificationClass }
WebNotificationClass is type for representing api.NoticationClass in the web compatible with WebCapability
func AllWebNotificationClass ¶
func AllWebNotificationClass() []*WebNotificationClass
AllWebNotificationClass returns all WebNotificationClass as a tree
func WebNotificationClasses ¶
func WebNotificationClasses(ncs []*api.NotificationClass) (wnc []*WebNotificationClass)
WebNotificationClasses creates a slice of WebNotificationClass from []api.NotificationClass
type WebRestrictions ¶
type WebRestrictions struct {
restrictions.Restrictions
}
WebRestrictions a type for representing restrictions.Restrictions in the consent screen
func (WebRestrictions) Text ¶
func (r WebRestrictions) Text() string
Text returns a textual (json) representation of this WebRestrictions