Documentation ¶
Index ¶
- func CreateAdminUser(cli client.Client, UserName string, Password string, dbName string) (*client.Response, error)
- func CreateDatabase(cli client.Client, dbName string, retentionPolicy string) (*client.Response, error)
- func CreateHTTPClient(host string, port string, userName string, passwd string, devMode bool) (client.Client, error)
- func CreateSubscription(cli client.Client, subName string, dbName string, httpHost string, ...) (*client.Response, error)
- func CreateUser(cli client.Client, UserName string, Password string) (*client.Response, error)
- func DropAllSubscriptions(cli client.Client, dbName string) (*client.Response, error)
- func GrantAllPermissions(cli client.Client, dbName string, UserName string) (*client.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAdminUser ¶
func CreateAdminUser(cli client.Client, UserName string, Password string, dbName string) (*client.Response, error)
CreateAdminUser creates a new user in InfluxDB
func CreateDatabase ¶
func CreateDatabase(cli client.Client, dbName string, retentionPolicy string) (*client.Response, error)
CreateDatabase creates the InfluxDB database
func CreateHTTPClient ¶
func CreateHTTPClient(host string, port string, userName string, passwd string, devMode bool) (client.Client, error)
CreateHTTPClient returns a http client connected to Influx DB
func CreateSubscription ¶
func CreateSubscription(cli client.Client, subName string, dbName string, httpHost string, httpPort string, devMode bool) (*client.Response, error)
CreateSubscription creates the subscription in InfluxDB
func CreateUser ¶
CreateUser creates a new user in InfluxDB
func DropAllSubscriptions ¶
DropAllSubscriptions drops all the subscriptions in InfluxDB
func GrantAllPermissions ¶
func GrantAllPermissions(cli client.Client, dbName string, UserName string) (*client.Response, error)
GrantAllPermissions grants all permissions on a to a user in InfluxDB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.