Documentation ¶
Index ¶
- type Kubemgr
- func (k *Kubemgr) FetchConfig(ns string, sid string, cm bool) *spec.GuardianSpec
- func (k *Kubemgr) InitConfigs()
- func (k *Kubemgr) ReadConfigMap(namespace string, sid string) *spec.GuardianSpec
- func (k *Kubemgr) ReadCrd(namespace string, serviceId string) *spec.GuardianSpec
- func (k *Kubemgr) SetCm(ns string, sid string, guardianSpec *spec.GuardianSpec) string
- func (k *Kubemgr) SetCrd(ns string, sid string, guardianSpec *spec.GuardianSpec) string
- func (k *Kubemgr) WatchOnce(ns string, set func(ns string, sid string, g *spec.GuardianSpec))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubemgr ¶
type Kubemgr struct {
// contains filtered or unexported fields
}
func (*Kubemgr) FetchConfig ¶
func (*Kubemgr) InitConfigs ¶
func (k *Kubemgr) InitConfigs()
func (*Kubemgr) ReadConfigMap ¶
func (k *Kubemgr) ReadConfigMap(namespace string, sid string) *spec.GuardianSpec
func (*Kubemgr) ReadCrd ¶
func (k *Kubemgr) ReadCrd(namespace string, serviceId string) *spec.GuardianSpec
func (*Kubemgr) SetCm ¶
Set a Guardian Config Map (Update if exists, create if not) Not using Kube's apply tp avoid kube's server side merge, ...so we need to do this ugly thingy... This ugly thingy has a race condition! Sometimes it will fail and we will just return false
Click to show internal directories.
Click to hide internal directories.