Versions in this module Expand all Collapse all v1 v1.5.0 Nov 30, 2021 v1.4.6 Oct 28, 2021 Changes in this version + var E_RestApi = &file_pb_http_entry_proto_extTypes[0] + var File_pb_http_entry_proto protoreflect.FileDescriptor + type Entry struct + Allow []string + AuditLog bool + AuthEnable bool + Extension map[string]string + FunctionName string + Labels map[string]string + Method string + Path string + PermissionEnable bool + RequiredNamespace bool + Resource string + func NewEntry(path, method, resource string) *Entry + func (*Entry) Descriptor() ([]byte, []int) + func (*Entry) ProtoMessage() + func (e *Entry) AddLabel(labels ...*Label) EntryDecorator + func (e *Entry) Copy() *Entry + func (e *Entry) DisableAuditLog() EntryDecorator + func (e *Entry) DisableAuth() EntryDecorator + func (e *Entry) DisablePermission() EntryDecorator + func (e *Entry) DisableRequiredNamespace() EntryDecorator + func (e *Entry) EnableAuditLog() EntryDecorator + func (e *Entry) EnableAuth() EntryDecorator + func (e *Entry) EnablePermission() EntryDecorator + func (e *Entry) EnableRequreNamespace() EntryDecorator + func (e *Entry) GetLableValue(key string) string + func (e *Entry) IsAllow(target fmt.Stringer) bool + func (e *Entry) SetAllow(targets ...fmt.Stringer) EntryDecorator + func (e *Entry) UniquePath() string + func (x *Entry) GetAllow() []string + func (x *Entry) GetAuditLog() bool + func (x *Entry) GetAuthEnable() bool + func (x *Entry) GetExtension() map[string]string + func (x *Entry) GetFunctionName() string + func (x *Entry) GetLabels() map[string]string + func (x *Entry) GetMethod() string + func (x *Entry) GetPath() string + func (x *Entry) GetPermissionEnable() bool + func (x *Entry) GetRequiredNamespace() bool + func (x *Entry) GetResource() string + func (x *Entry) ProtoReflect() protoreflect.Message + func (x *Entry) Reset() + func (x *Entry) String() string + type EntryDecorator interface + AddLabel func(...*Label) EntryDecorator + DisableAuditLog func() EntryDecorator + DisableAuth func() EntryDecorator + DisablePermission func() EntryDecorator + DisableRequiredNamespace func() EntryDecorator + EnableAuditLog func() EntryDecorator + EnableAuth func() EntryDecorator + EnablePermission func() EntryDecorator + EnableRequreNamespace func() EntryDecorator + SetAllow func(targets ...fmt.Stringer) EntryDecorator + type EntrySet struct + Items []*Entry + func NewEntrySet() *EntrySet + func (s *EntrySet) AddEntry(es ...Entry) + func (s *EntrySet) AuthEnableEntry() []*Entry + func (s *EntrySet) GetEntry(path, mothod string) *Entry + func (s *EntrySet) Merge(target *EntrySet) + func (s *EntrySet) PermissionEnableEntry() []*Entry + func (s *EntrySet) String() string + func (s *EntrySet) UniquePathEntry() []*Entry + type Label struct + func NewLable(k, v string) *Label + func (l *Label) Key() string + func (l *Label) Value() string