updater

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasswordUpdater

type PasswordUpdater struct {
	DefaultUserFile string
	AdminFile       string
	Watcher         *fsnotify.Watcher
	WatchDir        string
	Done            chan<- bool
	Log             logr.Logger
	Rmqc            RabbitClient
}

func (*PasswordUpdater) HandleEvents

func (u *PasswordUpdater) HandleEvents()

type RabbitClient

type RabbitClient interface {
	// RabbitMQ Management API functions
	GetUser(string) (*rabbithole.UserInfo, error)
	PutUser(string, rabbithole.UserSettings) (*http.Response, error)
	Whoami() (*rabbithole.WhoamiInfo, error)
	// Field getters and setters
	GetUsername() string
	SetUsername(string)
	SetPassword(string)
}

Jump to

Keyboard shortcuts

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