cache

package
v0.0.0-...-c7d99ed Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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
	Obj       v1beta2.Emqx

	Status  v1beta2.ConditionType
	Message string

	Config map[string]string
}

Meta contains EMQX Cluster some metadata

type MetaMap

type MetaMap struct {
	sync.Map
}

MetaMap cache last EMQX Cluster and meta data

func (*MetaMap) Add

func (c *MetaMap) Add(obj v1beta2.Emqx)

func (*MetaMap) Cache

func (c *MetaMap) Cache(obj v1beta2.Emqx) *Meta

func (*MetaMap) Del

func (c *MetaMap) Del(obj metav1.Object)

func (*MetaMap) Get

func (c *MetaMap) Get(obj metav1.Object) *Meta

func (*MetaMap) Update

func (c *MetaMap) Update(meta *Meta, new v1beta2.Emqx)

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