Documentation ¶
Index ¶
- Constants
- type APIMigration
- type Authentication
- type CFeature
- func (f *CFeature) Action(verb string, details ...string) (action feature.Action)
- func (f *CFeature) AddConnectModule(name string, module interface{}) MakeFeature
- func (f *CFeature) AddContentSecurityPolicyDirective(p csp.Directive) MakeFeature
- func (f *CFeature) AddDashboardItemFromFile(key, name, thumbnailUrl, description, path, filePath string) MakeFeature
- func (f *CFeature) AddDashboardItemFromFileWithConfig(...) MakeFeature
- func (f *CFeature) AddDashboardItemFromString(key, name, thumbnailUrl, description, path, raw string) MakeFeature
- func (f *CFeature) AddDashboardItemFromStringWithConfig(key, name, thumbnailUrl, description, path, raw, configPath, configRaw string) MakeFeature
- func (f *CFeature) AddDashboardItemProcessor(key, path, name, thumbnailUrl, description string, ...) MakeFeature
- func (f *CFeature) AddDashboardItemProcessorWithConfig(key, path, name, thumbnailUrl, description, configPath string, ...) MakeFeature
- func (f *CFeature) AddGeneralPageFromFile(key, path, name, iconUrl string, filePath string) MakeFeature
- func (f *CFeature) AddGeneralPageFromString(key, path, name, iconUrl string, raw string) MakeFeature
- func (f *CFeature) AddGeneralPageProcessor(key, path, name, iconUrl string, processor feature.ReqProcessFn) MakeFeature
- func (f *CFeature) AddRouteHandler(route string, handler http.Handler) MakeFeature
- func (f *CFeature) AddRouteProcessor(route string, processor feature.ReqProcessFn) MakeFeature
- func (f *CFeature) Apply(s feature.System) (err error)
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) ConnectApiVersion(apiVersion int) MakeFeature
- func (f *CFeature) ConnectDisabledHandler(handler http.Handler) MakeFeature
- func (f *CFeature) ConnectEnabledHandler(handler http.Handler) MakeFeature
- func (f *CFeature) ConnectFromJSON(encoded []byte) MakeFeature
- func (f *CFeature) ConnectInfo(name, key, description, baseUrl string) MakeFeature
- func (f *CFeature) ConnectLicensing(enable bool) MakeFeature
- func (f *CFeature) ConnectScopes(scopes ...string) MakeFeature
- func (f *CFeature) ConnectVendor(name, url string) MakeFeature
- func (f *CFeature) EnableIpValidation(enabled bool) MakeFeature
- func (f *CFeature) FilterPageContext(ctx, _ beContext.Context, r *http.Request) (out beContext.Context)
- func (f *CFeature) FindTenantByUrl(url string) (tenant *store.Tenant)
- func (f *CFeature) GetPluginDescriptor() (descriptor *Descriptor)
- func (f *CFeature) GetPluginInstallationURL() (url string)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() Feature
- func (f *CFeature) Process(s feature.Service, next http.Handler, w http.ResponseWriter, r *http.Request)
- func (f *CFeature) ProfileBaseRoute(mount string) MakeFeature
- func (f *CFeature) ProfileBaseUrl(baseUrl string) MakeFeature
- func (f *CFeature) ProfileSignedInstall(signedInstall bool) MakeFeature
- func (f *CFeature) SetGormDB(tag string) MakeFeature
- func (f *CFeature) SetTableName(table string) MakeFeature
- func (f *CFeature) Setup(enjin feature.Internals)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- func (f *CFeature) Tag() (tag feature.Tag)
- func (f *CFeature) Use(s feature.System) feature.MiddlewareFn
- func (f *CFeature) UserActions() (actions feature.Actions)
- type ConditionParams
- type Conditions
- type DashboardItem
- type DashboardItems
- type Description
- type Descriptor
- type Feature
- type GeneralPage
- type GeneralPages
- type Icon
- type JiraIssueFields
- type Lifecycle
- type MakeFeature
- type Name
- type Vendor
- type WebPanel
- type Webhooks
Constants ¶
const (
SignalRouteHandled signaling.Signal = "gonnectian-route-handled"
)
const Tag feature.Tag = "gonnectian"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIMigration ¶
type APIMigration struct {
SignedInstall bool `json:"signed-install"`
}
type Authentication ¶
type Authentication struct {
Type string `json:"type"`
}
Authentication is auto generated by github.com/perrito666/LAC from a json file
type CFeature ¶
func (*CFeature) AddConnectModule ¶
func (f *CFeature) AddConnectModule(name string, module interface{}) MakeFeature
func (*CFeature) AddContentSecurityPolicyDirective ¶
func (f *CFeature) AddContentSecurityPolicyDirective(p csp.Directive) MakeFeature
func (*CFeature) AddDashboardItemFromFile ¶
func (f *CFeature) AddDashboardItemFromFile(key, name, thumbnailUrl, description, path, filePath string) MakeFeature
func (*CFeature) AddDashboardItemFromFileWithConfig ¶
func (f *CFeature) AddDashboardItemFromFileWithConfig(key, name, thumbnailUrl, description, path, filePath, configPath, configFile string) MakeFeature
func (*CFeature) AddDashboardItemFromString ¶
func (f *CFeature) AddDashboardItemFromString(key, name, thumbnailUrl, description, path, raw string) MakeFeature
func (*CFeature) AddDashboardItemFromStringWithConfig ¶
func (f *CFeature) AddDashboardItemFromStringWithConfig(key, name, thumbnailUrl, description, path, raw, configPath, configRaw string) MakeFeature
func (*CFeature) AddDashboardItemProcessor ¶
func (f *CFeature) AddDashboardItemProcessor(key, path, name, thumbnailUrl, description string, processor feature.ReqProcessFn) MakeFeature
func (*CFeature) AddDashboardItemProcessorWithConfig ¶
func (f *CFeature) AddDashboardItemProcessorWithConfig(key, path, name, thumbnailUrl, description, configPath string, configProcessor, processor feature.ReqProcessFn) MakeFeature
func (*CFeature) AddGeneralPageFromFile ¶
func (f *CFeature) AddGeneralPageFromFile(key, path, name, iconUrl string, filePath string) MakeFeature
func (*CFeature) AddGeneralPageFromString ¶
func (f *CFeature) AddGeneralPageFromString(key, path, name, iconUrl string, raw string) MakeFeature
func (*CFeature) AddGeneralPageProcessor ¶
func (f *CFeature) AddGeneralPageProcessor(key, path, name, iconUrl string, processor feature.ReqProcessFn) MakeFeature
func (*CFeature) AddRouteHandler ¶
func (f *CFeature) AddRouteHandler(route string, handler http.Handler) MakeFeature
func (*CFeature) AddRouteProcessor ¶
func (f *CFeature) AddRouteProcessor(route string, processor feature.ReqProcessFn) MakeFeature
func (*CFeature) ConnectApiVersion ¶
func (f *CFeature) ConnectApiVersion(apiVersion int) MakeFeature
func (*CFeature) ConnectDisabledHandler ¶
func (f *CFeature) ConnectDisabledHandler(handler http.Handler) MakeFeature
func (*CFeature) ConnectEnabledHandler ¶
func (f *CFeature) ConnectEnabledHandler(handler http.Handler) MakeFeature
func (*CFeature) ConnectFromJSON ¶
func (f *CFeature) ConnectFromJSON(encoded []byte) MakeFeature
func (*CFeature) ConnectInfo ¶
func (f *CFeature) ConnectInfo(name, key, description, baseUrl string) MakeFeature
func (*CFeature) ConnectLicensing ¶
func (f *CFeature) ConnectLicensing(enable bool) MakeFeature
func (*CFeature) ConnectScopes ¶
func (f *CFeature) ConnectScopes(scopes ...string) MakeFeature
func (*CFeature) ConnectVendor ¶
func (f *CFeature) ConnectVendor(name, url string) MakeFeature
func (*CFeature) EnableIpValidation ¶
func (f *CFeature) EnableIpValidation(enabled bool) MakeFeature
func (*CFeature) FilterPageContext ¶
func (*CFeature) FindTenantByUrl ¶
func (*CFeature) GetPluginDescriptor ¶
func (f *CFeature) GetPluginDescriptor() (descriptor *Descriptor)
func (*CFeature) GetPluginInstallationURL ¶
func (*CFeature) ProfileBaseRoute ¶
func (f *CFeature) ProfileBaseRoute(mount string) MakeFeature
func (*CFeature) ProfileBaseUrl ¶
func (f *CFeature) ProfileBaseUrl(baseUrl string) MakeFeature
func (*CFeature) ProfileSignedInstall ¶
func (f *CFeature) ProfileSignedInstall(signedInstall bool) MakeFeature
func (*CFeature) SetGormDB ¶
func (f *CFeature) SetGormDB(tag string) MakeFeature
func (*CFeature) SetTableName ¶
func (f *CFeature) SetTableName(table string) MakeFeature
func (*CFeature) UserActions ¶
type ConditionParams ¶
type ConditionParams struct {
Expression string `json:"expression,omitempty"`
}
ConditionParams is auto generated by github.com/perrito666/LAC from a json file
type Conditions ¶
type Conditions struct { Condition string `json:"condition,omitempty"` Invert bool `json:"invert,omitempty"` Params ConditionParams `json:"params,omitempty"` Or []Conditions `json:"or,omitempty"` And []Conditions `json:"and,omitempty"` }
Conditions is auto generated by github.com/perrito666/LAC from a json file
type DashboardItem ¶
type DashboardItem struct { Url string `json:"url"` Key string `json:"key"` Name Name `json:"name"` ThumbnailUrl string `json:"thumbnailUrl"` Description Description `json:"description,omitempty"` Conditions []Conditions `json:"conditions,omitempty"` Configurable bool `json:"configurable,omitempty"` }
func NewDashboardItem ¶
func NewDashboardItem(key, url, name, thumbnailUrl, description string, configurable bool) DashboardItem
type DashboardItems ¶
type DashboardItems []DashboardItem
type Description ¶
type Description struct {
Value string `json:"value"`
}
Description is auto generated by github.com/perrito666/LAC from a json file
type Descriptor ¶
type Descriptor struct { Authentication Authentication `json:"authentication,omitempty"` BaseURL string `json:"baseUrl,omitempty"` Description string `json:"description,omitempty"` Key string `json:"key,omitempty"` Lifecycle Lifecycle `json:"lifecycle,omitempty"` Modules map[string]interface{} `json:"modules,omitempty"` Name string `json:"name,omitempty"` Scopes []string `json:"scopes,omitempty"` Vendor Vendor `json:"vendor,omitempty"` APIMigrations APIMigration `json:"apiMigrations,omitempty"` Version string `json:"version,omitempty"` ApiVersion int `json:"apiVersion,omitempty"` Licensing bool `json:"enableLicensing,omitempty"` }
Descriptor is auto generated by github.com/perrito666/LAC from a json file
func NewDescriptor ¶
func NewDescriptor() (d *Descriptor)
func NewDescriptorFromJSON ¶
func NewDescriptorFromJSON(encoded []byte) (descriptor *Descriptor, err error)
func (*Descriptor) Copy ¶
func (d *Descriptor) Copy() (other *Descriptor)
func (*Descriptor) ToJSON ¶
func (d *Descriptor) ToJSON() (encoded []byte, err error)
func (*Descriptor) ToMap ¶
func (d *Descriptor) ToMap() (out map[string]interface{}, err error)
type Feature ¶
type Feature interface { feature.Feature feature.Processor feature.UseMiddleware feature.ApplyMiddleware feature.PageContextModifier feature.UserActionsProvider GetPluginInstallationURL() (url string) GetPluginDescriptor() (descriptor *Descriptor) FindTenantByUrl(url string) (tenant *store.Tenant) }
type GeneralPage ¶
type GeneralPage struct { Key string `json:"key"` Url string `json:"url"` Name Name `json:"name"` Icon *Icon `json:"icon,omitempty"` Cacheable bool `json:"cacheable,omitempty"` Conditions []Conditions `json:"conditions,omitempty"` Location string `json:"location,omitempty"` Params map[string]string `json:"params,omitempty"` Weight int `json:"weight,omitempty"` }
func NewGeneralPage ¶
func NewGeneralPage(key, url, name, iconUrl string) GeneralPage
type GeneralPages ¶
type GeneralPages []GeneralPage
type JiraIssueFields ¶
type JiraIssueFields struct { Description Description `json:"description,omitempty"` Key string `json:"key,omitempty"` Name Name `json:"name,omitempty"` Type string `json:"type,omitempty"` }
JiraIssueFields is auto generated by github.com/perrito666/LAC from a json file
type Lifecycle ¶
type Lifecycle struct { Installed string `json:"installed,omitempty"` UnInstalled string `json:"uninstalled,omitempty"` Enabled string `json:"enabled,omitempty"` Disabled string `json:"disabled,omitempty"` }
Lifecycle is auto generated by github.com/perrito666/LAC from a json file
type MakeFeature ¶
type MakeFeature interface { Make() Feature SetGormDB(tag string) MakeFeature SetTableName(table string) MakeFeature EnableIpValidation(enabled bool) MakeFeature ProfileBaseUrl(baseUrl string) MakeFeature ProfileBaseRoute(mount string) MakeFeature ProfileSignedInstall(signedInstall bool) MakeFeature ConnectFromJSON(encoded []byte) MakeFeature ConnectInfo(name, key, description, baseUrl string) MakeFeature ConnectVendor(name, url string) MakeFeature ConnectScopes(scopes ...string) MakeFeature ConnectApiVersion(apiVersion int) MakeFeature ConnectLicensing(enable bool) MakeFeature ConnectEnabledHandler(handler http.Handler) MakeFeature ConnectDisabledHandler(handler http.Handler) MakeFeature AddGeneralPageFromString(key, path, name, iconUrl string, raw string) MakeFeature AddGeneralPageFromFile(key, path, name, iconUrl string, filePath string) MakeFeature AddGeneralPageProcessor(key, path, name, iconUrl string, processor feature.ReqProcessFn) MakeFeature AddDashboardItemFromString(key, name, thumbnailUrl, description, path, raw string) MakeFeature AddDashboardItemFromStringWithConfig(key, name, thumbnailUrl, description, path, raw, configPath, configRaw string) MakeFeature AddDashboardItemFromFile(key, name, thumbnailUrl, description, path, filePath string) MakeFeature AddDashboardItemFromFileWithConfig(key, name, thumbnailUrl, description, path, filePath, configPath, configFile string) MakeFeature AddDashboardItemProcessor(key, path, name, thumbnailUrl, description string, processor feature.ReqProcessFn) MakeFeature AddDashboardItemProcessorWithConfig(key, path, name, thumbnailUrl, description, configPath string, configProcessor, processor feature.ReqProcessFn) MakeFeature AddConnectModule(name string, module interface{}) MakeFeature AddRouteHandler(route string, handler http.Handler) MakeFeature AddRouteProcessor(route string, processor feature.ReqProcessFn) MakeFeature AddContentSecurityPolicyDirective(p csp.Directive) MakeFeature }
func New ¶
func New(name, tag, env string) MakeFeature
type Name ¶
type Name struct {
Value string `json:"value,omitempty"`
}
Name is auto generated by github.com/perrito666/LAC from a json file
type WebPanel ¶
type WebPanel struct { Conditions []Conditions `json:"conditions,omitempty"` Context string `json:"context,omitempty"` Key string `json:"key,omitempty"` Location string `json:"location,omitempty"` Name Name `json:"name,omitempty"` URL string `json:"url,omitempty"` Weight float64 `json:"weight,omitempty"` }
WebPanel is auto generated by github.com/perrito666/LAC from a json file