Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IngressCache ¶
type IngressCache struct {
// contains filtered or unexported fields
}
func NewIngressCache ¶
func NewIngressCache(logger logger.Logger) *IngressCache
type IngressHostCache ¶
type IngressHostCache interface {
IngressHostCacheReader
// Set adds a new item to the cache for the given host, path and targets. Will overwrite existing values if any
Set(host string, path string, targets []string) error
// Delete removes the specified targets from the cache for the given host and path. Will do nothing if host, path or targets do not exist
Delete(host string, path string, targets []string) error
}
type IngressHostCacheReader ¶
type IngressHostsTree ¶
type IngressHostsTree interface {
// Set sets the targets for a given path. Will overwrite existing values if the path already exists
Set(path string, targets []string) error
// Delete removes the targets from the given path and deletes the deepest suffix used only by these targets; does nothing if the path or targets don't exist.
Delete(path string, targets []string) error
// Get retrieves the best matching targets for a given path based on longest prefix match
Get(path string) (Target, error)
// IsEmpty checks if the tree is empty
IsEmpty() bool
}
type PairTarget ¶
type PairTarget [2]string
func (PairTarget) Equal ¶
func (p PairTarget) Equal(otherTarget Target) bool
func (PairTarget) ToSliceString ¶
func (p PairTarget) ToSliceString() []string
type SafeTrie ¶
type SafeTrie struct {
// contains filtered or unexported fields
}
func (*SafeTrie) Delete ¶
Delete removes the targets from a path and cleans up the longest suffix of the path only used by these targets
func (*SafeTrie) Get ¶
Get retrieve the closest prefix matching the path and returns the associated targets
type SingleTarget ¶
type SingleTarget string
func (SingleTarget) Equal ¶
func (s SingleTarget) Equal(otherTarget Target) bool
func (SingleTarget) ToSliceString ¶
func (s SingleTarget) ToSliceString() []string
Click to show internal directories.
Click to hide internal directories.