factory

package
v0.0.0-...-08e4fbc Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEngine

func GetEngine(ctx context.Context, config types.Config, nodename, endpoint, ca, cert, key string) (client engine.API, err error)

GetEngine get engine with cache

func GetEngineFromCache

func GetEngineFromCache(_ context.Context, endpoint, ca, cert, key string) engine.API

GetEngineFromCache .

func InitEngineCache

func InitEngineCache(ctx context.Context, config types.Config, stor store.Store)

InitEngineCache init engine cache and start engine cache checker

func RemoveEngineFromCache

func RemoveEngineFromCache(ctx context.Context, endpoint, ca, cert, key string)

RemoveEngineFromCache .

Types

type EngineCache

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

EngineCache .

func NewEngineCache

func NewEngineCache(config types.Config, stor store.Store) *EngineCache

NewEngineCache .

func (*EngineCache) CheckAlive

func (e *EngineCache) CheckAlive(ctx context.Context)

CheckAlive checks if the engine in cache is available

func (*EngineCache) CheckNodeStatus

func (e *EngineCache) CheckNodeStatus(ctx context.Context)

func (*EngineCache) Delete

func (e *EngineCache) Delete(key string)

Delete .

func (*EngineCache) Get

func (e *EngineCache) Get(key string) engine.API

Get .

func (*EngineCache) Set

func (e *EngineCache) Set(params engineParams, client engine.API)

Set .

Jump to

Keyboard shortcuts

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