Documentation ¶
Index ¶
- Constants
- Variables
- func ApigwRouteRbacResource(id uint64) string
- func ApigwRouteRbacResourceTpl() string
- func ApplicationRbacResource(id uint64) string
- func ApplicationRbacResourceTpl() string
- func AuthClientRbacResource(id uint64) string
- func AuthClientRbacResourceTpl() string
- func ComponentRbacResource() string
- func ComponentRbacResourceTpl() string
- func DalConnectionRbacResource(id uint64) string
- func DalConnectionRbacResourceTpl() string
- func DataPrivacyRequestRbacResource(id uint64) string
- func DataPrivacyRequestRbacResourceTpl() string
- func DecodeKV(kv SettingsKV, dst interface{}, pp ...string) (err error)
- func QueueRbacResource(id uint64) string
- func QueueRbacResourceTpl() string
- func ReportRbacResource(id uint64) string
- func ReportRbacResourceTpl() string
- func RoleRbacResource(id uint64) string
- func RoleRbacResourceTpl() string
- func TemplateRbacResource(id uint64) string
- func TemplateRbacResourceTpl() string
- func UserRbacResource(id uint64) string
- func UserRbacResourceTpl() string
- type ApigwFilter
- type ApigwFilterFilter
- type ApigwFilterParams
- type ApigwFilterSet
- type ApigwProfilerAggregation
- type ApigwProfilerAggregationSet
- type ApigwProfilerFilter
- type ApigwProfilerHit
- type ApigwProfilerHitSet
- type ApigwRoute
- type ApigwRouteFilter
- type ApigwRouteMeta
- type ApigwRouteSet
- type ApigwSettings
- type AppSettings
- type Application
- func (a *Application) FlagResourceID() uint64
- func (*Application) FlagResourceKind() string
- func (a *Application) GetFlags() []string
- func (r Application) GetID() uint64
- func (m Application) GetLabels() map[string]string
- func (r *Application) GetValue(name string, pos uint) (any, error)
- func (m Application) LabelResourceID() uint64
- func (Application) LabelResourceKind() string
- func (r Application) RbacResource() string
- func (a *Application) SetFlags(flags []string)
- func (m *Application) SetLabel(key string, value string)
- func (r *Application) SetValue(name string, pos uint, value any) (err error)
- func (a *Application) Valid() bool
- type ApplicationFilter
- type ApplicationMetrics
- type ApplicationSet
- type ApplicationUnify
- type Attachment
- func (r Attachment) GetID() uint64
- func (r *Attachment) GetValue(name string, pos uint) (any, error)
- func (a *Attachment) SetOriginalImageMeta(width, height int, animated bool) *AttachmentFileMeta
- func (a *Attachment) SetPreviewImageMeta(width, height int, animated bool) *AttachmentFileMeta
- func (r *Attachment) SetValue(name string, pos uint, value any) (err error)
- type AttachmentFileMeta
- type AttachmentFilter
- type AttachmentImageMeta
- type AttachmentMeta
- type AttachmentSet
- type AuthClient
- func (r AuthClient) Dict() map[string]interface{}
- func (r AuthClient) GetID() uint64
- func (m AuthClient) GetLabels() map[string]string
- func (r *AuthClient) GetValue(name string, pos uint) (any, error)
- func (m AuthClient) LabelResourceID() uint64
- func (AuthClient) LabelResourceKind() string
- func (r AuthClient) RbacResource() string
- func (m *AuthClient) SetLabel(key string, value string)
- func (r *AuthClient) SetValue(name string, pos uint, value any) (err error)
- func (r *AuthClient) String() string
- func (r *AuthClient) Verify() error
- type AuthClientFilter
- type AuthClientMeta
- type AuthClientSecurity
- type AuthClientSet
- func (set AuthClientSet) Filter(f func(*AuthClient) (bool, error)) (out AuthClientSet, err error)
- func (set AuthClientSet) FindByHandle(handle string) *AuthClient
- func (set AuthClientSet) FindByID(ID uint64) *AuthClient
- func (set AuthClientSet) IDs() (IDs []uint64)
- func (set AuthClientSet) Walk(w func(*AuthClient) error) (err error)
- type AuthConfirmedClient
- type AuthConfirmedClientFilter
- type AuthConfirmedClientSet
- type AuthOa2token
- type AuthOa2tokenFilter
- type AuthOa2tokenSet
- type AuthProvider
- type AuthSession
- type AuthSessionFilter
- type AuthSessionSet
- type ByContentLength
- type ByCount
- type ByDuration
- type ByFTime
- type ByMethod
- type ByPath
- type BySTime
- type BySizeAvg
- type BySizeMax
- type BySizeMin
- type ByStatus
- type ByTimeAvg
- type ByTimeMax
- type ByTimeMin
- type Component
- type ConnectionConfig
- type ConnectionConfigDAL
- type ConnectionConfigPrivacy
- type ConnectionMeta
- type ConnectionMetaProperties
- type ConnectionMetaProperty
- type Credential
- type CredentialFilter
- type CredentialSet
- type DalConnection
- type DalConnectionFilter
- type DalConnectionSet
- type DalSchemaAlteration
- type DalSchemaAlterationFilter
- type DalSchemaAlterationParams
- type DalSchemaAlterationSet
- func (set DalSchemaAlterationSet) Filter(f func(*DalSchemaAlteration) (bool, error)) (out DalSchemaAlterationSet, err error)
- func (set DalSchemaAlterationSet) FindByID(ID uint64) *DalSchemaAlteration
- func (set DalSchemaAlterationSet) IDs() (IDs []uint64)
- func (set DalSchemaAlterationSet) Walk(w func(*DalSchemaAlteration) error) (err error)
- type DalSensitivityLevel
- type DalSensitivityLevelFilter
- type DalSensitivityLevelMeta
- type DalSensitivityLevelSet
- func (set DalSensitivityLevelSet) Filter(f func(*DalSensitivityLevel) (bool, error)) (out DalSensitivityLevelSet, err error)
- func (set DalSensitivityLevelSet) FindByID(ID uint64) *DalSensitivityLevel
- func (set DalSensitivityLevelSet) IDs() (IDs []uint64)
- func (ss DalSensitivityLevelSet) Len() int
- func (ss DalSensitivityLevelSet) Less(i, j int) bool
- func (ss DalSensitivityLevelSet) Swap(i, j int)
- func (set DalSensitivityLevelSet) Walk(w func(*DalSensitivityLevel) error) (err error)
- type DataPrivacyRequest
- type DataPrivacyRequestComment
- type DataPrivacyRequestCommentFilter
- type DataPrivacyRequestCommentSet
- func (set DataPrivacyRequestCommentSet) Filter(f func(*DataPrivacyRequestComment) (bool, error)) (out DataPrivacyRequestCommentSet, err error)
- func (set DataPrivacyRequestCommentSet) FindByID(ID uint64) *DataPrivacyRequestComment
- func (set DataPrivacyRequestCommentSet) IDs() (IDs []uint64)
- func (set DataPrivacyRequestCommentSet) Walk(w func(*DataPrivacyRequestComment) error) (err error)
- type DataPrivacyRequestFilter
- type DataPrivacyRequestPayload
- type DataPrivacyRequestPayloadSet
- type DataPrivacyRequestRecord
- type DataPrivacyRequestRecordValue
- type DataPrivacyRequestSet
- func (set DataPrivacyRequestSet) Filter(f func(*DataPrivacyRequest) (bool, error)) (out DataPrivacyRequestSet, err error)
- func (set DataPrivacyRequestSet) FindByID(ID uint64) *DataPrivacyRequest
- func (set DataPrivacyRequestSet) IDs() (IDs []uint64)
- func (set DataPrivacyRequestSet) Walk(w func(*DataPrivacyRequest) error) (err error)
- type DocumentType
- type ExternalAuthProvider
- type ExternalAuthProviderSecurity
- type ExternalAuthProviderSet
- func (set *ExternalAuthProviderSet) DecodeKV(kv SettingsKV, prefix string) (err error)
- func (set ExternalAuthProviderSet) FindByHandle(handle string) *ExternalAuthProvider
- func (set ExternalAuthProviderSet) Len() int
- func (set ExternalAuthProviderSet) Less(i, j int) bool
- func (set ExternalAuthProviderSet) Swap(i, j int)
- func (set ExternalAuthProviderSet) Valid() (out ExternalAuthProviderSet)
- type ExternalAuthUser
- type KVDecoder
- type Lang
- type MailMessage
- type MailMessageHeader
- type PasswordConstraints
- type Permission
- type PrivacyDalConnection
- type PrivacyDalConnectionConfig
- type PrivacyDalConnectionMeta
- type PrivacyDalConnectionSet
- func (set PrivacyDalConnectionSet) Filter(f func(*PrivacyDalConnection) (bool, error)) (out PrivacyDalConnectionSet, err error)
- func (set PrivacyDalConnectionSet) FindByID(ID uint64) *PrivacyDalConnection
- func (set PrivacyDalConnectionSet) IDs() (IDs []uint64)
- func (set PrivacyDalConnectionSet) Walk(w func(*PrivacyDalConnection) error) (err error)
- type Queue
- type QueueFilter
- type QueueMessage
- type QueueMessageFilter
- type QueueMessageSet
- type QueueMeta
- type QueueSet
- type Reminder
- type ReminderFilter
- type ReminderSet
- type Report
- func (r Report) GetID() uint64
- func (m Report) GetLabels() map[string]string
- func (r *Report) GetValue(name string, pos uint) (any, error)
- func (m Report) LabelResourceID() uint64
- func (Report) LabelResourceKind() string
- func (r Report) RbacResource() string
- func (m *Report) SetLabel(key string, value string)
- func (r *Report) SetValue(name string, pos uint, value any) (err error)
- type ReportAggregateColumn
- type ReportAggregateColumnSet
- type ReportBlock
- type ReportBlockSet
- type ReportDataSource
- type ReportDataSourceSet
- type ReportFilter
- type ReportFilterExpr
- type ReportLegacyStepGroup
- type ReportMeta
- type ReportScenario
- type ReportScenarioSet
- type ReportSet
- type ReportStep
- type ReportStepAggregate
- type ReportStepJoin
- type ReportStepLink
- type ReportStepLoad
- type ReportStepSet
- type RequestKind
- type RequestStatus
- type ResourceTranslation
- type ResourceTranslationFilter
- type ResourceTranslationSet
- func (set ResourceTranslationSet) Filter(f func(*ResourceTranslation) (bool, error)) (out ResourceTranslationSet, err error)
- func (set ResourceTranslationSet) FilterKey(key string) (out ResourceTranslationSet)
- func (set ResourceTranslationSet) FilterLanguage(tag language.Tag) (out ResourceTranslationSet)
- func (set ResourceTranslationSet) FilterResource(res string) (out ResourceTranslationSet)
- func (set ResourceTranslationSet) FindByID(ID uint64) *ResourceTranslation
- func (set ResourceTranslationSet) IDs() (IDs []uint64)
- func (set ResourceTranslationSet) New(bb locale.ResourceTranslationSet) (out ResourceTranslationSet)
- func (set ResourceTranslationSet) Old(bb locale.ResourceTranslationSet) (out [][2]*ResourceTranslation)
- func (set ResourceTranslationSet) Walk(w func(*ResourceTranslation) error) (err error)
- type Role
- func (r *Role) Clone() *Role
- func (r Role) GetID() uint64
- func (m Role) GetLabels() map[string]string
- func (r *Role) GetValue(name string, pos uint) (any, error)
- func (m Role) LabelResourceID() uint64
- func (Role) LabelResourceKind() string
- func (r Role) RbacResource() string
- func (m *Role) SetLabel(key string, value string)
- func (r *Role) SetValue(name string, pos uint, value any) (err error)
- type RoleContext
- type RoleFilter
- type RoleMember
- type RoleMemberFilter
- type RoleMemberSet
- type RoleMeta
- type RoleMetrics
- type RoleSet
- type ScenarioFilterMap
- type SettingValue
- func (v *SettingValue) Bool() (out bool)
- func (v *SettingValue) Eq(c *SettingValue) bool
- func (v *SettingValue) GetID() uint64
- func (v *SettingValue) GetValue(string, uint) (any, error)
- func (v *SettingValue) IsNull() (out bool)
- func (v *SettingValue) NormalizeValue()
- func (v *SettingValue) SetRawSetting(str string) error
- func (v *SettingValue) SetSetting(value interface{}) (err error)
- func (v *SettingValue) SetValue(string, uint, any) error
- func (v *SettingValue) String() (out string)
- type SettingValueSet
- func (set SettingValueSet) Changed(in SettingValueSet) (out SettingValueSet)
- func (set SettingValueSet) Filter(f func(*SettingValue) (bool, error)) (out SettingValueSet, err error)
- func (set SettingValueSet) FilterByPrefix(prefix string) SettingValueSet
- func (set SettingValueSet) FindByName(name string) *SettingValue
- func (set SettingValueSet) First(name string) *SettingValue
- func (set *SettingValueSet) Has(name string) bool
- func (set SettingValueSet) KV() SettingsKV
- func (set SettingValueSet) New(in SettingValueSet) (out SettingValueSet)
- func (set SettingValueSet) Old(in SettingValueSet) (out SettingValueSet)
- func (set *SettingValueSet) Replace(n *SettingValue)
- func (set SettingValueSet) Trash() (out SettingValueSet)
- func (set SettingValueSet) Walk(w func(*SettingValue) error) (err error)
- type SettingsFilter
- type SettingsKV
- func (kv SettingsKV) Bool(k string) (out bool)
- func (kv SettingsKV) CutPrefix(prefix string) SettingsKV
- func (kv SettingsKV) Decode(dst interface{}) error
- func (kv SettingsKV) Filter(prefix string) SettingsKV
- func (kv SettingsKV) Has(k string) (ok bool)
- func (kv SettingsKV) String(k string) (out string)
- type SinkRequest
- type SinkResponse
- type SmtpCheckResult
- type SmtpConfiguration
- type SmtpServers
- type Template
- func (t Template) Clone() *Template
- func (r Template) GetID() uint64
- func (m Template) GetLabels() map[string]string
- func (r *Template) GetValue(name string, pos uint) (any, error)
- func (m Template) LabelResourceID() uint64
- func (Template) LabelResourceKind() string
- func (r Template) RbacResource() string
- func (m *Template) SetLabel(key string, value string)
- func (r *Template) SetValue(name string, pos uint, value any) (err error)
- type TemplateFilter
- type TemplateMeta
- type TemplateSet
- type Theme
- type User
- func (u *User) Clone() *User
- func (r User) GetID() uint64
- func (m User) GetLabels() map[string]string
- func (r *User) GetValue(name string, pos uint) (any, error)
- func (u User) Identity() uint64
- func (m User) LabelResourceID() uint64
- func (User) LabelResourceKind() string
- func (r User) RbacResource() string
- func (u User) Roles() []uint64
- func (m *User) SetLabel(key string, value string)
- func (u *User) SetRoles(rr ...uint64)
- func (r *User) SetValue(name string, pos uint, value any) (err error)
- func (u User) String() string
- func (u *User) Valid() bool
- type UserFilter
- type UserKind
- type UserMeta
- type UserMetrics
- type UserSet
Constants ¶
const ( ExternalProviderUsageIdentity = "identity" ExternalProviderUsageAPI = "api" )
const ( AttachmentKindSettings string = "settings" AttachmentKindAvatar string = "avatar" AttachmentKindAvatarInitials string = "avatar-initials" )
const ( // RequestKindCorrect to correct module fields RequestKindCorrect RequestKind = "correct" // RequestKindDelete to delete module fields RequestKindDelete RequestKind = "delete" // RequestKindExport to export module fields RequestKindExport RequestKind = "export" // RequestStatusPending initially request will be in pending status RequestStatusPending RequestStatus = "pending" // RequestStatusCanceled owner of request has cancelled the request RequestStatusCanceled RequestStatus = "canceled" // RequestStatusApproved data officer has of request has cancelled the request RequestStatusApproved RequestStatus = "approved" // RequestStatusRejected data officer has denied the request RequestStatusRejected RequestStatus = "rejected" )
const ( AttachmentResourceType = "corteza::system:attachment" ApplicationResourceType = "corteza::system:application" ApigwRouteResourceType = "corteza::system:apigw-route" ApigwFilterResourceType = "corteza::system:apigw-filter" AuthClientResourceType = "corteza::system:auth-client" AuthConfirmedClientResourceType = "corteza::system:auth-confirmed-client" AuthSessionResourceType = "corteza::system:auth-session" AuthOa2tokenResourceType = "corteza::system:auth-oa2token" CredentialResourceType = "corteza::system:credential" DataPrivacyRequestResourceType = "corteza::system:data-privacy-request" DataPrivacyRequestCommentResourceType = "corteza::system:data-privacy-request-comment" QueueResourceType = "corteza::system:queue" QueueMessageResourceType = "corteza::system:queue-message" ReminderResourceType = "corteza::system:reminder" ReportResourceType = "corteza::system:report" ResourceTranslationResourceType = "corteza::system:resource-translation" RoleResourceType = "corteza::system:role" RoleMemberResourceType = "corteza::system:role-member" SettingValueResourceType = "corteza::system:settings" TemplateResourceType = "corteza::system:template" UserResourceType = "corteza::system:user" DalConnectionResourceType = "corteza::system:dal-connection" DalSensitivityLevelResourceType = "corteza::system:dal-sensitivity-level" DalSchemaAlterationResourceType = "corteza::system:dal-schema-alteration" ComponentResourceType = "corteza::system" )
Variables ¶
var ( // Used to identify the primary DAL connection instead of an extra flag DalPrimaryConnectionResourceType = "corteza::system:primary-dal-connection" DalPrimaryConnectionHandle = "primary-database" )
Functions ¶
func ApigwRouteRbacResource ¶
ApigwRouteRbacResource returns string representation of RBAC resource for ApigwRoute
RBAC resource is in the corteza::system:apigw-route/... format
This function is auto-generated
func ApigwRouteRbacResourceTpl ¶
func ApigwRouteRbacResourceTpl() string
func ApplicationRbacResource ¶
ApplicationRbacResource returns string representation of RBAC resource for Application
RBAC resource is in the corteza::system:application/... format
This function is auto-generated
func ApplicationRbacResourceTpl ¶
func ApplicationRbacResourceTpl() string
func AuthClientRbacResource ¶
AuthClientRbacResource returns string representation of RBAC resource for AuthClient
RBAC resource is in the corteza::system:auth-client/... format
This function is auto-generated
func AuthClientRbacResourceTpl ¶
func AuthClientRbacResourceTpl() string
func ComponentRbacResource ¶
func ComponentRbacResource() string
ComponentRbacResource returns string representation of RBAC resource for Component
RBAC resource is in the corteza::system/ format
This function is auto-generated
func ComponentRbacResourceTpl ¶
func ComponentRbacResourceTpl() string
func DalConnectionRbacResource ¶
DalConnectionRbacResource returns string representation of RBAC resource for DalConnection
RBAC resource is in the corteza::system:dal-connection/... format
This function is auto-generated
func DalConnectionRbacResourceTpl ¶
func DalConnectionRbacResourceTpl() string
func DataPrivacyRequestRbacResource ¶
DataPrivacyRequestRbacResource returns string representation of RBAC resource for DataPrivacyRequest
RBAC resource is in the corteza::system:data-privacy-request/... format
This function is auto-generated
func DataPrivacyRequestRbacResourceTpl ¶
func DataPrivacyRequestRbacResourceTpl() string
func DecodeKV ¶
func DecodeKV(kv SettingsKV, dst interface{}, pp ...string) (err error)
DecodeKV converts key-value (SettingsKV) into structs using tags & field names
Supports decoding into all scalar types, can handle nested structures and simple maps (1 dim, string as key)
Example: key-value pairs:
string1: "string" number: 42
struct{ String1 string `kv:"string1` Number int }
func QueueRbacResource ¶
QueueRbacResource returns string representation of RBAC resource for Queue
RBAC resource is in the corteza::system:queue/... format
This function is auto-generated
func QueueRbacResourceTpl ¶
func QueueRbacResourceTpl() string
func ReportRbacResource ¶
ReportRbacResource returns string representation of RBAC resource for Report
RBAC resource is in the corteza::system:report/... format
This function is auto-generated
func ReportRbacResourceTpl ¶
func ReportRbacResourceTpl() string
func RoleRbacResource ¶
RoleRbacResource returns string representation of RBAC resource for Role
RBAC resource is in the corteza::system:role/... format
This function is auto-generated
func RoleRbacResourceTpl ¶
func RoleRbacResourceTpl() string
func TemplateRbacResource ¶
TemplateRbacResource returns string representation of RBAC resource for Template
RBAC resource is in the corteza::system:template/... format
This function is auto-generated
func TemplateRbacResourceTpl ¶
func TemplateRbacResourceTpl() string
func UserRbacResource ¶
UserRbacResource returns string representation of RBAC resource for User
RBAC resource is in the corteza::system:user/... format
This function is auto-generated
func UserRbacResourceTpl ¶
func UserRbacResourceTpl() string
Types ¶
type ApigwFilter ¶
type ApigwFilter struct { ID uint64 `json:"filterID,string"` Route uint64 `json:"routeID,string"` Weight uint64 `json:"weight,string"` Ref string `json:"ref,omitempty"` Kind string `json:"kind,omitempty"` Enabled bool `json:"enabled,omitempty"` Params ApigwFilterParams `json:"params"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty" ` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty" ` }
func (ApigwFilter) GetID ¶
func (r ApigwFilter) GetID() uint64
type ApigwFilterFilter ¶
type ApigwFilterFilter struct { ApigwFilterID []string `json:"apigwFilterID"` RouteID uint64 `json:"routeID,string"` Deleted filter.State `json:"deleted"` Disabled filter.State `json:"disabled"` Kind string `json:"kind"` Ref string `json:"ref"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*ApigwFilter) (bool, error) `json:"-"` filter.Sorting filter.Paging }
type ApigwFilterParams ¶
type ApigwFilterParams map[string]interface{}
func ParseApigwfFilterParams ¶
func ParseApigwfFilterParams(ss []string) (p ApigwFilterParams, err error)
func (*ApigwFilterParams) Scan ¶
func (vv *ApigwFilterParams) Scan(src any) error
type ApigwFilterSet ¶
type ApigwFilterSet []*ApigwFilter
ApigwFilterSet slice of ApigwFilter
This type is auto-generated.
func (ApigwFilterSet) Filter ¶
func (set ApigwFilterSet) Filter(f func(*ApigwFilter) (bool, error)) (out ApigwFilterSet, err error)
Filter iterates through every slice item, calls f(ApigwFilter) (bool, err) and return filtered slice
This function is auto-generated.
func (ApigwFilterSet) FindByID ¶
func (set ApigwFilterSet) FindByID(ID uint64) *ApigwFilter
FindByID finds items from slice by its ID property
This function is auto-generated.
func (ApigwFilterSet) IDs ¶
func (set ApigwFilterSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (ApigwFilterSet) Walk ¶
func (set ApigwFilterSet) Walk(w func(*ApigwFilter) error) (err error)
Walk iterates through every slice item and calls w(ApigwFilter) err
This function is auto-generated.
type ApigwProfilerAggregationSet ¶
type ApigwProfilerAggregationSet []*ApigwProfilerAggregation
ApigwProfilerAggregationSet slice of ApigwProfilerAggregation
This type is auto-generated.
func (ApigwProfilerAggregationSet) Filter ¶
func (set ApigwProfilerAggregationSet) Filter(f func(*ApigwProfilerAggregation) (bool, error)) (out ApigwProfilerAggregationSet, err error)
Filter iterates through every slice item, calls f(ApigwProfilerAggregation) (bool, err) and return filtered slice
This function is auto-generated.
func (ApigwProfilerAggregationSet) Walk ¶
func (set ApigwProfilerAggregationSet) Walk(w func(*ApigwProfilerAggregation) error) (err error)
Walk iterates through every slice item and calls w(ApigwProfilerAggregation) err
This function is auto-generated.
type ApigwProfilerFilter ¶
type ApigwProfilerHit ¶
type ApigwProfilerHit struct { ID string `json:"ID"` Body []byte `json:"body"` Request h.Request `json:"request"` Route uint64 `json:"route,string"` Status int `json:"http_status_code,string"` Ts *time.Time `json:"time_start"` Tf *time.Time `json:"time_finish"` D *time.Duration `json:"-"` Dr float64 `json:"time_duration"` }
type ApigwProfilerHitSet ¶
type ApigwProfilerHitSet []*ApigwProfilerHit
ApigwProfilerHitSet slice of ApigwProfilerHit
This type is auto-generated.
func (ApigwProfilerHitSet) Filter ¶
func (set ApigwProfilerHitSet) Filter(f func(*ApigwProfilerHit) (bool, error)) (out ApigwProfilerHitSet, err error)
Filter iterates through every slice item, calls f(ApigwProfilerHit) (bool, err) and return filtered slice
This function is auto-generated.
func (ApigwProfilerHitSet) Walk ¶
func (set ApigwProfilerHitSet) Walk(w func(*ApigwProfilerHit) error) (err error)
Walk iterates through every slice item and calls w(ApigwProfilerHit) err
This function is auto-generated.
type ApigwRoute ¶
type ApigwRoute struct { ID uint64 `json:"routeID,string"` Endpoint string `json:"endpoint"` Method string `json:"method"` Enabled bool `json:"enabled"` Group uint64 `json:"group,string"` Meta ApigwRouteMeta `json:"meta"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty" ` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty" ` }
func (ApigwRoute) GetID ¶
func (r ApigwRoute) GetID() uint64
func (ApigwRoute) RbacResource ¶
func (r ApigwRoute) RbacResource() string
RbacResource returns string representation of RBAC resource for ApigwRoute by calling ApigwRouteRbacResource fn
RBAC resource is in the corteza::system:apigw-route/... format
This function is auto-generated
type ApigwRouteFilter ¶
type ApigwRouteFilter struct { ApigwRouteID []string `json:"apigwRouteID"` Route string `json:"route"` Endpoint string `json:"endpoint"` Method string `json:"method"` Deleted filter.State `json:"deleted"` Disabled filter.State `json:"disabled"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*ApigwRoute) (bool, error) `json:"-"` filter.Sorting filter.Paging }
type ApigwRouteMeta ¶
type ApigwRouteMeta struct { Debug bool `json:"debug"` Async bool `json:"async"` Desc string `json:"description"` }
func ParseApigwRouteMeta ¶
func ParseApigwRouteMeta(ss []string) (p ApigwRouteMeta, err error)
func (*ApigwRouteMeta) Scan ¶
func (cc *ApigwRouteMeta) Scan(src any) error
type ApigwRouteSet ¶
type ApigwRouteSet []*ApigwRoute
ApigwRouteSet slice of ApigwRoute
This type is auto-generated.
func (ApigwRouteSet) Filter ¶
func (set ApigwRouteSet) Filter(f func(*ApigwRoute) (bool, error)) (out ApigwRouteSet, err error)
Filter iterates through every slice item, calls f(ApigwRoute) (bool, err) and return filtered slice
This function is auto-generated.
func (ApigwRouteSet) FindByID ¶
func (set ApigwRouteSet) FindByID(ID uint64) *ApigwRoute
FindByID finds items from slice by its ID property
This function is auto-generated.
func (ApigwRouteSet) IDs ¶
func (set ApigwRouteSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (ApigwRouteSet) Walk ¶
func (set ApigwRouteSet) Walk(w func(*ApigwRoute) error) (err error)
Walk iterates through every slice item and calls w(ApigwRoute) err
This function is auto-generated.
type ApigwSettings ¶
type ApigwSettings struct { Enabled bool `kv:"enabled" json:"enabled"` Profiler struct { Enabled bool `kv:"enabled" json:"enabled"` Global bool `kv:"global" json:"global"` } `kv:"profiler" json:"profiler"` Proxy struct { FollowRedirects bool `kv:"follow-redirects" json:"follow-redirects"` OutboundTimeout time.Duration `kv:"outbound-timeout" json:"outbound-timeout"` } `kv:"proxy" json:"proxy"` }
type AppSettings ¶
type AppSettings struct { Privacy struct { Mask struct { // Enable masking of user's email (value replaced with ######) Email bool // Enable masking of user's name (value replaced with ######) Name bool } } `json:"-"` General struct { Mail struct { Logo string Header string `kv:"header.en"` Footer string `kv:"footer.en"` } } `json:"-"` SMTP struct { Servers []SmtpServers `json:"-" kv:"servers,final"` } `json:"-" kv:"smtp"` Auth struct { Internal struct { // Is internal authentication (username + password) enabled Enabled bool `json:"-"` Signup struct { // Can users register Enabled bool // Users must confirm their emails when signing-up EmailConfirmationRequired bool `kv:"email-confirmation-required"` } `json:"-"` // Can users reset their passwords PasswordReset struct{ Enabled bool } `json:"-" kv:"password-reset"` // When enabled, users added via CLI will receive an email with a link to reset their password. SendUserInviteEmail struct { Enabled bool Expires uint } `kv:"send-user-invite-email" json:"sendUserInviteEmail"` // PasswordCreate setting for create password for user via generated link with token // If user has no password then link redirects to create password page // Otherwise it redirects to profile page of that user // link can be generated through useradd cli command with `make-password-link` flag PasswordCreate struct { Enabled bool Expires uint } `json:"-" kv:"password-create"` // Splits credentials check into 2 parts // If user has password credentials it offers him to enter the password // Otherwise we offer the user to choose among the enabled external providers // If only one ext. provider is enabled, user is automatically redirected there SplitCredentialsCheck bool `json:"-" kv:"split-credentials-check"` PasswordConstraints PasswordConstraints `kv:"password-constraints" json:"passwordConstraints"` ProfileAvatar struct{ Enabled bool } `kv:"profile-avatar" json:"profile-avatar"` } `json:"internal"` External struct { // Is external authentication Enabled bool `json:"enabled"` // Saml Saml struct { Enabled bool // IdP name used on the login form Name string `kv:"name"` // SAML certificate Cert string `kv:"cert"` // SAML certificate private key Key string `kv:"key"` // Sign AuthNRequest and assertion SignRequests bool `kv:"sign-requests"` // Signature method for signing SignMethod string `kv:"sign-method"` // Post or redirect binding Binding string `kv:"binding"` // Identity provider settings IDP struct { URL string `kv:"url"` // identifier payload from idp IdentName string `kv:"ident-name"` IdentHandle string `kv:"ident-handle"` IdentIdentifier string `kv:"ident-identifier"` } `kv:"idp"` Security ExternalAuthProviderSecurity `json:"-" kv:"security,final"` } `json:"-"` // all external providers we know Providers ExternalAuthProviderSet `json:"providers"` } `json:"external"` MultiFactor struct { EmailOTP struct { // Can users use email for MFA Enabled bool // Is MFA with email enforced? Enforced bool Expires uint } `kv:"email-otp"` TOTP struct { // Can users use TOTP for MFA Enabled bool // Is MFA with TOTP enforced? Enforced bool // TOTP issuer, defaults to "Corteza" Issuer string } `kv:"totp"` } `json:"-" kv:"multi-factor"` Mail struct { FromAddress string `kv:"from-address"` FromName string `kv:"from-name"` } `json:"-"` // Auth Background Image settings UI struct { BackgroundImageSrc string `kv:"background-image-src" json:"backgroundImageSrc"` Styles string `kv:"styles" json:"styles"` } `kv:"ui" json:"ui"` } `json:"auth"` Compose struct { // Compose UI settings UI struct { // Sidebar specific settings Sidebar struct { // Hide namespace list HideNamespaceList bool `json:"hideNamespaceList"` // Hide namespace link at the end of the list HideNamespaceListLink bool `json:"hideNamespaceListLink"` } `kv:"sidebar,final" json:"sidebar"` // Record toolbar specific settings RecordToolbar struct { HideNew bool `json:"hideNew"` HideEdit bool `json:"hideEdit"` HideSubmit bool `json:"hideSubmit"` HideDelete bool `json:"hideDelete"` HideClone bool `json:"hideClone"` HideBack bool `json:"hideBack"` } `kv:"record-toolbar,final" json:"record-toolbar"` } `kv:"ui" json:"ui"` // Record related settings Record struct { // @todo implementation Attachments struct { // What is max size (in MB, so: MaxSize x 2^20) MaxSize uint `kv:"max-size"` // List of mime-types we support, Mimetypes []string } } // Page related settings Page struct { // @todo implementation Attachments struct { // What is max size (in MB, so: MaxSize x 2^20) MaxSize uint `kv:"max-size"` // List of mime-types we support, Mimetypes []string } } // Icon related settings Icon struct { // @todo implementation Attachments struct { // What is max size (in MB, so: MaxSize x 2^20) MaxSize uint `kv:"max-size"` // List of mime-types we support, Mimetypes []string } } } `kv:"compose" json:"compose"` // Federation settings Federation struct { // This only holds the value of FEDERATION_ENABLED for now // Enabled bool `kv:"-" json:"enabled"` } `kv:"federation" json:"federation"` // Integration gateway settings Apigw ApigwSettings `kv:"apigw" json:"apigw"` // UserInterface settings UI struct { MainLogo string `kv:"main-logo" json:"mainLogo"` IconLogo string `kv:"icon-logo" json:"iconLogo"` Sidebar struct { // General sidebar settings Disabled bool `json:"disabled"` } `kv:"sidebar,final" json:"sidebar"` Studio struct { SassInstalled bool `kv:"sass-installed" json:"sass-installed"` Themes []struct{ Theme } `kv:"themes" json:"themes"` CustomCSS []struct{ Theme } `kv:"custom-css" json:"customCSS"` } `kv:"studio" json:"studio"` Topbar struct { HideAppSelector bool `json:"hideAppSelector"` HideHelp bool `json:"hideHelp"` HideForumLink bool `json:"hideForumLink"` HideDocumentationLink bool `json:"hideDocumentationLink"` HideFeedbackLink bool `json:"hideFeedbackLink"` HideProfile bool `json:"hideProfile"` HideChangePasswordLink bool `json:"hideChangePasswordLink"` HideProfileLink bool `json:"hideProfileLink"` HideThemeSelector bool `json:"hideThemeSelector"` HelpLinks []struct { Handle string `json:"handle"` URL string `json:"url"` NewTab bool `json:"newTab"` } `json:"helpLinks"` ProfileLinks []struct { Handle string `json:"handle"` URL string `json:"url"` NewTab bool `json:"newTab"` } `json:"profileLinks"` } `kv:"topbar,final" json:"topbar"` Charts struct { ColorSchemes []struct { ID string `json:"id"` Name string `json:"name"` Colors []string `json:"colors"` } `kv:"colorSchemes" json:"colorSchemes"` } `kv:"charts" json:"charts"` } `kv:"ui" json:"ui"` ResourceTranslations struct { // This is always a subset of all languages available // in Corteza instance (LOCALE_LANGUAGES) // // Note: later, we will enable this to contain languages // that are not part of LOCALE_LANGUAGES // // 1st language in the set is also a default one // // IsEmpty slice defaults to LOCALE_LANGUAGES Languages []string `kv:"languages" json:"languages"` } `kv:"resource-translations" json:"resourceTranslations"` Discovery struct { // Enable indexing Enabled bool `kv:"enabled" json:"enabled"` SystemUsers struct { // Enable indexing of users Enabled bool `kv:"enabled" json:"enabled"` } `kv:"system-users" json:"system-users"` SystemApplications struct { // Enable indexing of applications Enabled bool `kv:"enabled" json:"enabled"` } `kv:"system-applications" json:"system-applications"` SystemRoles struct { // Enable indexing of roles Enabled bool `kv:"enabled" json:"enabled"` } `kv:"system-roles" json:"system-roles"` SystemTemplates struct { // Enable indexing of templates Enabled bool `kv:"enabled" json:"enabled"` } `kv:"system-templates" json:"system-templates"` AutomationWorkflows struct { // Enable indexing of workflows Enabled bool `kv:"enabled" json:"enabled"` } `kv:"automation-workflows" json:"automation-workflows"` ComposeNamespaces struct { // Enable indexing of compose namespaces Enabled bool `kv:"enabled" json:"enabled"` } `kv:"compose-namespaces" json:"compose-namespaces"` ComposeCharts struct { // Enable indexing of compose charts Enabled bool `kv:"enabled" json:"enabled"` } `kv:"compose-charts" json:"compose-charts"` ComposePages struct { // Enable indexing of compose pages Enabled bool `kv:"enabled" json:"enabled"` } `kv:"compose-pages" json:"compose-pages"` ComposeModules struct { // Enable indexing of compose modules Enabled bool `kv:"enabled" json:"enabled"` } `kv:"compose-modules" json:"compose-modules"` ComposeRecords struct { // Enable indexing of compose records Enabled bool `kv:"enabled" json:"enabled"` } `kv:"compose-records" json:"compose-records"` } `kv:"discovery" json:"discovery"` }
AppSettings type is structured representation of all application settings
Raw settings keys are hyphen (kebab) case, separated with a dot (.) that indicates sub-level JSON properties for settings are NOT converted (lower-cased, etc...) Use `json:"-"` tag to hide settings on REST endpoint
func (AppSettings) WithDefaults ¶
func (cs AppSettings) WithDefaults() *AppSettings
WithDefaults sets defaults on copy (!!) of settings to avoid any unintended corruption or leaks
type Application ¶
type Application struct { ID uint64 `json:"applicationID,string"` Name string `json:"name"` OwnerID uint64 `json:"ownerID"` Enabled bool `json:"enabled"` Weight int `json:"weight"` Unify *ApplicationUnify `json:"unify,omitempty"` Labels map[string]string `json:"labels,omitempty"` Flags []string `json:"flags,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
func (*Application) FlagResourceID ¶
func (a *Application) FlagResourceID() uint64
GetLabels adds new label to label map
func (*Application) FlagResourceKind ¶
func (*Application) FlagResourceKind() string
FlagResourceKind returns the resource kind for the flag
func (*Application) GetFlags ¶
func (a *Application) GetFlags() []string
GetFlags returns current flags on the resource
func (Application) GetID ¶
func (r Application) GetID() uint64
func (Application) GetLabels ¶
func (m Application) GetLabels() map[string]string
GetLabels adds new label to label map
func (Application) LabelResourceID ¶
func (m Application) LabelResourceID() uint64
GetLabels adds new label to label map
func (Application) LabelResourceKind ¶
func (Application) LabelResourceKind() string
GetLabels adds new label to label map
func (Application) RbacResource ¶
func (r Application) RbacResource() string
RbacResource returns string representation of RBAC resource for Application by calling ApplicationRbacResource fn
RBAC resource is in the corteza::system:application/... format
This function is auto-generated
func (*Application) SetFlags ¶
func (a *Application) SetFlags(flags []string)
SetFlags adds new label to label map
func (*Application) SetLabel ¶
func (m *Application) SetLabel(key string, value string)
SetLabel adds new label to label map
func (*Application) SetValue ¶
func (r *Application) SetValue(name string, pos uint, value any) (err error)
func (*Application) Valid ¶
func (a *Application) Valid() bool
type ApplicationFilter ¶
type ApplicationFilter struct { ApplicationID []string `json:"applicationID"` Name string `json:"name"` Query string `json:"query"` LabeledIDs []uint64 `json:"-"` Labels map[string]string `json:"labels,omitempty"` FlaggedIDs []uint64 `json:"-"` Flags []string `json:"flags,omitempty"` IncFlags uint `json:"-"` Deleted filter.State `json:"deleted"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*Application) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type ApplicationMetrics ¶
type ApplicationSet ¶
type ApplicationSet []*Application
ApplicationSet slice of Application
This type is auto-generated.
func (ApplicationSet) Filter ¶
func (set ApplicationSet) Filter(f func(*Application) (bool, error)) (out ApplicationSet, err error)
Filter iterates through every slice item, calls f(Application) (bool, err) and return filtered slice
This function is auto-generated.
func (ApplicationSet) FindByID ¶
func (set ApplicationSet) FindByID(ID uint64) *Application
FindByID finds items from slice by its ID property
This function is auto-generated.
func (ApplicationSet) IDs ¶
func (set ApplicationSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (ApplicationSet) Walk ¶
func (set ApplicationSet) Walk(w func(*Application) error) (err error)
Walk iterates through every slice item and calls w(Application) err
This function is auto-generated.
type ApplicationUnify ¶
type ApplicationUnify struct { Name string `json:"name,omitempty"` Listed bool `json:"listed"` Url string `json:"url"` Config string `json:"config"` // Temporary icon & logo URLs // @todo rework this when we rework attachment management Icon string `json:"icon,omitempty"` IconID uint64 `json:"iconID,string"` Logo string `json:"logo,omitempty"` LogoID uint64 `json:"logoID,string"` }
func (*ApplicationUnify) Scan ¶
func (au *ApplicationUnify) Scan(src any) error
type Attachment ¶
type Attachment struct { ID uint64 `json:"attachmentID,string"` OwnerID uint64 `json:"ownerID,string"` Kind string `json:"-"` Url string `json:"url,omitempty"` PreviewUrl string `json:"previewUrl,omitempty"` Name string `json:"name,omitempty"` Meta AttachmentMeta `json:"meta"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
func (Attachment) GetID ¶
func (r Attachment) GetID() uint64
func (*Attachment) SetOriginalImageMeta ¶
func (a *Attachment) SetOriginalImageMeta(width, height int, animated bool) *AttachmentFileMeta
func (*Attachment) SetPreviewImageMeta ¶
func (a *Attachment) SetPreviewImageMeta(width, height int, animated bool) *AttachmentFileMeta
type AttachmentFileMeta ¶
type AttachmentFileMeta struct { Size int64 `json:"size"` Extension string `json:"ext"` Mimetype string `json:"mimetype"` Image *AttachmentImageMeta `json:"image,omitempty"` }
type AttachmentFilter ¶
type AttachmentFilter struct { Kind string `json:"kind,omitempty"` Filter string `json:"filter"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*Attachment) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
AttachmentFilter is used for filtering and as a return value from Find
type AttachmentImageMeta ¶
type AttachmentMeta ¶
type AttachmentMeta struct { Original AttachmentFileMeta `json:"original"` Preview *AttachmentFileMeta `json:"preview,omitempty"` Labels map[string]string `json:"labels,omitempty"` }
func (*AttachmentMeta) Scan ¶
func (meta *AttachmentMeta) Scan(src any) error
type AttachmentSet ¶
type AttachmentSet []*Attachment
AttachmentSet slice of Attachment
This type is auto-generated.
func (AttachmentSet) Filter ¶
func (set AttachmentSet) Filter(f func(*Attachment) (bool, error)) (out AttachmentSet, err error)
Filter iterates through every slice item, calls f(Attachment) (bool, err) and return filtered slice
This function is auto-generated.
func (AttachmentSet) FindByID ¶
func (set AttachmentSet) FindByID(ID uint64) *Attachment
FindByID finds items from slice by its ID property
This function is auto-generated.
func (AttachmentSet) IDs ¶
func (set AttachmentSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (AttachmentSet) Walk ¶
func (set AttachmentSet) Walk(w func(*Attachment) error) (err error)
Walk iterates through every slice item and calls w(Attachment) err
This function is auto-generated.
type AuthClient ¶
type AuthClient struct { ID uint64 `json:"authClientID,string"` // Client's handle Handle string `json:"handle"` // Client's meta data, see comments on AuthClientMeta Meta *AuthClientMeta `json:"meta,omitempty"` // Client secret Secret string `json:"secret,omitempty"` Scope string `json:"scope"` // valid grant for this client (only one) // - authorization_code // - client_credentials ValidGrant string `json:"validGrant"` // Valid redirection URIs RedirectURI string `json:"redirectURI"` // Users will not be prompted to confirm the client after login Trusted bool `json:"trusted"` // Can client be used for authentication Enabled bool `json:"enabled"` // Is client valid yet? ValidFrom *time.Time `json:"validFrom,omitempty"` // Is client still valid ExpiresAt *time.Time `json:"expiresAt,omitempty"` // Role-specific settings, see comments on AuthClientSecurity Security *AuthClientSecurity `json:"security"` // Auth client labels Labels map[string]string `json:"labels,omitempty"` OwnedBy uint64 `json:"ownedBy"` CreatedBy uint64 `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy uint64 `json:"updatedBy,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
func (AuthClient) Dict ¶
func (r AuthClient) Dict() map[string]interface{}
func (AuthClient) GetID ¶
func (r AuthClient) GetID() uint64
func (AuthClient) GetLabels ¶
func (m AuthClient) GetLabels() map[string]string
GetLabels adds new label to label map
func (AuthClient) LabelResourceID ¶
func (m AuthClient) LabelResourceID() uint64
GetLabels adds new label to label map
func (AuthClient) LabelResourceKind ¶
func (AuthClient) LabelResourceKind() string
GetLabels adds new label to label map
func (AuthClient) RbacResource ¶
func (r AuthClient) RbacResource() string
RbacResource returns string representation of RBAC resource for AuthClient by calling AuthClientRbacResource fn
RBAC resource is in the corteza::system:auth-client/... format
This function is auto-generated
func (*AuthClient) SetLabel ¶
func (m *AuthClient) SetLabel(key string, value string)
SetLabel adds new label to label map
func (*AuthClient) SetValue ¶
func (r *AuthClient) SetValue(name string, pos uint, value any) (err error)
func (*AuthClient) String ¶
func (r *AuthClient) String() string
func (*AuthClient) Verify ¶
func (r *AuthClient) Verify() error
type AuthClientFilter ¶
type AuthClientFilter struct { AuthClientID []string `json:"authClientID"` Handle string `json:"handle"` Deleted filter.State `json:"deleted"` LabeledIDs []uint64 `json:"-"` Labels map[string]string `json:"labels,omitempty"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*AuthClient) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type AuthClientMeta ¶
func ParseAuthClientMeta ¶
func ParseAuthClientMeta(ss []string) (p *AuthClientMeta, err error)
func (*AuthClientMeta) Scan ¶
func (vv *AuthClientMeta) Scan(src any) error
type AuthClientSecurity ¶
type AuthClientSecurity struct { // Impersonates a specific user; // ignored when non client-credentials grant is used ImpersonateUser uint64 `json:"impersonateUser,string,omitempty"` // Subset of roles, permitted to be used with this client // IDs are intentionally stored as strings to support JS (int64 only) PermittedRoles []string `json:"permittedRoles,omitempty"` // Subset of roles, prohibited to be used with this client // IDs are intentionally stored as strings to support JS (int64 only) ProhibitedRoles []string `json:"prohibitedRoles,omitempty"` // Set of additional roles that are forced on this user // IDs are intentionally stored as strings to support JS (int64 only) ForcedRoles []string `json:"forcedRoles,omitempty"` }
func ParseAuthClientSecurity ¶
func ParseAuthClientSecurity(ss []string) (p *AuthClientSecurity, err error)
func (*AuthClientSecurity) Scan ¶
func (vv *AuthClientSecurity) Scan(src any) error
type AuthClientSet ¶
type AuthClientSet []*AuthClient
AuthClientSet slice of AuthClient
This type is auto-generated.
func (AuthClientSet) Filter ¶
func (set AuthClientSet) Filter(f func(*AuthClient) (bool, error)) (out AuthClientSet, err error)
Filter iterates through every slice item, calls f(AuthClient) (bool, err) and return filtered slice
This function is auto-generated.
func (AuthClientSet) FindByHandle ¶
func (set AuthClientSet) FindByHandle(handle string) *AuthClient
FindByHandle finds authClient by it's handle
func (AuthClientSet) FindByID ¶
func (set AuthClientSet) FindByID(ID uint64) *AuthClient
FindByID finds items from slice by its ID property
This function is auto-generated.
func (AuthClientSet) IDs ¶
func (set AuthClientSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (AuthClientSet) Walk ¶
func (set AuthClientSet) Walk(w func(*AuthClient) error) (err error)
Walk iterates through every slice item and calls w(AuthClient) err
This function is auto-generated.
type AuthConfirmedClient ¶
type AuthConfirmedClientSet ¶
type AuthConfirmedClientSet []*AuthConfirmedClient
AuthConfirmedClientSet slice of AuthConfirmedClient
This type is auto-generated.
func (AuthConfirmedClientSet) Filter ¶
func (set AuthConfirmedClientSet) Filter(f func(*AuthConfirmedClient) (bool, error)) (out AuthConfirmedClientSet, err error)
Filter iterates through every slice item, calls f(AuthConfirmedClient) (bool, err) and return filtered slice
This function is auto-generated.
func (AuthConfirmedClientSet) Walk ¶
func (set AuthConfirmedClientSet) Walk(w func(*AuthConfirmedClient) error) (err error)
Walk iterates through every slice item and calls w(AuthConfirmedClient) err
This function is auto-generated.
type AuthOa2token ¶
type AuthOa2tokenFilter ¶
type AuthOa2tokenSet ¶
type AuthOa2tokenSet []*AuthOa2token
AuthOa2tokenSet slice of AuthOa2token
This type is auto-generated.
func (AuthOa2tokenSet) Filter ¶
func (set AuthOa2tokenSet) Filter(f func(*AuthOa2token) (bool, error)) (out AuthOa2tokenSet, err error)
Filter iterates through every slice item, calls f(AuthOa2token) (bool, err) and return filtered slice
This function is auto-generated.
func (AuthOa2tokenSet) FindByID ¶
func (set AuthOa2tokenSet) FindByID(ID uint64) *AuthOa2token
FindByID finds items from slice by its ID property
This function is auto-generated.
func (AuthOa2tokenSet) IDs ¶
func (set AuthOa2tokenSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (AuthOa2tokenSet) Walk ¶
func (set AuthOa2tokenSet) Walk(w func(*AuthOa2token) error) (err error)
Walk iterates through every slice item and calls w(AuthOa2token) err
This function is auto-generated.
type AuthProvider ¶
type AuthProvider struct {
Provider string
}
type AuthSession ¶
type AuthSessionFilter ¶
type AuthSessionSet ¶
type AuthSessionSet []*AuthSession
AuthSessionSet slice of AuthSession
This type is auto-generated.
func (AuthSessionSet) Filter ¶
func (set AuthSessionSet) Filter(f func(*AuthSession) (bool, error)) (out AuthSessionSet, err error)
Filter iterates through every slice item, calls f(AuthSession) (bool, err) and return filtered slice
This function is auto-generated.
func (AuthSessionSet) Walk ¶
func (set AuthSessionSet) Walk(w func(*AuthSession) error) (err error)
Walk iterates through every slice item and calls w(AuthSession) err
This function is auto-generated.
type ByContentLength ¶
type ByContentLength ApigwProfilerHitSet
sorting methods
func (ByContentLength) Len ¶
func (h ByContentLength) Len() int
func (ByContentLength) Less ¶
func (h ByContentLength) Less(i, j int) bool
func (ByContentLength) Swap ¶
func (h ByContentLength) Swap(i, j int)
type ByDuration ¶
type ByDuration ApigwProfilerHitSet
sorting methods
func (ByDuration) Len ¶
func (h ByDuration) Len() int
func (ByDuration) Less ¶
func (h ByDuration) Less(i, j int) bool
func (ByDuration) Swap ¶
func (h ByDuration) Swap(i, j int)
type Component ¶
type Component struct{}
Component struct serves as a virtual resource type for the system component
This struct is auto-generated
func (Component) RbacResource ¶
RbacResource returns string representation of RBAC resource for Component by calling ComponentRbacResource fn
RBAC resource is in the corteza::system/... format
This function is auto-generated
type ConnectionConfig ¶
type ConnectionConfig struct { // DAL configuration // using ptr to allow nil values (when dealing with access-controlled data) DAL *ConnectionConfigDAL `json:"dal,omitempty"` // Privacy configuration Privacy ConnectionConfigPrivacy `json:"privacy"` }
func ParseConnectionConfig ¶
func ParseConnectionConfig(ss []string) (m ConnectionConfig, err error)
func (*ConnectionConfig) Scan ¶
func (nm *ConnectionConfig) Scan(src any) error
type ConnectionConfigDAL ¶
type ConnectionConfigDAL struct { // type of connection Type string `json:"type"` // parameters for the connection Params map[string]any `json:"params"` // ident to be used when generating models from modules using this connection // it can use {{module}} and {{namespace}} as placeholders ModelIdent string `json:"modelIdent"` // set of regular-expression strings that will be used to match against // generated model identifiers ModelIdentCheck []string `json:"modelIdentCheck"` }
ConnectionConfigDAL a set of connection parameters and model configuration
type ConnectionConfigPrivacy ¶
type ConnectionConfigPrivacy struct { // Sets max-allowed data-sensitivity level for this connection // // Fields of the modules using this connection should have equal or // lower sensitivity level SensitivityLevelID uint64 `json:"sensitivityLevelID,string,omitempty"` }
type ConnectionMeta ¶
type ConnectionMeta struct { Name string `json:"name"` Ownership string `json:"ownership"` Location geolocation.Full `json:"location"` Properties ConnectionMetaProperties `json:"properties"` }
func ParseConnectionMeta ¶
func ParseConnectionMeta(ss []string) (m ConnectionMeta, err error)
func (*ConnectionMeta) Scan ¶
func (nm *ConnectionMeta) Scan(src any) error
type ConnectionMetaProperties ¶
type ConnectionMetaProperties struct { DataAtRestEncryption ConnectionMetaProperty `json:"dataAtRestEncryption"` DataAtRestProtection ConnectionMetaProperty `json:"dataAtRestProtection"` DataAtTransitEncryption ConnectionMetaProperty `json:"dataAtTransitEncryption"` DataRestoration ConnectionMetaProperty `json:"dataRestoration"` }
type ConnectionMetaProperty ¶
type Credential ¶
type Credential struct { ID uint64 `json:"credentialsID,string"` OwnerID uint64 `json:"ownerID,string"` Label string `json:"label"` Kind string `json:"kind"` Credentials string `json:"-"` Meta types.JSONText `json:"-"` LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
func (*Credential) Valid ¶
func (u *Credential) Valid() bool
type CredentialFilter ¶
type CredentialSet ¶
type CredentialSet []*Credential
CredentialSet slice of Credential
This type is auto-generated.
func (CredentialSet) Filter ¶
func (set CredentialSet) Filter(f func(*Credential) (bool, error)) (out CredentialSet, err error)
Filter iterates through every slice item, calls f(Credential) (bool, err) and return filtered slice
This function is auto-generated.
func (CredentialSet) FindByID ¶
func (set CredentialSet) FindByID(ID uint64) *Credential
FindByID finds items from slice by its ID property
This function is auto-generated.
func (CredentialSet) IDs ¶
func (set CredentialSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (CredentialSet) Walk ¶
func (set CredentialSet) Walk(w func(*Credential) error) (err error)
Walk iterates through every slice item and calls w(Credential) err
This function is auto-generated.
type DalConnection ¶
type DalConnection struct { ID uint64 `json:"connectionID,string"` Handle string `json:"handle"` Type string `json:"type"` // descriptions, notes, and other user-provided meta-data Meta ConnectionMeta `json:"meta"` // collection of configurations for various subsystems that // use this connection and how it affects their behaviour Config ConnectionConfig `json:"config"` Issues []dal.Issue `json:"issues,omitempty"` Labels map[string]string `json:"labels,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty"` }
func (DalConnection) GetID ¶
func (r DalConnection) GetID() uint64
func (*DalConnection) GetValue ¶
func (r *DalConnection) GetValue(name string, pos uint) (any, error)
func (DalConnection) HasIssues ¶
func (c DalConnection) HasIssues() bool
func (DalConnection) RbacResource ¶
func (r DalConnection) RbacResource() string
RbacResource returns string representation of RBAC resource for DalConnection by calling DalConnectionRbacResource fn
RBAC resource is in the corteza::system:dal-connection/... format
This function is auto-generated
type DalConnectionFilter ¶
type DalConnectionFilter struct { DalConnectionID []string `json:"connectionID"` Handle string `json:"handle"` Type string `json:"type"` Deleted filter.State `json:"deleted"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*DalConnection) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Paging filter.Sorting }
type DalConnectionSet ¶
type DalConnectionSet []*DalConnection
DalConnectionSet slice of DalConnection
This type is auto-generated.
func (DalConnectionSet) Filter ¶
func (set DalConnectionSet) Filter(f func(*DalConnection) (bool, error)) (out DalConnectionSet, err error)
Filter iterates through every slice item, calls f(DalConnection) (bool, err) and return filtered slice
This function is auto-generated.
func (DalConnectionSet) FindByID ¶
func (set DalConnectionSet) FindByID(ID uint64) *DalConnection
FindByID finds items from slice by its ID property
This function is auto-generated.
func (DalConnectionSet) IDs ¶
func (set DalConnectionSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (DalConnectionSet) Walk ¶
func (set DalConnectionSet) Walk(w func(*DalConnection) error) (err error)
Walk iterates through every slice item and calls w(DalConnection) err
This function is auto-generated.
type DalSchemaAlteration ¶
type DalSchemaAlteration struct { ID uint64 `json:"alterationID,string"` BatchID uint64 `json:"batchID,string"` DependsOn uint64 `json:"dependsOn,string,omitempty"` ConnectionID uint64 `json:"connectionID,string"` Resource string `json:"resource"` ResourceType string `json:"resourceType"` Kind string `json:"kind"` Params *DalSchemaAlterationParams `json:"params"` Error string `json:"error,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty"` CompletedAt *time.Time `json:"completedAt,omitempty"` CompletedBy uint64 `json:"completedBy,string,omitempty"` DismissedAt *time.Time `json:"dismissedAt,omitempty"` DismissedBy uint64 `json:"dismissedBy,string,omitempty"` }
func (DalSchemaAlteration) GetID ¶
func (r DalSchemaAlteration) GetID() uint64
type DalSchemaAlterationFilter ¶
type DalSchemaAlterationFilter struct { AlterationID []string `json:"alterationID"` BatchID []uint64 `json:"batchID,string"` Kind string `json:"kind"` Resource []string `json:"resource"` ResourceType string `json:"resourceType"` Deleted filter.State `json:"deleted"` Completed filter.State `json:"completed"` Dismissed filter.State `json:"dismissed"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type DalSchemaAlterationParams ¶
type DalSchemaAlterationParams struct { AttributeAdd *dal.AttributeAdd `json:"attributeAdd,omitempty"` AttributeDelete *dal.AttributeDelete `json:"attributeDelete,omitempty"` AttributeReType *dal.AttributeReType `json:"attributeReType,omitempty"` AttributeReEncode *dal.AttributeReEncode `json:"attributeReEncode,omitempty"` ModelAdd *dal.ModelAdd `json:"modelAdd,omitempty"` ModelDelete *dal.ModelDelete `json:"modelDelete,omitempty"` }
func (*DalSchemaAlterationParams) Scan ¶
func (meta *DalSchemaAlterationParams) Scan(src any) error
type DalSchemaAlterationSet ¶
type DalSchemaAlterationSet []*DalSchemaAlteration
DalSchemaAlterationSet slice of DalSchemaAlteration
This type is auto-generated.
func (DalSchemaAlterationSet) Filter ¶
func (set DalSchemaAlterationSet) Filter(f func(*DalSchemaAlteration) (bool, error)) (out DalSchemaAlterationSet, err error)
Filter iterates through every slice item, calls f(DalSchemaAlteration) (bool, err) and return filtered slice
This function is auto-generated.
func (DalSchemaAlterationSet) FindByID ¶
func (set DalSchemaAlterationSet) FindByID(ID uint64) *DalSchemaAlteration
FindByID finds items from slice by its ID property
This function is auto-generated.
func (DalSchemaAlterationSet) IDs ¶
func (set DalSchemaAlterationSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (DalSchemaAlterationSet) Walk ¶
func (set DalSchemaAlterationSet) Walk(w func(*DalSchemaAlteration) error) (err error)
Walk iterates through every slice item and calls w(DalSchemaAlteration) err
This function is auto-generated.
type DalSensitivityLevel ¶
type DalSensitivityLevel struct { ID uint64 `json:"sensitivityLevelID,string"` Handle string `json:"handle"` Level int `json:"level"` Meta DalSensitivityLevelMeta `json:"meta"` Labels map[string]string `json:"labels,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty" ` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty" ` }
func (DalSensitivityLevel) GetID ¶
func (r DalSensitivityLevel) GetID() uint64
type DalSensitivityLevelFilter ¶
type DalSensitivityLevelFilter struct { DalSensitivityLevelID []string `json:"sensitivityLevelID"` Handle string `json:"handle"` Deleted filter.State `json:"deleted"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*DalSensitivityLevel) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Paging filter.Sorting }
type DalSensitivityLevelMeta ¶
type DalSensitivityLevelMeta struct { Name string `json:"name"` Description string `json:"description"` }
func ParseDalSensitivityLevelMeta ¶
func ParseDalSensitivityLevelMeta(ss []string) (m DalSensitivityLevelMeta, err error)
func (*DalSensitivityLevelMeta) Scan ¶
func (nm *DalSensitivityLevelMeta) Scan(src any) error
type DalSensitivityLevelSet ¶
type DalSensitivityLevelSet []*DalSensitivityLevel
DalSensitivityLevelSet slice of DalSensitivityLevel
This type is auto-generated.
func (DalSensitivityLevelSet) Filter ¶
func (set DalSensitivityLevelSet) Filter(f func(*DalSensitivityLevel) (bool, error)) (out DalSensitivityLevelSet, err error)
Filter iterates through every slice item, calls f(DalSensitivityLevel) (bool, err) and return filtered slice
This function is auto-generated.
func (DalSensitivityLevelSet) FindByID ¶
func (set DalSensitivityLevelSet) FindByID(ID uint64) *DalSensitivityLevel
FindByID finds items from slice by its ID property
This function is auto-generated.
func (DalSensitivityLevelSet) IDs ¶
func (set DalSensitivityLevelSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (DalSensitivityLevelSet) Len ¶
func (ss DalSensitivityLevelSet) Len() int
func (DalSensitivityLevelSet) Less ¶
func (ss DalSensitivityLevelSet) Less(i, j int) bool
func (DalSensitivityLevelSet) Swap ¶
func (ss DalSensitivityLevelSet) Swap(i, j int)
func (DalSensitivityLevelSet) Walk ¶
func (set DalSensitivityLevelSet) Walk(w func(*DalSensitivityLevel) error) (err error)
Walk iterates through every slice item and calls w(DalSensitivityLevel) err
This function is auto-generated.
type DataPrivacyRequest ¶
type DataPrivacyRequest struct { ID uint64 `json:"requestID,string"` Kind RequestKind `json:"kind"` Status RequestStatus `json:"status"` Payload DataPrivacyRequestPayloadSet `json:"payload,omitempty"` RequestedAt time.Time `json:"requestedAt,omitempty"` RequestedBy uint64 `json:"requestedBy,string"` CompletedAt *time.Time `json:"completedAt,omitempty"` CompletedBy uint64 `json:"completedBy,string,omitempty" ` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty"` }
func (DataPrivacyRequest) RbacResource ¶
func (r DataPrivacyRequest) RbacResource() string
RbacResource returns string representation of RBAC resource for DataPrivacyRequest by calling DataPrivacyRequestRbacResource fn
RBAC resource is in the corteza::system:data-privacy-request/... format
This function is auto-generated
type DataPrivacyRequestComment ¶
type DataPrivacyRequestComment struct { ID uint64 `json:"commentID,string"` RequestID uint64 `json:"requestID,string"` Comment string `json:"comment"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty"` }
func (DataPrivacyRequestComment) GetID ¶
func (r DataPrivacyRequestComment) GetID() uint64
type DataPrivacyRequestCommentFilter ¶
type DataPrivacyRequestCommentFilter struct { RequestID []string `json:"requestID"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(request *DataPrivacyRequestComment) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type DataPrivacyRequestCommentSet ¶
type DataPrivacyRequestCommentSet []*DataPrivacyRequestComment
DataPrivacyRequestCommentSet slice of DataPrivacyRequestComment
This type is auto-generated.
func (DataPrivacyRequestCommentSet) Filter ¶
func (set DataPrivacyRequestCommentSet) Filter(f func(*DataPrivacyRequestComment) (bool, error)) (out DataPrivacyRequestCommentSet, err error)
Filter iterates through every slice item, calls f(DataPrivacyRequestComment) (bool, err) and return filtered slice
This function is auto-generated.
func (DataPrivacyRequestCommentSet) FindByID ¶
func (set DataPrivacyRequestCommentSet) FindByID(ID uint64) *DataPrivacyRequestComment
FindByID finds items from slice by its ID property
This function is auto-generated.
func (DataPrivacyRequestCommentSet) IDs ¶
func (set DataPrivacyRequestCommentSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (DataPrivacyRequestCommentSet) Walk ¶
func (set DataPrivacyRequestCommentSet) Walk(w func(*DataPrivacyRequestComment) error) (err error)
Walk iterates through every slice item and calls w(DataPrivacyRequestComment) err
This function is auto-generated.
type DataPrivacyRequestFilter ¶
type DataPrivacyRequestFilter struct { RequestID []string `json:"requestID"` RequestedBy []string `json:"requestedBy"` Query string `json:"query"` Kind []string `json:"kind"` Status []string `json:"status"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(request *DataPrivacyRequest) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type DataPrivacyRequestPayload ¶
type DataPrivacyRequestPayload struct { ConnectionID uint64 `json:"connectionID,string"` NamespaceID uint64 `json:"namespaceID,string"` ModuleID uint64 `json:"moduleID,string"` Records []DataPrivacyRequestRecord `json:"records"` }
DataPrivacyRequestPayloadSet []DataPrivacyRequestPayload
type DataPrivacyRequestPayloadSet ¶
@todo temporarily using this; revert to proper struct after dev release
func ParseDataPrivacyRequestPayload ¶
func ParseDataPrivacyRequestPayload(ii []string) (out DataPrivacyRequestPayloadSet, err error)
func (*DataPrivacyRequestPayloadSet) Scan ¶
func (bb *DataPrivacyRequestPayloadSet) Scan(src any) error
type DataPrivacyRequestRecord ¶
type DataPrivacyRequestRecord struct { RecordID uint64 `json:"recordID,string"` Values []DataPrivacyRequestRecordValue `json:"values"` }
type DataPrivacyRequestSet ¶
type DataPrivacyRequestSet []*DataPrivacyRequest
DataPrivacyRequestSet slice of DataPrivacyRequest
This type is auto-generated.
func (DataPrivacyRequestSet) Filter ¶
func (set DataPrivacyRequestSet) Filter(f func(*DataPrivacyRequest) (bool, error)) (out DataPrivacyRequestSet, err error)
Filter iterates through every slice item, calls f(DataPrivacyRequest) (bool, err) and return filtered slice
This function is auto-generated.
func (DataPrivacyRequestSet) FindByID ¶
func (set DataPrivacyRequestSet) FindByID(ID uint64) *DataPrivacyRequest
FindByID finds items from slice by its ID property
This function is auto-generated.
func (DataPrivacyRequestSet) IDs ¶
func (set DataPrivacyRequestSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (DataPrivacyRequestSet) Walk ¶
func (set DataPrivacyRequestSet) Walk(w func(*DataPrivacyRequest) error) (err error)
Walk iterates through every slice item and calls w(DataPrivacyRequest) err
This function is auto-generated.
type DocumentType ¶
type DocumentType string
const ( DocumentTypePlain DocumentType = "text/plain" DocumentTypeHTML DocumentType = "text/html" DocumentTypePDF DocumentType = "application/pdf" )
type ExternalAuthProvider ¶
type ExternalAuthProvider struct { Enabled bool `json:"enabled"` Handle string `json:"handle"` Label string `json:"label"` Key string `json:"-"` Secret string `json:"-"` Scope string `json:"scope"` RedirectUrl string `json:"-" kv:"redirect"` IssuerUrl string `json:"-" kv:"issuer"` Weight int `json:"-"` // potentially just use home-brew scopes? Usage []string `json:"usage" kv:"usage"` Security ExternalAuthProviderSecurity `json:"-" kv:"security,final"` }
func (ExternalAuthProvider) EncodeKV ¶
func (eap ExternalAuthProvider) EncodeKV() (vv SettingValueSet, err error)
func (*ExternalAuthProvider) ValidConfiguration ¶
func (set *ExternalAuthProvider) ValidConfiguration() bool
type ExternalAuthProviderSecurity ¶
type ExternalAuthProviderSecurity struct { // Subset of roles, permitted to be used with this client // when authorizing via this auth provider. // // IDs are intentionally stored as strings to support JS (int64 only) // PermittedRoles []string `json:"permittedRoles,omitempty"` // Subset of roles, prohibited to be used with this client // when authorizing via this auth provider. // // IDs are intentionally stored as strings to support JS (int64 only) // ProhibitedRoles []string `json:"prohibitedRoles,omitempty"` // Set of additional roles that are forced on this user // when authorizing via this auth provider. // // IDs are intentionally stored as strings to support JS (int64 only) ForcedRoles []string `json:"forcedRoles,omitempty"` }
type ExternalAuthProviderSet ¶
type ExternalAuthProviderSet []*ExternalAuthProvider
func (*ExternalAuthProviderSet) DecodeKV ¶
func (set *ExternalAuthProviderSet) DecodeKV(kv SettingsKV, prefix string) (err error)
DecodeKV translates settings' KV into internal system external auth settings
func (ExternalAuthProviderSet) FindByHandle ¶
func (set ExternalAuthProviderSet) FindByHandle(handle string) *ExternalAuthProvider
func (ExternalAuthProviderSet) Len ¶
func (set ExternalAuthProviderSet) Len() int
func (ExternalAuthProviderSet) Less ¶
func (set ExternalAuthProviderSet) Less(i, j int) bool
func (ExternalAuthProviderSet) Swap ¶
func (set ExternalAuthProviderSet) Swap(i, j int)
func (ExternalAuthProviderSet) Valid ¶
func (set ExternalAuthProviderSet) Valid() (out ExternalAuthProviderSet)
Returns enabled providers, sorted with their redirect-URLs set...
type ExternalAuthUser ¶
type KVDecoder ¶
type KVDecoder interface {
DecodeKV(SettingsKV, string) error
}
KVDecoder interface for custom decoding logic
type MailMessage ¶
type MailMessage struct { Date time.Time `json:"date"` Subject string `json:"subject"` Header MailMessageHeader `json:"header"` // RawBody will be base64 encoded! // (might contain binary data) RawBody []byte `json:"rawBody,string"` }
func NewMailMessage ¶
func NewMailMessage(r io.Reader) (out *MailMessage, err error)
type MailMessageHeader ¶
type PasswordConstraints ¶
type PasswordConstraints struct { // Should the environment not enforce the constraints PasswordSecurity bool `kv:"-" json:"passwordSecurity"` // The min password length MinLength uint `kv:"min-length" json:"minLength"` // Minimum number of uppercase letters in password MinUpperCase uint `kv:"min-upper-case" json:"minUpperCase"` // Minimum number of lowercase letters in password MinLowerCase uint `kv:"min-lower-case" json:"minLowerCase"` // The min number of numeric characters MinNumCount uint `kv:"min-num-count" json:"minNumCount"` // The min number of special characters MinSpecialCount uint `kv:"min-special-count" json:"minSpecialCount"` }
type Permission ¶
type PrivacyDalConnection ¶
type PrivacyDalConnection struct { ID uint64 `json:"connectionID,string"` Handle string `json:"handle"` Type string `json:"type"` // descriptions, notes, and other user-provided meta-data Meta PrivacyDalConnectionMeta `json:"meta"` // collection of configurations for various subsystems that // use this connection and how it affects their behaviour Config PrivacyDalConnectionConfig `json:"config"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty" ` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty" ` }
type PrivacyDalConnectionConfig ¶
type PrivacyDalConnectionConfig struct {
Privacy ConnectionConfigPrivacy `json:"privacy"`
}
type PrivacyDalConnectionMeta ¶
type PrivacyDalConnectionMeta struct { Name string `json:"name"` Ownership string `json:"ownership"` Location geolocation.Full `json:"location"` }
type PrivacyDalConnectionSet ¶
type PrivacyDalConnectionSet []*PrivacyDalConnection
PrivacyDalConnectionSet slice of PrivacyDalConnection
This type is auto-generated.
func (PrivacyDalConnectionSet) Filter ¶
func (set PrivacyDalConnectionSet) Filter(f func(*PrivacyDalConnection) (bool, error)) (out PrivacyDalConnectionSet, err error)
Filter iterates through every slice item, calls f(PrivacyDalConnection) (bool, err) and return filtered slice
This function is auto-generated.
func (PrivacyDalConnectionSet) FindByID ¶
func (set PrivacyDalConnectionSet) FindByID(ID uint64) *PrivacyDalConnection
FindByID finds items from slice by its ID property
This function is auto-generated.
func (PrivacyDalConnectionSet) IDs ¶
func (set PrivacyDalConnectionSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (PrivacyDalConnectionSet) Walk ¶
func (set PrivacyDalConnectionSet) Walk(w func(*PrivacyDalConnection) error) (err error)
Walk iterates through every slice item and calls w(PrivacyDalConnection) err
This function is auto-generated.
type Queue ¶
type Queue struct { ID uint64 `json:"queueID,string"` Consumer string `json:"consumer"` Queue string `json:"queue"` Meta QueueMeta `json:"meta"` CreatedAt time.Time `json:"createdAt,omitempty"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UpdatedBy uint64 `json:"updatedBy,string,omitempty" ` DeletedAt *time.Time `json:"deletedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,string,omitempty" ` }
func (*Queue) CanDispatch ¶
func (Queue) RbacResource ¶
RbacResource returns string representation of RBAC resource for Queue by calling QueueRbacResource fn
RBAC resource is in the corteza::system:queue/... format
This function is auto-generated
type QueueFilter ¶
type QueueFilter struct { QueueID []string `json:"queueID"` Query string `json:"query"` Deleted filter.State `json:"deleted"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*Queue) (bool, error) `json:"-"` filter.Sorting filter.Paging }
type QueueMessage ¶
type QueueMessageFilter ¶
type QueueMessageSet ¶
type QueueMessageSet []*QueueMessage
QueueMessageSet slice of QueueMessage
This type is auto-generated.
func (QueueMessageSet) Filter ¶
func (set QueueMessageSet) Filter(f func(*QueueMessage) (bool, error)) (out QueueMessageSet, err error)
Filter iterates through every slice item, calls f(QueueMessage) (bool, err) and return filtered slice
This function is auto-generated.
func (QueueMessageSet) Walk ¶
func (set QueueMessageSet) Walk(w func(*QueueMessage) error) (err error)
Walk iterates through every slice item and calls w(QueueMessage) err
This function is auto-generated.
type QueueMeta ¶
type QueueMeta struct { PollDelay *time.Duration `json:"poll_delay"` DispatchEvents bool `json:"dispatch_events"` }
func ParseQueueMeta ¶
func (QueueMeta) MarshalJSON ¶
func (*QueueMeta) UnmarshalJSON ¶
type QueueSet ¶
type QueueSet []*Queue
QueueSet slice of Queue
This type is auto-generated.
func (QueueSet) Filter ¶
Filter iterates through every slice item, calls f(Queue) (bool, err) and return filtered slice
This function is auto-generated.
func (QueueSet) FindByID ¶
FindByID finds items from slice by its ID property
This function is auto-generated.
type Reminder ¶
type Reminder struct { ID uint64 `json:"reminderID,string"` Resource string `json:"resource"` Payload types.JSONText `json:"payload"` SnoozeCount uint `json:"snoozeCount"` AssignedTo uint64 `json:"assignedTo,string"` AssignedBy uint64 `json:"assignedBy,string"` AssignedAt time.Time `json:"assignedAt"` DismissedBy uint64 `json:"dismissedBy,string"` DismissedAt *time.Time `json:"dismissedAt"` RemindAt *time.Time `json:"remindAt"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
type ReminderFilter ¶
type ReminderFilter struct { ReminderID []uint64 `json:"reminderID"` Resource string `json:"resource"` AssignedTo uint64 `json:"assignedTo,uint64"` ScheduledFrom *time.Time `json:"scheduledFrom"` ScheduledUntil *time.Time `json:"scheduledUntil"` ExcludeDismissed bool `json:"excludeDismissed"` IncludeDeleted bool `json:"includeDeleted"` ScheduledOnly bool `json:"scheduledOnly"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*Reminder) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type ReminderSet ¶
type ReminderSet []*Reminder
ReminderSet slice of Reminder
This type is auto-generated.
func (ReminderSet) Filter ¶
func (set ReminderSet) Filter(f func(*Reminder) (bool, error)) (out ReminderSet, err error)
Filter iterates through every slice item, calls f(Reminder) (bool, err) and return filtered slice
This function is auto-generated.
func (ReminderSet) FindByID ¶
func (set ReminderSet) FindByID(ID uint64) *Reminder
FindByID finds items from slice by its ID property
This function is auto-generated.
func (ReminderSet) IDs ¶
func (set ReminderSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
type Report ¶
type Report struct { ID uint64 `json:"reportID,string"` Handle string `json:"handle"` Meta *ReportMeta `json:"meta,omitempty"` Scenarios ReportScenarioSet `json:"scenarios,omitempty"` Sources ReportDataSourceSet `json:"sources"` Blocks ReportBlockSet `json:"blocks"` Labels map[string]string `json:"labels,omitempty"` OwnedBy uint64 `json:"ownedBy"` CreatedBy uint64 `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy uint64 `json:"updatedBy,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedBy uint64 `json:"deletedBy,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
func (Report) LabelResourceID ¶
GetLabels adds new label to label map
func (Report) LabelResourceKind ¶
GetLabels adds new label to label map
func (Report) RbacResource ¶
RbacResource returns string representation of RBAC resource for Report by calling ReportRbacResource fn
RBAC resource is in the corteza::system:report/... format
This function is auto-generated
type ReportAggregateColumn ¶
type ReportAggregateColumn struct { Name string `json:"name"` Label string `json:"label"` Def *ReportFilterExpr `json:"def"` }
type ReportAggregateColumnSet ¶
type ReportAggregateColumnSet []*ReportAggregateColumn
type ReportBlock ¶
type ReportBlock struct { BlockID uint64 `json:"blockID,string"` Title string `json:"title"` Description string `json:"description"` Key string `json:"key"` Kind string `json:"kind"` Options map[string]interface{} `json:"options,omitempty"` Elements []interface{} `json:"elements"` Sources ReportStepSet `json:"sources"` XYWH [4]int `json:"xywh"` Layout string `json:"layout"` }
func (*ReportBlock) UnmarshalJSON ¶
func (b *ReportBlock) UnmarshalJSON(data []byte) (err error)
Initial ReportBlock struct definition omitted string casting for the BlockID (sorry) so we need to handle that edge case when reading from DB. @todo consider dropping this in the next/one of the following releases
type ReportBlockSet ¶
type ReportBlockSet []*ReportBlock
func (ReportBlockSet) ReportSteps ¶
func (pp ReportBlockSet) ReportSteps() ReportStepSet
ReportSteps returns a ReportStepSet collected from the ReportBlockSet
func (*ReportBlockSet) Scan ¶
func (vv *ReportBlockSet) Scan(src any) error
type ReportDataSource ¶
type ReportDataSource struct { Meta interface{} `json:"meta,omitempty"` Step *ReportStep `json:"step"` }
type ReportDataSourceSet ¶
type ReportDataSourceSet []*ReportDataSource
func (ReportDataSourceSet) ReportSteps ¶
func (ss ReportDataSourceSet) ReportSteps() ReportStepSet
ReportSteps returns a ReportStepSet collected from the ReportDataSourceSet
func (*ReportDataSourceSet) Scan ¶
func (vv *ReportDataSourceSet) Scan(src any) error
Scan on ReportDataSourceSet gracefully handles conversion from NULL
type ReportFilter ¶
type ReportFilter struct { ReportID []string `json:"reportID"` Handle string `json:"handle"` Query string `json:"query"` Deleted filter.State `json:"deleted"` LabeledIDs []uint64 `json:"-"` Labels map[string]string `json:"labels,omitempty"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*Report) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type ReportFilterExpr ¶
ReportFilterExpr is a wrapper for ql.ASTNode to implement custom JSON unmarshal required by reporting. @todo consider moving this to the ql package
func (*ReportFilterExpr) Node ¶
func (f *ReportFilterExpr) Node() *ql.ASTNode
Node is a helper for accessing the wrapped QL node to omit nil checks
func (*ReportFilterExpr) UnmarshalJSON ¶
func (f *ReportFilterExpr) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON parses the wrap into a proper QL node and an optional error
The function can work over JSON strings (where FE provides a QL node) or raw expression strings (where FE sends over the easeier stringified expression).
type ReportLegacyStepGroup ¶
type ReportLegacyStepGroup struct { Name string `json:"name"` Source string `json:"source"` Keys ReportAggregateColumnSet `json:"keys"` Columns ReportAggregateColumnSet `json:"columns"` Filter *ReportFilterExpr `json:"filter,omitempty"` }
type ReportMeta ¶
func ParseReportMeta ¶
func ParseReportMeta(ss []string) (p *ReportMeta, err error)
func (*ReportMeta) Scan ¶
func (vv *ReportMeta) Scan(src any) error
type ReportScenario ¶
type ReportScenario struct { ScenarioID uint64 `json:"scenarioID,string,omitempty"` Label string `json:"label"` Filters ScenarioFilterMap `json:"filters,omitempty"` }
type ReportScenarioSet ¶
type ReportScenarioSet []*ReportScenario
func (*ReportScenarioSet) Scan ¶
func (vv *ReportScenarioSet) Scan(src any) error
type ReportSet ¶
type ReportSet []*Report
ReportSet slice of Report
This type is auto-generated.
func (ReportSet) Filter ¶
Filter iterates through every slice item, calls f(Report) (bool, err) and return filtered slice
This function is auto-generated.
func (ReportSet) FindByID ¶
FindByID finds items from slice by its ID property
This function is auto-generated.
type ReportStep ¶
type ReportStep struct { Kind string `json:"kind,omitempty"` Load *ReportStepLoad `json:"load,omitempty"` Join *ReportStepJoin `json:"join,omitempty"` Link *ReportStepLink `json:"link,omitempty"` Aggregate *ReportStepAggregate `json:"aggregate,omitempty"` // @todo remove for the next set of patch/major releases. // it exists just for the migration as we need to rename this one. Group_legacy *ReportLegacyStepGroup `json:"group,omitempty"` }
type ReportStepAggregate ¶
type ReportStepAggregate struct { Name string `json:"name"` Source string `json:"source"` Keys ReportAggregateColumnSet `json:"keys"` Columns ReportAggregateColumnSet `json:"columns"` Filter *ReportFilterExpr `json:"filter,omitempty"` }
type ReportStepJoin ¶
type ReportStepLink ¶
type ReportStepLoad ¶
type ReportStepLoad struct { Name string `json:"name"` Source string `json:"source"` Definition map[string]interface{} `json:"definition"` Filter *ReportFilterExpr `json:"filter,omitempty"` }
type ReportStepSet ¶
type ReportStepSet []*ReportStep
type RequestKind ¶
type RequestKind string
func CastToRequestKind ¶
func CastToRequestKind(s string) RequestKind
func (RequestKind) String ¶
func (k RequestKind) String() string
type RequestStatus ¶
type RequestStatus string
func CastToRequestStatus ¶
func CastToRequestStatus(s string) RequestStatus
func (RequestStatus) String ¶
func (s RequestStatus) String() string
type ResourceTranslation ¶
type ResourceTranslation struct { ID uint64 `json:"translationID,string"` Lang Lang `json:"lang"` Resource string `json:"resource"` K string `json:"key"` Message string `json:"message"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` OwnedBy uint64 `json:"ownedBy,string"` CreatedBy uint64 `json:"createdBy,string" ` UpdatedBy uint64 `json:"updatedBy,string,omitempty" ` DeletedBy uint64 `json:"deletedBy,string,omitempty" ` }
func (*ResourceTranslation) Compare ¶
func (a *ResourceTranslation) Compare(b *locale.ResourceTranslation) bool
func (ResourceTranslation) GetID ¶
func (r ResourceTranslation) GetID() uint64
type ResourceTranslationFilter ¶
type ResourceTranslationFilter struct { TranslationID []string `json:"translationID"` Lang string `json:"lang"` Resource string `json:"resource"` ResourceType string `json:"resourceType"` OwnerID uint64 `json:"ownerID,string"` Deleted filter.State `json:"deleted"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type ResourceTranslationSet ¶
type ResourceTranslationSet []*ResourceTranslation
ResourceTranslationSet slice of ResourceTranslation
This type is auto-generated.
func FromLocale ¶
func FromLocale(ll locale.ResourceTranslationSet) (out ResourceTranslationSet)
func (ResourceTranslationSet) Filter ¶
func (set ResourceTranslationSet) Filter(f func(*ResourceTranslation) (bool, error)) (out ResourceTranslationSet, err error)
Filter iterates through every slice item, calls f(ResourceTranslation) (bool, err) and return filtered slice
This function is auto-generated.
func (ResourceTranslationSet) FilterKey ¶
func (set ResourceTranslationSet) FilterKey(key string) (out ResourceTranslationSet)
func (ResourceTranslationSet) FilterLanguage ¶
func (set ResourceTranslationSet) FilterLanguage(tag language.Tag) (out ResourceTranslationSet)
func (ResourceTranslationSet) FilterResource ¶
func (set ResourceTranslationSet) FilterResource(res string) (out ResourceTranslationSet)
func (ResourceTranslationSet) FindByID ¶
func (set ResourceTranslationSet) FindByID(ID uint64) *ResourceTranslation
FindByID finds items from slice by its ID property
This function is auto-generated.
func (ResourceTranslationSet) IDs ¶
func (set ResourceTranslationSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
func (ResourceTranslationSet) New ¶
func (set ResourceTranslationSet) New(bb locale.ResourceTranslationSet) (out ResourceTranslationSet)
func (ResourceTranslationSet) Old ¶
func (set ResourceTranslationSet) Old(bb locale.ResourceTranslationSet) (out [][2]*ResourceTranslation)
func (ResourceTranslationSet) Walk ¶
func (set ResourceTranslationSet) Walk(w func(*ResourceTranslation) error) (err error)
Walk iterates through every slice item and calls w(ResourceTranslation) err
This function is auto-generated.
type Role ¶
type Role struct { ID uint64 `json:"roleID,string"` Name string `json:"name"` Handle string `json:"handle"` Meta *RoleMeta `json:"meta"` Labels map[string]string `json:"labels,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` ArchivedAt *time.Time `json:"archivedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
func (Role) LabelResourceID ¶
GetLabels adds new label to label map
func (Role) LabelResourceKind ¶
GetLabels adds new label to label map
func (Role) RbacResource ¶
RbacResource returns string representation of RBAC resource for Role by calling RoleRbacResource fn
RBAC resource is in the corteza::system:role/... format
This function is auto-generated
type RoleContext ¶
type RoleFilter ¶
type RoleFilter struct { RoleID []string `json:"roleID"` MemberID uint64 `json:"memberID,string"` Query string `json:"query"` Handle string `json:"handle"` Name string `json:"name"` Deleted filter.State `json:"deleted"` Archived filter.State `json:"archived"` LabeledIDs []uint64 `json:"-"` Labels map[string]string `json:"labels,omitempty"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*Role) (bool, error) `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type RoleMember ¶
func (RoleMember) GetID ¶
func (r RoleMember) GetID() uint64
type RoleMemberFilter ¶
type RoleMemberSet ¶
type RoleMemberSet []*RoleMember
RoleMemberSet slice of RoleMember
This type is auto-generated.
func (RoleMemberSet) Filter ¶
func (set RoleMemberSet) Filter(f func(*RoleMember) (bool, error)) (out RoleMemberSet, err error)
Filter iterates through every slice item, calls f(RoleMember) (bool, err) and return filtered slice
This function is auto-generated.
func (RoleMemberSet) Walk ¶
func (set RoleMemberSet) Walk(w func(*RoleMember) error) (err error)
Walk iterates through every slice item and calls w(RoleMember) err
This function is auto-generated.
type RoleMeta ¶
type RoleMeta struct { Description string `json:"description,omitempty"` Context *RoleContext `json:"context,omitempty"` }
func ParseRoleMeta ¶
type RoleMetrics ¶
type RoleMetrics struct { Total uint `json:"total"` Valid uint `json:"valid"` Deleted uint `json:"deleted"` Archived uint `json:"archived"` DailyCreated []uint `json:"dailyCreated"` DailyDeleted []uint `json:"dailyDeleted"` DailyUpdated []uint `json:"dailyUpdated"` DailyArchived []uint `json:"dailyArchived"` }
type RoleSet ¶
type RoleSet []*Role
RoleSet slice of Role
This type is auto-generated.
func (RoleSet) Filter ¶
Filter iterates through every slice item, calls f(Role) (bool, err) and return filtered slice
This function is auto-generated.
func (RoleSet) FindByHandle ¶
FindByHandle finds role by it's handle
func (RoleSet) FindByID ¶
FindByID finds items from slice by its ID property
This function is auto-generated.
type ScenarioFilterMap ¶
type ScenarioFilterMap map[string]ReportFilterExpr
type SettingValue ¶
type SettingValue struct { Name string `json:"name"` Value types.JSONText `json:"value"` // Setting owner, 0 for global settings OwnedBy uint64 `json:"-"` // Who updated & when UpdatedAt time.Time `json:"updatedAt"` UpdatedBy uint64 `json:"updatedBy"` }
func MakeSettingValue ¶
func MakeSettingValue(name string, value interface{}) *SettingValue
func (*SettingValue) Bool ¶
func (v *SettingValue) Bool() (out bool)
func (*SettingValue) Eq ¶
func (v *SettingValue) Eq(c *SettingValue) bool
func (*SettingValue) GetID ¶
func (v *SettingValue) GetID() uint64
These functions exist only to satisfy pkg/envoyx interfaces
func (*SettingValue) IsNull ¶
func (v *SettingValue) IsNull() (out bool)
func (*SettingValue) NormalizeValue ¶
func (v *SettingValue) NormalizeValue()
func (*SettingValue) SetRawSetting ¶
func (v *SettingValue) SetRawSetting(str string) error
func (*SettingValue) SetSetting ¶
func (v *SettingValue) SetSetting(value interface{}) (err error)
func (*SettingValue) String ¶
func (v *SettingValue) String() (out string)
type SettingValueSet ¶
type SettingValueSet []*SettingValue
SettingValueSet slice of SettingValue
This type is auto-generated.
func (SettingValueSet) Changed ¶
func (set SettingValueSet) Changed(in SettingValueSet) (out SettingValueSet)
Returns all valus that changed or do not exist in the original set
func (SettingValueSet) Filter ¶
func (set SettingValueSet) Filter(f func(*SettingValue) (bool, error)) (out SettingValueSet, err error)
Filter iterates through every slice item, calls f(SettingValue) (bool, err) and return filtered slice
This function is auto-generated.
func (SettingValueSet) FilterByPrefix ¶
func (set SettingValueSet) FilterByPrefix(prefix string) SettingValueSet
func (SettingValueSet) FindByName ¶
func (set SettingValueSet) FindByName(name string) *SettingValue
func (SettingValueSet) First ¶
func (set SettingValueSet) First(name string) *SettingValue
First finds and returns first value
func (*SettingValueSet) Has ¶
func (set *SettingValueSet) Has(name string) bool
Replace finds and updates existing or appends new value
func (SettingValueSet) KV ¶
func (set SettingValueSet) KV() SettingsKV
func (SettingValueSet) New ¶
func (set SettingValueSet) New(in SettingValueSet) (out SettingValueSet)
New returns all new values (that do not exist in the original set)
func (SettingValueSet) Old ¶
func (set SettingValueSet) Old(in SettingValueSet) (out SettingValueSet)
New returns all old values (that exist in the original set)
func (*SettingValueSet) Replace ¶
func (set *SettingValueSet) Replace(n *SettingValue)
Replace finds and updates existing or appends new value
func (SettingValueSet) Trash ¶
func (set SettingValueSet) Trash() (out SettingValueSet)
Trash returns values from the set that were set ti nil
func (SettingValueSet) Walk ¶
func (set SettingValueSet) Walk(w func(*SettingValue) error) (err error)
Walk iterates through every slice item and calls w(SettingValue) err
This function is auto-generated.
type SettingsFilter ¶
type SettingsFilter struct { Prefix string `json:"prefix"` OwnedBy uint64 `json:"ownedBy"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*SettingValue) (bool, error) `json:"-"` Limit uint `json:"-"` }
type SettingsKV ¶
func (SettingsKV) Bool ¶
func (kv SettingsKV) Bool(k string) (out bool)
func (SettingsKV) CutPrefix ¶
func (kv SettingsKV) CutPrefix(prefix string) SettingsKV
CutPrefix returns values with matching prefix and removes the prefix from keys
func (SettingsKV) Decode ¶
func (kv SettingsKV) Decode(dst interface{}) error
Decode is a helper function on SettingsKV that calls DecodeKV() and passes on the dst
func (SettingsKV) Filter ¶
func (kv SettingsKV) Filter(prefix string) SettingsKV
func (SettingsKV) Has ¶
func (kv SettingsKV) Has(k string) (ok bool)
func (SettingsKV) String ¶
func (kv SettingsKV) String(k string) (out string)
type SinkRequest ¶
type SinkRequest struct { Method string `json:"method"` Path string `json:"path"` Host string `json:"host"` Header http.Header `json:"header"` Query url.Values `json:"query"` Username string `json:"username"` Password string `json:"password"` RemoteAddr string `json:"remoteAddress"` // Make sure to set content-type to // application/octet-stream or application/x-www-form-urlencoded // to fill up PostForm PostForm url.Values `json:"postForm"` // RawBody will be base64 encoded! // (might contain binary data) Body []byte `json:"rawBody,string"` }
func NewSinkRequest ¶
type SinkResponse ¶
type SmtpCheckResult ¶
type SmtpCheckResult struct { Host string `json:"host"` Server string `json:"server"` Send string `json:"send"` }
SmtpCheckResult represents the messages returned after SMTP Host validation, SMTP Server configurations check and Send test email process
type SmtpConfiguration ¶
type SmtpServers ¶
type Template ¶
type Template struct { ID uint64 `json:"templateID,string"` Handle string `json:"handle"` // Language specifies the language the template is written for; leave empty for default Language string `json:"language"` Type DocumentType `json:"type"` // Partial templates can be used to construct larger templates; for example headers and footers Partial bool `json:"partial"` // use int so JS can handle it normally // // @todo We'll handle this at a later point // Revision int `json:"revision,string"` Meta TemplateMeta `json:"meta"` Template string `json:"template"` Labels map[string]string `json:"labels,omitempty"` OwnerID uint64 `json:"ownerID,string"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` LastUsedAt *time.Time `json:"lastUsedAt,omitempty"` }
func (Template) LabelResourceID ¶
GetLabels adds new label to label map
func (Template) LabelResourceKind ¶
GetLabels adds new label to label map
func (Template) RbacResource ¶
RbacResource returns string representation of RBAC resource for Template by calling TemplateRbacResource fn
RBAC resource is in the corteza::system:template/... format
This function is auto-generated
type TemplateFilter ¶
type TemplateFilter struct { TemplateID []string `json:"templateID"` Query string `json:"query"` Handle string `json:"handle"` Type string `json:"type"` OwnerID uint64 `json:"ownerID,string"` Partial bool `json:"partial"` LabeledIDs []uint64 `json:"-"` Labels map[string]string `json:"labels,omitempty"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*Template) (bool, error) `json:"-"` Deleted filter.State `json:"deleted"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type TemplateMeta ¶
type TemplateMeta struct { Short string `json:"short"` Description string `json:"description,omitempty"` }
func ParseTemplateMeta ¶
func ParseTemplateMeta(ss []string) (p TemplateMeta, err error)
func (*TemplateMeta) Scan ¶
func (t *TemplateMeta) Scan(src any) error
type TemplateSet ¶
type TemplateSet []*Template
TemplateSet slice of Template
This type is auto-generated.
func (TemplateSet) Filter ¶
func (set TemplateSet) Filter(f func(*Template) (bool, error)) (out TemplateSet, err error)
Filter iterates through every slice item, calls f(Template) (bool, err) and return filtered slice
This function is auto-generated.
func (TemplateSet) FindByID ¶
func (set TemplateSet) FindByID(ID uint64) *Template
FindByID finds items from slice by its ID property
This function is auto-generated.
func (TemplateSet) IDs ¶
func (set TemplateSet) IDs() (IDs []uint64)
IDs returns a slice of uint64s from all items in the set
This function is auto-generated.
type User ¶
type User struct { ID uint64 `json:"userID,string"` Username string `json:"username"` Email string `json:"email"` Name string `json:"name"` Handle string `json:"handle"` Kind UserKind `json:"kind"` Meta *UserMeta `json:"meta"` EmailConfirmed bool `json:"emailConfirmed"` Labels map[string]string `json:"labels,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` SuspendedAt *time.Time `json:"suspendedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` // contains filtered or unexported fields }
func (User) LabelResourceID ¶
GetLabels adds new label to label map
func (User) LabelResourceKind ¶
GetLabels adds new label to label map
func (User) RbacResource ¶
RbacResource returns string representation of RBAC resource for User by calling UserRbacResource fn
RBAC resource is in the corteza::system:user/... format
This function is auto-generated
type UserFilter ¶
type UserFilter struct { UserID []string `json:"userID"` RoleID []string `json:"roleID"` Query string `json:"query"` Email string `json:"email"` Username string `json:"username"` Handle string `json:"handle"` Kind UserKind `json:"kind"` // Set to true if you want to get all kinds/types of users AllKinds bool `json:"anyKind"` LabeledIDs []uint64 `json:"-"` Labels map[string]string `json:"labels,omitempty"` Deleted filter.State `json:"deleted"` Suspended filter.State `json:"suspended"` // Check fn is called by store backend for each resource found function can // modify the resource and return false if store should not return it // // Store then loads additional resources to satisfy the paging parameters Check func(*User) (bool, error) `json:"-"` MaskedEmailsEnabled bool `json:"-"` MaskedNamesEnabled bool `json:"-"` // Standard helpers for paging and sorting filter.Sorting filter.Paging }
type UserMeta ¶
type UserMeta struct { // User's profile avatar photo attachment ID AvatarID uint64 `json:"avatarID,string"` AvatarKind string `json:"avatarKind,omitempty"` // User's avatar initial text and background color AvatarColor string `json:"avatarColor,omitempty"` AvatarBgColor string `json:"avatarBgColor,omitempty"` PreferredLanguage string `json:"preferredLanguage"` Theme string `json:"theme"` // User's security policy settings SecurityPolicy struct { // settings for multi-factor authentication MFA struct { // Enforce OTP on login EnforcedEmailOTP bool `json:"enforcedEmailOTP"` // Is TOTP configured & enforced? EnforcedTOTP bool `json:"enforcedTOTP"` } `json:"mfa"` } `json:"securityPolicy"` }
func ParseUserMeta ¶
type UserMetrics ¶
type UserMetrics struct { Total uint `json:"total"` Valid uint `json:"valid"` Deleted uint `json:"deleted"` Suspended uint `json:"suspended"` DailyCreated []uint `json:"dailyCreated"` DailyDeleted []uint `json:"dailyDeleted"` DailyUpdated []uint `json:"dailyUpdated"` DailySuspended []uint `json:"dailySuspended"` }
type UserSet ¶
type UserSet []*User
UserSet slice of User
This type is auto-generated.
func (UserSet) Filter ¶
Filter iterates through every slice item, calls f(User) (bool, err) and return filtered slice
This function is auto-generated.
func (UserSet) FindByID ¶
FindByID finds items from slice by its ID property
This function is auto-generated.
Source Files ¶
- apigw_filter.go
- apigw_profiler.go
- apigw_route.go
- app_settings.go
- applications.go
- attachment.go
- auth.go
- auth_client.go
- auth_oa2token.go
- auth_session.go
- credential.go
- dal_connection.go
- dal_schema_ateration.go
- dal_sensitivity_level.go
- data_privacy.go
- getters_setters.gen.go
- kv_decoder.go
- mail_message.go
- parsers.go
- permission.go
- queue.go
- rbac.gen.go
- reminder.go
- report.go
- resource_translation.go
- resources.gen.go
- role.go
- role_members.go
- settings.go
- sink.go
- smtp_configuration.go
- template.go
- type_labels.gen.go
- type_set.gen.go
- user.go