clustercache

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	NameSpace string
	Name      string
	State     StateType
	Size      int32
	Auth      *util.AuthConfig
	Obj       *redisv1beta1.RedisCluster

	Status  redisv1beta1.ConditionType
	Message string

	Config map[string]string
}

Meta contains RedisCluster some metadata

type MetaMap

type MetaMap struct {
	sync.Map
}

MetaMap cache last RedisCluster and meta data

func (*MetaMap) Add

func (c *MetaMap) Add(obj *redisv1beta1.RedisCluster)

func (*MetaMap) Cache

func (c *MetaMap) Cache(obj *redisv1beta1.RedisCluster) *Meta

func (*MetaMap) Del

func (c *MetaMap) Del(obj *redisv1beta1.RedisCluster)

func (*MetaMap) Get

func (c *MetaMap) Get(obj *redisv1beta1.RedisCluster) *Meta

func (*MetaMap) Update

func (c *MetaMap) Update(meta *Meta, new *redisv1beta1.RedisCluster)

type StateType

type StateType string
const (
	Create StateType = "create"
	Update StateType = "update"
	Check  StateType = "check"
)

Jump to

Keyboard shortcuts

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