Documentation ¶
Index ¶
- Variables
- func ResourceRole() *schema.Resource
- func ValidatePrivileges(privileges *schema.Set) diag.Diagnostics
- type CHGrant
- type CHRole
- type CHRoleService
- func (rs *CHRoleService) CreateRole(ctx context.Context, name string, database string, privileges []string) (*CHRole, error)
- func (rs *CHRoleService) DeleteRole(ctx context.Context, name string) error
- func (rs *CHRoleService) GetRole(ctx context.Context, roleName string) (*CHRole, error)
- func (rs *CHRoleService) UpdateRole(ctx context.Context, rolePlan RoleResource, resourceData *schema.ResourceData) (*CHRole, error)
- type RoleResource
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedPrivileges = []string{
"SELECT",
"INSERT",
"ALTER",
"CREATE DATABASE",
"CREATE TABLE",
"CREATE VIEW",
"CREATE DICTIONARY",
"DROP DATABASE",
"DROP TABLE",
"SHOW TABLES"}
Functions ¶
func ResourceRole ¶
func ValidatePrivileges ¶
func ValidatePrivileges(privileges *schema.Set) diag.Diagnostics
Types ¶
type CHRole ¶
func (*CHRole) GetPrivilegesList ¶
func (*CHRole) ToRoleResource ¶
func (r *CHRole) ToRoleResource() (*RoleResource, error)
type CHRoleService ¶
func (*CHRoleService) CreateRole ¶
func (*CHRoleService) DeleteRole ¶
func (rs *CHRoleService) DeleteRole(ctx context.Context, name string) error
func (*CHRoleService) UpdateRole ¶
func (rs *CHRoleService) UpdateRole(ctx context.Context, rolePlan RoleResource, resourceData *schema.ResourceData) (*CHRole, error)
Click to show internal directories.
Click to hide internal directories.