Exemple #1
0
func (manager *quobyteVolumeManager) createQuobyteClient() *quobyte_api.QuobyteClient {
	return quobyte_api.NewQuobyteClient(
		manager.config.quobyteAPIServer,
		manager.config.quobyteUser,
		manager.config.quobytePassword,
	)
}
func newQuobyteDriver(apiURL string, username string, password string, quobyteMount string) quobyteDriver {
	driver := quobyteDriver{
		client:       quobyte_api.NewQuobyteClient(apiURL, username, password),
		quobyteMount: quobyteMount,
		m:            &sync.Mutex{},
	}

	return driver
}