package scheme
import "github.com/ydb-platform/ydb-go-sdk/v3/scheme"
Index ¶
- type Client
- type Directory
- type Entry
- func InnerConvertEntry(y *Ydb_Scheme.Entry) *Entry
- func (e *Entry) From(y *Ydb_Scheme.Entry)
- func (e *Entry) IsBlockStoreVolume() bool
- func (e *Entry) IsCoordinationNode() bool
- func (e *Entry) IsDatabase() bool
- func (e *Entry) IsDirectory() bool
- func (e *Entry) IsPersQueueGroup() bool
- func (e *Entry) IsRtmrVolume() bool
- func (e *Entry) IsTable() bool
- type EntryType
- type Permissions
- type PermissionsOption
- func WithChangeOwner(owner string) PermissionsOption
- func WithClearPermissions() PermissionsOption
- func WithGrantPermissions(p Permissions) PermissionsOption
- func WithRevokePermissions(p Permissions) PermissionsOption
- func WithSetPermissions(p Permissions) PermissionsOption
- type Scheme
Types ¶
type Client ¶
type Client interface { Scheme CleanupDatabase(ctx context.Context, prefix string, names ...string) error EnsurePathExists(ctx context.Context, path string) error }
type Directory ¶
type Entry ¶
type Entry struct { Name string Owner string Type EntryType Permissions []Permissions EffectivePermissions []Permissions }
func InnerConvertEntry ¶
func InnerConvertEntry(y *Ydb_Scheme.Entry) *Entry
func (*Entry) From ¶
func (e *Entry) From(y *Ydb_Scheme.Entry)
func (*Entry) IsBlockStoreVolume ¶
func (*Entry) IsCoordinationNode ¶
func (*Entry) IsDatabase ¶
func (*Entry) IsDirectory ¶
func (*Entry) IsPersQueueGroup ¶
func (*Entry) IsRtmrVolume ¶
func (*Entry) IsTable ¶
type EntryType ¶
type EntryType uint
const ( EntryTypeUnknown EntryType = iota EntryDirectory EntryTable EntryPersQueueGroup EntryDatabase EntryRtmrVolume EntryBlockStoreVolume EntryCoordinationNode )
func (EntryType) String ¶
type Permissions ¶
func (Permissions) To ¶
func (p Permissions) To(y *Ydb_Scheme.Permissions)
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
type Scheme ¶
type Scheme interface { DescribePath(ctx context.Context, path string) (e Entry, err error) MakeDirectory(ctx context.Context, path string) (err error) ListDirectory(ctx context.Context, path string) (d Directory, err error) RemoveDirectory(ctx context.Context, path string) (err error) ModifyPermissions(ctx context.Context, path string, opts ...PermissionsOption) (err error) Close(ctx context.Context) error }
Source Files ¶
- Version
- v3.2.2
- Published
- Oct 29, 2021
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 1 minute ago –
Tools for package owners.