Versions in this module Expand all Collapse all v3 v3.4.3 Dec 27, 2023 Changes in this version + var LogConfGVK = schema.GroupVersionKind + var LogConfGVR = schema.GroupVersionResource + var PolicyGVK = schema.GroupVersionKind + var PolicyGVR = schema.GroupVersionResource + var UserSigGVK = schema.GroupVersionKind + var UserSigGVR = schema.GroupVersionResource + type Change struct + Op Operation + Resource interface{} + type Configuration interface + AddOrUpdateLogConf func(logConfObj *unstructured.Unstructured) (changes []Change, problems []Problem) + AddOrUpdatePolicy func(policyObj *unstructured.Unstructured) (changes []Change, problems []Problem) + AddOrUpdateUserSig func(userSigObj *unstructured.Unstructured) (change UserSigChange, problems []Problem) + DeleteLogConf func(key string) (changes []Change, problems []Problem) + DeletePolicy func(key string) (changes []Change, problems []Problem) + DeleteUserSig func(key string) (change UserSigChange, problems []Problem) + GetAppResource func(kind, key string) (*unstructured.Unstructured, error) + func NewConfiguration() Configuration + func NewFakeConfiguration() Configuration + type ConfigurationImpl struct + LogConfs map[string]*LogConfEx + Policies map[string]*PolicyEx + UserSigs map[string]*UserSigEx + func (ci *ConfigurationImpl) AddOrUpdateLogConf(logconfObj *unstructured.Unstructured) (changes []Change, problems []Problem) + func (ci *ConfigurationImpl) AddOrUpdatePolicy(policyObj *unstructured.Unstructured) (changes []Change, problems []Problem) + func (ci *ConfigurationImpl) AddOrUpdateUserSig(userSigObj *unstructured.Unstructured) (change UserSigChange, problems []Problem) + func (ci *ConfigurationImpl) DeleteLogConf(key string) (changes []Change, problems []Problem) + func (ci *ConfigurationImpl) DeletePolicy(key string) (changes []Change, problems []Problem) + func (ci *ConfigurationImpl) DeleteUserSig(key string) (change UserSigChange, problems []Problem) + func (ci *ConfigurationImpl) GetAppResource(kind, key string) (*unstructured.Unstructured, error) + type FakeConfiguration struct + LogConfs map[string]*LogConfEx + Policies map[string]*PolicyEx + UserSigs map[string]*UserSigEx + func (fc *FakeConfiguration) AddOrUpdateLogConf(logConfObj *unstructured.Unstructured) (changes []Change, problems []Problem) + func (fc *FakeConfiguration) AddOrUpdatePolicy(policyObj *unstructured.Unstructured) (changes []Change, problems []Problem) + func (fc *FakeConfiguration) AddOrUpdateUserSig(_ *unstructured.Unstructured) (change UserSigChange, problems []Problem) + func (fc *FakeConfiguration) DeleteLogConf(_ string) (changes []Change, problems []Problem) + func (fc *FakeConfiguration) DeletePolicy(_ string) (changes []Change, problems []Problem) + func (fc *FakeConfiguration) DeleteUserSig(_ string) (change UserSigChange, problems []Problem) + func (fc *FakeConfiguration) GetAppResource(kind, key string) (*unstructured.Unstructured, error) + type LogConfEx struct + ErrorMsg string + IsValid bool + Obj *unstructured.Unstructured + type Operation int + const AddOrUpdate + const Delete + type PolicyEx struct + ErrorMsg string + IsValid bool + Obj *unstructured.Unstructured + SignatureReqs []SignatureReq + type Problem struct + Message string + Object *unstructured.Unstructured + Reason string + type RevTimes struct + MaxRevTime *time.Time + MinRevTime *time.Time + type SignatureReq struct + RevTimes *RevTimes + Tag string + type UserSigChange struct + PolicyAddsOrUpdates []*unstructured.Unstructured + PolicyDeletions []*unstructured.Unstructured + UserSigs []*unstructured.Unstructured + type UserSigEx struct + ErrorMsg string + IsValid bool + Obj *unstructured.Unstructured + RevTime *time.Time + Tag string