scheme

package
v2.10.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Driver ydb.Driver
}

func (*Client) DescribePath

func (c *Client) DescribePath(ctx context.Context, path string) (e Entry, err error)

func (*Client) ListDirectory

func (c *Client) ListDirectory(ctx context.Context, path string) (d Directory, err error)

func (*Client) MakeDirectory

func (c *Client) MakeDirectory(ctx context.Context, path string) (err error)

func (*Client) ModifyPermissions

func (c *Client) ModifyPermissions(ctx context.Context, path string, opts ...PermissionsOption) (err error)

func (*Client) RemoveDirectory

func (c *Client) RemoveDirectory(ctx context.Context, path string) (err error)

type Directory

type Directory struct {
	Entry
	Children []Entry
}

type Entry

type Entry struct {
	Name                 string
	Owner                string
	Type                 EntryType
	Permissions          []Permissions
	EffectivePermissions []Permissions
}

func InnerConvertEntry

func InnerConvertEntry(y *Ydb_Scheme.Entry) *Entry

type EntryType

type EntryType uint
const (
	EntryTypeUnknown EntryType = iota
	EntryDirectory
	EntryTable
	EntryPersQueueGroup
	EntryDatabase
	EntryRtmrVolume
	EntryBlockStoreVolume
	EntryCoordinationNode
)

func (EntryType) String

func (t EntryType) String() string

type Permissions

type Permissions struct {
	Subject         string
	PermissionNames []string
}

type PermissionsOption

type PermissionsOption func(*permissionsDesc)

func WithChangeOwner

func WithChangeOwner(owner string) PermissionsOption

func WithClearPermissions

func WithClearPermissions() PermissionsOption

func WithGrantPermissions

func WithGrantPermissions(p Permissions) PermissionsOption

func WithRevokePermissions

func WithRevokePermissions(p Permissions) PermissionsOption

func WithSetPermissions

func WithSetPermissions(p Permissions) PermissionsOption

Jump to

Keyboard shortcuts

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