resourceuser

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceUser

func ResourceUser() *schema.Resource

Types

type CHUser

type CHUser struct {
	Name  string   `ch:"name"`
	Roles []string `ch:"default_roles_list"`
}

func (*CHUser) ToUserResource

func (u *CHUser) ToUserResource() *UserResource

type CHUserService

type CHUserService struct {
	CHConnection *driver.Conn
}

func (*CHUserService) CreateUser

func (us *CHUserService) CreateUser(ctx context.Context, userPlan UserResource) (*CHUser, error)

func (*CHUserService) DeleteUser

func (us *CHUserService) DeleteUser(ctx context.Context, name string) error

func (*CHUserService) GetUser

func (us *CHUserService) GetUser(ctx context.Context, userName string) (*CHUser, error)

func (*CHUserService) UpdateUser

func (us *CHUserService) UpdateUser(ctx context.Context, userPlan UserResource, resourceData *schema.ResourceData) (*CHUser, error)

type UserResource

type UserResource struct {
	Name     string
	Password string
	Roles    *schema.Set
}

Jump to

Keyboard shortcuts

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