Documentation ¶
Index ¶
- func ConcatenateStringWithDelimeter(delimeter string, names []string) string
- func NewApplication(env string, reloadChannel chan struct{})
- type Application
- func (App *Application) ConfigureApp(workerDir, appKeyPath, sshKeyPath string, sessionExpire int64)
- func (App *Application) ConfigureChefClient(name, url, keyPath string) error
- func (App *Application) ConfigureDatabase(databaseProvider, sessionProvider, databaseName, databaseUser, ... string) error
- func (App *Application) ConfigureLDAP(baseDN, bindAddress, bindPrefix, bindSuffix string)
- func (App *Application) ConfigureLogger(l logging.Logger)
- func (App *Application) CreateChefClientConfig() error
- func (App *Application) GetChefClientConfig() *chef.Client
- type LDAPData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatenateStringWithDelimeter ¶
ConcatenateStringWithDelimeter constructing string like 'names[0],names[1], ... ,names[n]' if delimeter as ","
func NewApplication ¶
func NewApplication(env string, reloadChannel chan struct{})
NewApplication set empty application structure.
Types ¶
type Application ¶
type Application struct { Env string WorkerDirectory string AppKey *rsa.PrivateKey SessionExpire int64 Logger logging.Logger DB *database.DBConnector Client *chef.Client LDAP *LDAPData UsersLastSeen map[string]string SSHKeyPath string ChefKeyPath string ReloadChannel chan struct{} StopRequest chan struct{} // contains filtered or unexported fields }
Application describes application.
var App *Application
App is a global application object.
func (*Application) ConfigureApp ¶
func (App *Application) ConfigureApp(workerDir, appKeyPath, sshKeyPath string, sessionExpire int64)
ConfigureApp configures App.
func (*Application) ConfigureChefClient ¶
func (App *Application) ConfigureChefClient(name, url, keyPath string) error
ConfigureChefClient configures chef client.
func (*Application) ConfigureDatabase ¶
func (App *Application) ConfigureDatabase(databaseProvider, sessionProvider, databaseName, databaseUser, databasePassword, databaseHost, databasePort string) error
ConfigureDatabase configures database.
func (*Application) ConfigureLDAP ¶
func (App *Application) ConfigureLDAP(baseDN, bindAddress, bindPrefix, bindSuffix string)
ConfigureLDAP configures ldap.
func (*Application) ConfigureLogger ¶
func (App *Application) ConfigureLogger(l logging.Logger)
ConfigureLogger configures logger.
func (*Application) CreateChefClientConfig ¶
func (App *Application) CreateChefClientConfig() error
CreateChefClientConfig creates config for chef client.
func (*Application) GetChefClientConfig ¶
func (App *Application) GetChefClientConfig() *chef.Client
GetChefClientConfig return existing chef client config.
Click to show internal directories.
Click to hide internal directories.