Ydb_Scheme

package
v0.0.0-...-8dd88c8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Entry_Type_name = map[int32]string{
		0:  "TYPE_UNSPECIFIED",
		1:  "DIRECTORY",
		2:  "TABLE",
		3:  "PERS_QUEUE_GROUP",
		4:  "DATABASE",
		5:  "RTMR_VOLUME",
		6:  "BLOCK_STORE_VOLUME",
		7:  "COORDINATION_NODE",
		12: "COLUMN_STORE",
		13: "COLUMN_TABLE",
		15: "SEQUENCE",
		16: "REPLICATION",
		17: "TOPIC",
	}
	Entry_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":   0,
		"DIRECTORY":          1,
		"TABLE":              2,
		"PERS_QUEUE_GROUP":   3,
		"DATABASE":           4,
		"RTMR_VOLUME":        5,
		"BLOCK_STORE_VOLUME": 6,
		"COORDINATION_NODE":  7,
		"COLUMN_STORE":       12,
		"COLUMN_TABLE":       13,
		"SEQUENCE":           15,
		"REPLICATION":        16,
		"TOPIC":              17,
	}
)

Enum value maps for Entry_Type.

View Source
var File_protos_ydb_scheme_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DescribePathRequest

type DescribePathRequest struct {
	OperationParams *Ydb_Operations.OperationParams `protobuf:"bytes,1,opt,name=operation_params,json=operationParams,proto3" json:"operation_params,omitempty"`
	Path            string                          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Returns information about object with given path

func (*DescribePathRequest) Descriptor deprecated

func (*DescribePathRequest) Descriptor() ([]byte, []int)

Deprecated: Use DescribePathRequest.ProtoReflect.Descriptor instead.

func (*DescribePathRequest) GetOperationParams

func (x *DescribePathRequest) GetOperationParams() *Ydb_Operations.OperationParams

func (*DescribePathRequest) GetPath

func (x *DescribePathRequest) GetPath() string

func (*DescribePathRequest) ProtoMessage

func (*DescribePathRequest) ProtoMessage()

func (*DescribePathRequest) ProtoReflect

func (x *DescribePathRequest) ProtoReflect() protoreflect.Message

func (*DescribePathRequest) Reset

func (x *DescribePathRequest) Reset()

func (*DescribePathRequest) String

func (x *DescribePathRequest) String() string

type DescribePathResponse

type DescribePathResponse struct {

	// Holds DescribePathResult in case of DescribePathResult
	Operation *Ydb_Operations.Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribePathResponse) Descriptor deprecated

func (*DescribePathResponse) Descriptor() ([]byte, []int)

Deprecated: Use DescribePathResponse.ProtoReflect.Descriptor instead.

func (*DescribePathResponse) GetOperation

func (x *DescribePathResponse) GetOperation() *Ydb_Operations.Operation

func (*DescribePathResponse) ProtoMessage

func (*DescribePathResponse) ProtoMessage()

func (*DescribePathResponse) ProtoReflect

func (x *DescribePathResponse) ProtoReflect() protoreflect.Message

func (*DescribePathResponse) Reset

func (x *DescribePathResponse) Reset()

func (*DescribePathResponse) String

func (x *DescribePathResponse) String() string

type DescribePathResult

type DescribePathResult struct {
	Self *Entry `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribePathResult) Descriptor deprecated

func (*DescribePathResult) Descriptor() ([]byte, []int)

Deprecated: Use DescribePathResult.ProtoReflect.Descriptor instead.

func (*DescribePathResult) GetSelf

func (x *DescribePathResult) GetSelf() *Entry

func (*DescribePathResult) ProtoMessage

func (*DescribePathResult) ProtoMessage()

func (*DescribePathResult) ProtoReflect

func (x *DescribePathResult) ProtoReflect() protoreflect.Message

func (*DescribePathResult) Reset

func (x *DescribePathResult) Reset()

func (*DescribePathResult) String

func (x *DescribePathResult) String() string

type Entry

type Entry struct {

	// Name of scheme entry (dir2 of /dir1/dir2)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// SID (Security ID) of user or group
	Owner                string         `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Type                 Entry_Type     `protobuf:"varint,5,opt,name=type,proto3,enum=Ydb.Scheme.Entry_Type" json:"type,omitempty"`
	EffectivePermissions []*Permissions `protobuf:"bytes,6,rep,name=effective_permissions,json=effectivePermissions,proto3" json:"effective_permissions,omitempty"`
	Permissions          []*Permissions `protobuf:"bytes,7,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// Size of entry in bytes. Currently filled for:
	// - TABLE;
	// - DATABASE.
	// Empty (zero) in other cases.
	SizeBytes uint64 `protobuf:"varint,8,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	// Virtual timestamp when the object was created
	CreatedAt *Ydb.VirtualTimestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetCreatedAt

func (x *Entry) GetCreatedAt() *Ydb.VirtualTimestamp

func (*Entry) GetEffectivePermissions

func (x *Entry) GetEffectivePermissions() []*Permissions

func (*Entry) GetName

func (x *Entry) GetName() string

func (*Entry) GetOwner

func (x *Entry) GetOwner() string

func (*Entry) GetPermissions

func (x *Entry) GetPermissions() []*Permissions

func (*Entry) GetSizeBytes

func (x *Entry) GetSizeBytes() uint64

func (*Entry) GetType

func (x *Entry) GetType() Entry_Type

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type Entry_Type

type Entry_Type int32
const (
	Entry_TYPE_UNSPECIFIED   Entry_Type = 0
	Entry_DIRECTORY          Entry_Type = 1
	Entry_TABLE              Entry_Type = 2
	Entry_PERS_QUEUE_GROUP   Entry_Type = 3
	Entry_DATABASE           Entry_Type = 4
	Entry_RTMR_VOLUME        Entry_Type = 5
	Entry_BLOCK_STORE_VOLUME Entry_Type = 6
	Entry_COORDINATION_NODE  Entry_Type = 7
	Entry_COLUMN_STORE       Entry_Type = 12
	Entry_COLUMN_TABLE       Entry_Type = 13
	Entry_SEQUENCE           Entry_Type = 15
	Entry_REPLICATION        Entry_Type = 16
	Entry_TOPIC              Entry_Type = 17
)

func (Entry_Type) Descriptor

func (Entry_Type) Descriptor() protoreflect.EnumDescriptor

func (Entry_Type) Enum

func (x Entry_Type) Enum() *Entry_Type

func (Entry_Type) EnumDescriptor deprecated

func (Entry_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Entry_Type.Descriptor instead.

func (Entry_Type) Number

func (x Entry_Type) Number() protoreflect.EnumNumber

func (Entry_Type) String

func (x Entry_Type) String() string

func (Entry_Type) Type

type ListDirectoryRequest

type ListDirectoryRequest struct {
	OperationParams *Ydb_Operations.OperationParams `protobuf:"bytes,1,opt,name=operation_params,json=operationParams,proto3" json:"operation_params,omitempty"`
	Path            string                          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

List directory

func (*ListDirectoryRequest) Descriptor deprecated

func (*ListDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDirectoryRequest.ProtoReflect.Descriptor instead.

func (*ListDirectoryRequest) GetOperationParams

func (x *ListDirectoryRequest) GetOperationParams() *Ydb_Operations.OperationParams

func (*ListDirectoryRequest) GetPath

func (x *ListDirectoryRequest) GetPath() string

func (*ListDirectoryRequest) ProtoMessage

func (*ListDirectoryRequest) ProtoMessage()

func (*ListDirectoryRequest) ProtoReflect

func (x *ListDirectoryRequest) ProtoReflect() protoreflect.Message

func (*ListDirectoryRequest) Reset

func (x *ListDirectoryRequest) Reset()

func (*ListDirectoryRequest) String

func (x *ListDirectoryRequest) String() string

type ListDirectoryResponse

type ListDirectoryResponse struct {

	// Holds ListDirectoryResult in case of successful call
	Operation *Ydb_Operations.Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDirectoryResponse) Descriptor deprecated

func (*ListDirectoryResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDirectoryResponse.ProtoReflect.Descriptor instead.

func (*ListDirectoryResponse) GetOperation

func (x *ListDirectoryResponse) GetOperation() *Ydb_Operations.Operation

func (*ListDirectoryResponse) ProtoMessage

func (*ListDirectoryResponse) ProtoMessage()

func (*ListDirectoryResponse) ProtoReflect

func (x *ListDirectoryResponse) ProtoReflect() protoreflect.Message

func (*ListDirectoryResponse) Reset

func (x *ListDirectoryResponse) Reset()

func (*ListDirectoryResponse) String

func (x *ListDirectoryResponse) String() string

type ListDirectoryResult

type ListDirectoryResult struct {
	Self     *Entry   `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"`
	Children []*Entry `protobuf:"bytes,2,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDirectoryResult) Descriptor deprecated

func (*ListDirectoryResult) Descriptor() ([]byte, []int)

Deprecated: Use ListDirectoryResult.ProtoReflect.Descriptor instead.

func (*ListDirectoryResult) GetChildren

func (x *ListDirectoryResult) GetChildren() []*Entry

func (*ListDirectoryResult) GetSelf

func (x *ListDirectoryResult) GetSelf() *Entry

func (*ListDirectoryResult) ProtoMessage

func (*ListDirectoryResult) ProtoMessage()

func (*ListDirectoryResult) ProtoReflect

func (x *ListDirectoryResult) ProtoReflect() protoreflect.Message

func (*ListDirectoryResult) Reset

func (x *ListDirectoryResult) Reset()

func (*ListDirectoryResult) String

func (x *ListDirectoryResult) String() string

type MakeDirectoryRequest

type MakeDirectoryRequest struct {
	OperationParams *Ydb_Operations.OperationParams `protobuf:"bytes,1,opt,name=operation_params,json=operationParams,proto3" json:"operation_params,omitempty"`
	Path            string                          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Create directory. All intermediate directories must be created

func (*MakeDirectoryRequest) Descriptor deprecated

func (*MakeDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use MakeDirectoryRequest.ProtoReflect.Descriptor instead.

func (*MakeDirectoryRequest) GetOperationParams

func (x *MakeDirectoryRequest) GetOperationParams() *Ydb_Operations.OperationParams

func (*MakeDirectoryRequest) GetPath

func (x *MakeDirectoryRequest) GetPath() string

func (*MakeDirectoryRequest) ProtoMessage

func (*MakeDirectoryRequest) ProtoMessage()

func (*MakeDirectoryRequest) ProtoReflect

func (x *MakeDirectoryRequest) ProtoReflect() protoreflect.Message

func (*MakeDirectoryRequest) Reset

func (x *MakeDirectoryRequest) Reset()

func (*MakeDirectoryRequest) String

func (x *MakeDirectoryRequest) String() string

type MakeDirectoryResponse

type MakeDirectoryResponse struct {
	Operation *Ydb_Operations.Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*MakeDirectoryResponse) Descriptor deprecated

func (*MakeDirectoryResponse) Descriptor() ([]byte, []int)

Deprecated: Use MakeDirectoryResponse.ProtoReflect.Descriptor instead.

func (*MakeDirectoryResponse) GetOperation

func (x *MakeDirectoryResponse) GetOperation() *Ydb_Operations.Operation

func (*MakeDirectoryResponse) ProtoMessage

func (*MakeDirectoryResponse) ProtoMessage()

func (*MakeDirectoryResponse) ProtoReflect

func (x *MakeDirectoryResponse) ProtoReflect() protoreflect.Message

func (*MakeDirectoryResponse) Reset

func (x *MakeDirectoryResponse) Reset()

func (*MakeDirectoryResponse) String

func (x *MakeDirectoryResponse) String() string

type ModifyPermissionsRequest

type ModifyPermissionsRequest struct {
	OperationParams *Ydb_Operations.OperationParams `protobuf:"bytes,1,opt,name=operation_params,json=operationParams,proto3" json:"operation_params,omitempty"`
	Path            string                          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Actions         []*PermissionsAction            `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// Clear all permissions on the object for all subjects
	ClearPermissions bool `protobuf:"varint,4,opt,name=clear_permissions,json=clearPermissions,proto3" json:"clear_permissions,omitempty"`
	// Types that are assignable to Inheritance:
	//
	//	*ModifyPermissionsRequest_InterruptInheritance
	Inheritance isModifyPermissionsRequest_Inheritance `protobuf_oneof:"inheritance"`
	// contains filtered or unexported fields
}

Modify permissions of given object

func (*ModifyPermissionsRequest) Descriptor deprecated

func (*ModifyPermissionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ModifyPermissionsRequest.ProtoReflect.Descriptor instead.

func (*ModifyPermissionsRequest) GetActions

func (x *ModifyPermissionsRequest) GetActions() []*PermissionsAction

func (*ModifyPermissionsRequest) GetClearPermissions

func (x *ModifyPermissionsRequest) GetClearPermissions() bool

func (*ModifyPermissionsRequest) GetInheritance

func (m *ModifyPermissionsRequest) GetInheritance() isModifyPermissionsRequest_Inheritance

func (*ModifyPermissionsRequest) GetInterruptInheritance

func (x *ModifyPermissionsRequest) GetInterruptInheritance() bool

func (*ModifyPermissionsRequest) GetOperationParams

func (x *ModifyPermissionsRequest) GetOperationParams() *Ydb_Operations.OperationParams

func (*ModifyPermissionsRequest) GetPath

func (x *ModifyPermissionsRequest) GetPath() string

func (*ModifyPermissionsRequest) ProtoMessage

func (*ModifyPermissionsRequest) ProtoMessage()

func (*ModifyPermissionsRequest) ProtoReflect

func (x *ModifyPermissionsRequest) ProtoReflect() protoreflect.Message

func (*ModifyPermissionsRequest) Reset

func (x *ModifyPermissionsRequest) Reset()

func (*ModifyPermissionsRequest) String

func (x *ModifyPermissionsRequest) String() string

type ModifyPermissionsRequest_InterruptInheritance

type ModifyPermissionsRequest_InterruptInheritance struct {
	InterruptInheritance bool `protobuf:"varint,5,opt,name=interrupt_inheritance,json=interruptInheritance,proto3,oneof"`
}

type ModifyPermissionsResponse

type ModifyPermissionsResponse struct {
	Operation *Ydb_Operations.Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*ModifyPermissionsResponse) Descriptor deprecated

func (*ModifyPermissionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ModifyPermissionsResponse.ProtoReflect.Descriptor instead.

func (*ModifyPermissionsResponse) GetOperation

func (*ModifyPermissionsResponse) ProtoMessage

func (*ModifyPermissionsResponse) ProtoMessage()

func (*ModifyPermissionsResponse) ProtoReflect

func (*ModifyPermissionsResponse) Reset

func (x *ModifyPermissionsResponse) Reset()

func (*ModifyPermissionsResponse) String

func (x *ModifyPermissionsResponse) String() string

type Permissions

type Permissions struct {

	// SID (Security ID) of user or group
	Subject         string   `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	PermissionNames []string `protobuf:"bytes,2,rep,name=permission_names,json=permissionNames,proto3" json:"permission_names,omitempty"`
	// contains filtered or unexported fields
}

func (*Permissions) Descriptor deprecated

func (*Permissions) Descriptor() ([]byte, []int)

Deprecated: Use Permissions.ProtoReflect.Descriptor instead.

func (*Permissions) GetPermissionNames

func (x *Permissions) GetPermissionNames() []string

func (*Permissions) GetSubject

func (x *Permissions) GetSubject() string

func (*Permissions) ProtoMessage

func (*Permissions) ProtoMessage()

func (*Permissions) ProtoReflect

func (x *Permissions) ProtoReflect() protoreflect.Message

func (*Permissions) Reset

func (x *Permissions) Reset()

func (*Permissions) String

func (x *Permissions) String() string

type PermissionsAction

type PermissionsAction struct {

	// Types that are assignable to Action:
	//
	//	*PermissionsAction_Grant
	//	*PermissionsAction_Revoke
	//	*PermissionsAction_Set
	//	*PermissionsAction_ChangeOwner
	Action isPermissionsAction_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

func (*PermissionsAction) Descriptor deprecated

func (*PermissionsAction) Descriptor() ([]byte, []int)

Deprecated: Use PermissionsAction.ProtoReflect.Descriptor instead.

func (*PermissionsAction) GetAction

func (m *PermissionsAction) GetAction() isPermissionsAction_Action

func (*PermissionsAction) GetChangeOwner

func (x *PermissionsAction) GetChangeOwner() string

func (*PermissionsAction) GetGrant

func (x *PermissionsAction) GetGrant() *Permissions

func (*PermissionsAction) GetRevoke

func (x *PermissionsAction) GetRevoke() *Permissions

func (*PermissionsAction) GetSet

func (x *PermissionsAction) GetSet() *Permissions

func (*PermissionsAction) ProtoMessage

func (*PermissionsAction) ProtoMessage()

func (*PermissionsAction) ProtoReflect

func (x *PermissionsAction) ProtoReflect() protoreflect.Message

func (*PermissionsAction) Reset

func (x *PermissionsAction) Reset()

func (*PermissionsAction) String

func (x *PermissionsAction) String() string

type PermissionsAction_ChangeOwner

type PermissionsAction_ChangeOwner struct {
	// New owner for object
	ChangeOwner string `protobuf:"bytes,4,opt,name=change_owner,json=changeOwner,proto3,oneof"`
}

type PermissionsAction_Grant

type PermissionsAction_Grant struct {
	// Grant permissions
	Grant *Permissions `protobuf:"bytes,1,opt,name=grant,proto3,oneof"`
}

type PermissionsAction_Revoke

type PermissionsAction_Revoke struct {
	// Revoke permissions
	Revoke *Permissions `protobuf:"bytes,2,opt,name=revoke,proto3,oneof"`
}

type PermissionsAction_Set

type PermissionsAction_Set struct {
	// Rewrite permissions for given subject (last set win in case of multiple set for one subject)
	Set *Permissions `protobuf:"bytes,3,opt,name=set,proto3,oneof"`
}

type RemoveDirectoryRequest

type RemoveDirectoryRequest struct {
	OperationParams *Ydb_Operations.OperationParams `protobuf:"bytes,1,opt,name=operation_params,json=operationParams,proto3" json:"operation_params,omitempty"`
	Path            string                          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Remove directory

func (*RemoveDirectoryRequest) Descriptor deprecated

func (*RemoveDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveDirectoryRequest.ProtoReflect.Descriptor instead.

func (*RemoveDirectoryRequest) GetOperationParams

func (x *RemoveDirectoryRequest) GetOperationParams() *Ydb_Operations.OperationParams

func (*RemoveDirectoryRequest) GetPath

func (x *RemoveDirectoryRequest) GetPath() string

func (*RemoveDirectoryRequest) ProtoMessage

func (*RemoveDirectoryRequest) ProtoMessage()

func (*RemoveDirectoryRequest) ProtoReflect

func (x *RemoveDirectoryRequest) ProtoReflect() protoreflect.Message

func (*RemoveDirectoryRequest) Reset

func (x *RemoveDirectoryRequest) Reset()

func (*RemoveDirectoryRequest) String

func (x *RemoveDirectoryRequest) String() string

type RemoveDirectoryResponse

type RemoveDirectoryResponse struct {
	Operation *Ydb_Operations.Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveDirectoryResponse) Descriptor deprecated

func (*RemoveDirectoryResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveDirectoryResponse.ProtoReflect.Descriptor instead.

func (*RemoveDirectoryResponse) GetOperation

func (*RemoveDirectoryResponse) ProtoMessage

func (*RemoveDirectoryResponse) ProtoMessage()

func (*RemoveDirectoryResponse) ProtoReflect

func (x *RemoveDirectoryResponse) ProtoReflect() protoreflect.Message

func (*RemoveDirectoryResponse) Reset

func (x *RemoveDirectoryResponse) Reset()

func (*RemoveDirectoryResponse) String

func (x *RemoveDirectoryResponse) String() string

Jump to

Keyboard shortcuts

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