Documentation ¶
Index ¶
- func AcceptedServiceTypes() []string
- func AddObjToClustersetServiceFilter(cname, ns, obj string, port int32) error
- func DeleteObjFromClustersetServiceFilter(cname, ns, obj string, port int32) error
- func GetClustersetServiceFilter() map[string]*NSServiceFilter
- func InitClustersetServiceFilter(clusters []string) (map[string]*NSServiceFilter, error)
- func IsObjectInClustersetFilter(cname, ns, obj string) bool
- func IsServiceOfAcceptedType(svcObj *v1.Service) bool
- func IsSvcPortInClustersetFilter(cname, ns, obj string, port int32) bool
- type NSServiceFilter
- func (nsvcf *NSServiceFilter) AddToNSServiceFilter(ns, svc string, port int32)
- func (nsvcf *NSServiceFilter) DeleteFromNSServiceFilter(ns, obj string, port int32)
- func (nsvcf *NSServiceFilter) IsObjectPresent(ns, obj string) bool
- func (nsvcf *NSServiceFilter) IsSvcPortPresent(ns, obj string, port int32) bool
- type PortCache
- type ServiceCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptedServiceTypes ¶
func AcceptedServiceTypes() []string
func GetClustersetServiceFilter ¶
func GetClustersetServiceFilter() map[string]*NSServiceFilter
func InitClustersetServiceFilter ¶
func InitClustersetServiceFilter(clusters []string) (map[string]*NSServiceFilter, error)
func IsServiceOfAcceptedType ¶
Types ¶
type NSServiceFilter ¶
type NSServiceFilter struct {
// contains filtered or unexported fields
}
func InitNSServiceFilter ¶
func InitNSServiceFilter() *NSServiceFilter
func (*NSServiceFilter) AddToNSServiceFilter ¶
func (nsvcf *NSServiceFilter) AddToNSServiceFilter(ns, svc string, port int32)
func (*NSServiceFilter) DeleteFromNSServiceFilter ¶
func (nsvcf *NSServiceFilter) DeleteFromNSServiceFilter(ns, obj string, port int32)
func (*NSServiceFilter) IsObjectPresent ¶
func (nsvcf *NSServiceFilter) IsObjectPresent(ns, obj string) bool
func (*NSServiceFilter) IsSvcPortPresent ¶
func (nsvcf *NSServiceFilter) IsSvcPortPresent(ns, obj string, port int32) bool
type PortCache ¶
type PortCache struct {
// contains filtered or unexported fields
}
func InitPortCache ¶
func (*PortCache) IsPortPresent ¶
type ServiceCache ¶
type ServiceCache struct {
// contains filtered or unexported fields
}
func InitServiceSet ¶
func InitServiceSet(svcName string, port int32) *ServiceCache
func (*ServiceCache) Add ¶
func (ss *ServiceCache) Add(svc string, port int32)
func (*ServiceCache) IsSvcPortPresent ¶
func (ss *ServiceCache) IsSvcPortPresent(svc string, port int32) bool
func (*ServiceCache) IsSvcPresent ¶
func (ss *ServiceCache) IsSvcPresent(svc string) bool
Click to show internal directories.
Click to hide internal directories.