user

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMustSpecifyUser = errors.New("must specify user ID or user name")

Functions

This section is empty.

Types

type Client

type Client struct {
	clients.CLI
	api.UsersApi
	api.OrganizationsApi
}

func (Client) Create

func (c Client) Create(ctx context.Context, params *CreateParams) error

func (Client) Delete

func (c Client) Delete(ctx context.Context, id influxid.ID) error

func (Client) List

func (c Client) List(ctx context.Context, params *ListParams) error

func (Client) SetPassword

func (c Client) SetPassword(ctx context.Context, params *SetPasswordParams) (err error)

func (Client) Update

func (c Client) Update(ctx context.Context, params *UpdateParmas) error

type CreateParams

type CreateParams struct {
	clients.OrgParams
	Name     string
	Password string
}

type ListParams

type ListParams struct {
	Id   influxid.ID
	Name string
}

type SetPasswordParams

type SetPasswordParams struct {
	Id       influxid.ID
	Name     string
	Password string
}

type UpdateParmas

type UpdateParmas struct {
	Id   influxid.ID
	Name string
}

Jump to

Keyboard shortcuts

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