Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecretInterface ¶
func CreateSecretInterface(namespace string) (watcher.WatchObject, error)
CreateSecretInterface - Creates a v1.SecretInterface in order to build a k8s object monitor for Secrets
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database - Stores data of multiple Secret objects. Synchronizes with Secret objects through watcher.WatchEventHandler interface.
func NewDatabase ¶
func (*Database) End ¶
End - Removes secret with namespace and name from database, and signals change. Note: monitoring of particular secret was ordered to stop, because it is no longer of interest. Thus there's no point keeping related information.
type DatabaseInterface ¶
type DatabaseInterface interface { watcher.WatchEventHandler Load(namespace, name, key string) ([]byte, error) }
Click to show internal directories.
Click to hide internal directories.