hacli

package
v0.0.0-...-42b859f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HAKeeperTimeout = 2 * time.Second

	RefreshInterval = 15 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HAKeeperClientManager

type HAKeeperClientManager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewManager

func NewManager(kubeCli client.Client, logger logr.Logger) *HAKeeperClientManager

func (*HAKeeperClientManager) Close

func (m *HAKeeperClientManager) Close()

func (*HAKeeperClientManager) GetClient

func (m *HAKeeperClientManager) GetClient(ls *v1alpha1.LogSet) (*Handler, error)

type Handler

type Handler struct {
	Client     logservice.ProxyHAKeeperClient
	StoreCache *StoreCache
}

func (*Handler) Close

func (h *Handler) Close() error

type StoreCache

type StoreCache struct {
	// contains filtered or unexported fields
}

func NewCNCache

func NewCNCache(
	client logservice.ProxyHAKeeperClient,
	refreshInterval time.Duration,
	logger logr.Logger) *StoreCache

func (*StoreCache) Close

func (c *StoreCache) Close()

func (*StoreCache) GetCN

func (c *StoreCache) GetCN(uuid string) (metadata.CNService, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL