cm

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NOT_FOUND = errors.New("Not found")

Functions

This section is empty.

Types

type CmWatcher

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

func NewCmWatcher

func NewCmWatcher(clientset *kubernetes.Clientset) *CmWatcher

func (*CmWatcher) CreateOrUpdate

func (cmw *CmWatcher) CreateOrUpdate(key string, obj interface{}) error

func (*CmWatcher) Delete

func (cmw *CmWatcher) Delete(key string) error

func (*CmWatcher) GetNocalhostConfig

func (cmw *CmWatcher) GetNocalhostConfig(application, svcType, svcName string) (
	*profile.NocalHostAppConfigV2, *profile.ServiceConfigV2, error)

GetNocalhostConfig CAUTION: appCfg may nil!

func (*CmWatcher) Prepare

func (cmw *CmWatcher) Prepare(namespace string) error

func (*CmWatcher) Watch

func (cmw *CmWatcher) Watch()

this method will block until error occur

func (*CmWatcher) WatcherInfo

func (cmw *CmWatcher) WatcherInfo() string

Jump to

Keyboard shortcuts

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