Documentation
¶
Overview ¶
Copyright 2025 Comcast Cable Communications Management, LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func DeleteFeatureRule(id string)
- func DeleteOneFeature(featureId string)
- func DoesFeatureExist(id string) bool
- func DoesFeatureExistInSomeApplicationType(id string) (bool, string)
- func DoesFeatureExistWithApplicationType(id string, applicationType string) bool
- func DoesFeatureNameExistForAnotherEntityId(featureEntity *rfc.FeatureEntity) bool
- func DoesFeatureNameExistForAnotherId(feature *rfc.Feature) bool
- func DoesFeatureNameExistForAnotherIdForApplicationType(feature *xwrfc.Feature, applicationType string) bool
- func DoesFeatureNameExistForAnotherIdInList(feature *xwrfc.Feature, featureList []*xwrfc.Feature) bool
- func GetFeatureEntityList() []*rfc.FeatureEntity
- func GetFeatureRule(id string) *rfc.FeatureRule
- func GetFilteredFeatureEntityList(searchContext map[string]string) []*xwrfc.FeatureEntity
- func GetFilteredFeatureList(searchContext map[string]string) []*xwrfc.Feature
- func IsValidFeature(feature *xwrfc.Feature) (bool, string)
- func IsValidFeatureEntity(featureEntity *rfc.FeatureEntity) (bool, string)
- func NewFeatureRuleInf() interface{}
- func SetFeatureRule(id string, featureRule *rfc.FeatureRule) error
- func SetOneFeature(feature *xwrfc.Feature) (*xwrfc.Feature, error)
- type FeatureRule
- func (obj *FeatureRule) Clone() (*FeatureRule, error)
- func (obj *FeatureRule) GetApplicationType() string
- func (obj *FeatureRule) GetID() string
- func (r *FeatureRule) GetId() string
- func (r *FeatureRule) GetName() string
- func (obj *FeatureRule) GetPriority() int
- func (r *FeatureRule) GetRule() *re.Rule
- func (r *FeatureRule) GetRuleType() string
- func (r *FeatureRule) GetTemplateId() string
- func (obj *FeatureRule) SetApplicationType(appType string)
- func (obj *FeatureRule) SetPriority(priority int)
Constants ¶
const ( APPLICATION_TYPE = "applicationType" FEATURE_INSTANCE = "FEATURE_INSTANCE" NAME = "NAME" FREE_ARG = "FREE_ARG" FIXED_ARG = "FIXED_ARG" )
Variables ¶
This section is empty.
Functions ¶
func DeleteFeatureRule ¶
func DeleteFeatureRule(id string)
func DeleteOneFeature ¶
func DeleteOneFeature(featureId string)
func DoesFeatureExist ¶
func DoesFeatureNameExistForAnotherEntityId ¶
func DoesFeatureNameExistForAnotherEntityId(featureEntity *rfc.FeatureEntity) bool
func GetFeatureEntityList ¶
func GetFeatureEntityList() []*rfc.FeatureEntity
func GetFeatureRule ¶
func GetFeatureRule(id string) *rfc.FeatureRule
func GetFilteredFeatureEntityList ¶
func GetFilteredFeatureEntityList(searchContext map[string]string) []*xwrfc.FeatureEntity
func GetFilteredFeatureList ¶
func IsValidFeatureEntity ¶
func IsValidFeatureEntity(featureEntity *rfc.FeatureEntity) (bool, string)
func NewFeatureRuleInf ¶
func NewFeatureRuleInf() interface{}
func SetFeatureRule ¶
func SetFeatureRule(id string, featureRule *rfc.FeatureRule) error
Types ¶
type FeatureRule ¶
type FeatureRule struct {
Id string `json:"id"`
Name string `json:"name"`
Rule *re.Rule `json:"rule"`
Priority int `json:"priority"`
FeatureIds []string `json:"featureIds"`
ApplicationType string `json:"applicationType"`
}
FeatureRule FeatureControlRule2 table
func (*FeatureRule) Clone ¶
func (obj *FeatureRule) Clone() (*FeatureRule, error)
func (*FeatureRule) GetApplicationType ¶
func (obj *FeatureRule) GetApplicationType() string
func (*FeatureRule) GetID ¶
func (obj *FeatureRule) GetID() string
func (*FeatureRule) GetPriority ¶
func (obj *FeatureRule) GetPriority() int
func (*FeatureRule) GetRuleType ¶
func (r *FeatureRule) GetRuleType() string
GetRuleType XRule interface
func (*FeatureRule) GetTemplateId ¶
func (r *FeatureRule) GetTemplateId() string
GetTemplateId XRule interface
func (*FeatureRule) SetApplicationType ¶
func (obj *FeatureRule) SetApplicationType(appType string)
func (*FeatureRule) SetPriority ¶
func (obj *FeatureRule) SetPriority(priority int)