influxdbutil

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func CreateUser(cli client.Client, UserName string, Password string) (*client.Response, error)

CreateUser creates a new user in InfluxDB

func DropAllSubscriptions

func DropAllSubscriptions(cli client.Client, dbName string) (*client.Response, error)

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.

Jump to

Keyboard shortcuts

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