proto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MPL-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sdk_database_dbplugin_v5_proto_database_proto protoreflect.FileDescriptor

Functions

func RegisterDatabaseServer

func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer)

Types

type ChangeExpiration

type ChangeExpiration struct {
	NewExpiration *timestamp.Timestamp `protobuf:"bytes,1,opt,name=new_expiration,json=newExpiration,proto3" json:"new_expiration,omitempty"`
	Statements    *Statements          `protobuf:"bytes,2,opt,name=statements,proto3" json:"statements,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeExpiration) Descriptor deprecated

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

Deprecated: Use ChangeExpiration.ProtoReflect.Descriptor instead.

func (*ChangeExpiration) GetNewExpiration

func (x *ChangeExpiration) GetNewExpiration() *timestamp.Timestamp

func (*ChangeExpiration) GetStatements

func (x *ChangeExpiration) GetStatements() *Statements

func (*ChangeExpiration) ProtoMessage

func (*ChangeExpiration) ProtoMessage()

func (*ChangeExpiration) ProtoReflect

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

func (*ChangeExpiration) Reset

func (x *ChangeExpiration) Reset()

func (*ChangeExpiration) String

func (x *ChangeExpiration) String() string

type ChangePassword

type ChangePassword struct {
	NewPassword string      `protobuf:"bytes,1,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	Statements  *Statements `protobuf:"bytes,2,opt,name=statements,proto3" json:"statements,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePassword) Descriptor deprecated

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

Deprecated: Use ChangePassword.ProtoReflect.Descriptor instead.

func (*ChangePassword) GetNewPassword

func (x *ChangePassword) GetNewPassword() string

func (*ChangePassword) GetStatements

func (x *ChangePassword) GetStatements() *Statements

func (*ChangePassword) ProtoMessage

func (*ChangePassword) ProtoMessage()

func (*ChangePassword) ProtoReflect

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

func (*ChangePassword) Reset

func (x *ChangePassword) Reset()

func (*ChangePassword) String

func (x *ChangePassword) String() string

type DatabaseClient

type DatabaseClient interface {
	Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*InitializeResponse, error)
	NewUser(ctx context.Context, in *NewUserRequest, opts ...grpc.CallOption) (*NewUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeResponse, error)
	Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

DatabaseClient is the client API for Database service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDatabaseClient

func NewDatabaseClient(cc grpc.ClientConnInterface) DatabaseClient

type DatabaseServer

DatabaseServer is the server API for Database service.

type DeleteUserRequest

type DeleteUserRequest struct {
	Username   string      `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Statements *Statements `protobuf:"bytes,2,opt,name=statements,proto3" json:"statements,omitempty"`
	// contains filtered or unexported fields
}

/////////////// DeleteUser() ///////////////

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetStatements

func (x *DeleteUserRequest) GetStatements() *Statements

func (*DeleteUserRequest) GetUsername

func (x *DeleteUserRequest) GetUsername() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

type DeleteUserResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteUserResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

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

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type InitializeRequest

type InitializeRequest struct {
	ConfigData       *_struct.Struct `protobuf:"bytes,1,opt,name=config_data,json=configData,proto3" json:"config_data,omitempty"`
	VerifyConnection bool            `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection,proto3" json:"verify_connection,omitempty"`
	// contains filtered or unexported fields
}

/////////////// Initialize() ///////////////

func (*InitializeRequest) Descriptor deprecated

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

Deprecated: Use InitializeRequest.ProtoReflect.Descriptor instead.

func (*InitializeRequest) GetConfigData

func (x *InitializeRequest) GetConfigData() *_struct.Struct

func (*InitializeRequest) GetVerifyConnection

func (x *InitializeRequest) GetVerifyConnection() bool

func (*InitializeRequest) ProtoMessage

func (*InitializeRequest) ProtoMessage()

func (*InitializeRequest) ProtoReflect

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

func (*InitializeRequest) Reset

func (x *InitializeRequest) Reset()

func (*InitializeRequest) String

func (x *InitializeRequest) String() string

type InitializeResponse

type InitializeResponse struct {
	ConfigData *_struct.Struct `protobuf:"bytes,1,opt,name=config_data,json=configData,proto3" json:"config_data,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeResponse) Descriptor deprecated

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

Deprecated: Use InitializeResponse.ProtoReflect.Descriptor instead.

func (*InitializeResponse) GetConfigData

func (x *InitializeResponse) GetConfigData() *_struct.Struct

func (*InitializeResponse) ProtoMessage

func (*InitializeResponse) ProtoMessage()

func (*InitializeResponse) ProtoReflect

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

func (*InitializeResponse) Reset

func (x *InitializeResponse) Reset()

func (*InitializeResponse) String

func (x *InitializeResponse) String() string

type NewUserRequest

type NewUserRequest struct {
	UsernameConfig     *UsernameConfig      `protobuf:"bytes,1,opt,name=username_config,json=usernameConfig,proto3" json:"username_config,omitempty"`
	Password           string               `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Expiration         *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Statements         *Statements          `protobuf:"bytes,4,opt,name=statements,proto3" json:"statements,omitempty"`
	RollbackStatements *Statements          `protobuf:"bytes,5,opt,name=rollback_statements,json=rollbackStatements,proto3" json:"rollback_statements,omitempty"`
	// contains filtered or unexported fields
}

func (*NewUserRequest) Descriptor deprecated

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

Deprecated: Use NewUserRequest.ProtoReflect.Descriptor instead.

func (*NewUserRequest) GetExpiration

func (x *NewUserRequest) GetExpiration() *timestamp.Timestamp

func (*NewUserRequest) GetPassword

func (x *NewUserRequest) GetPassword() string

func (*NewUserRequest) GetRollbackStatements

func (x *NewUserRequest) GetRollbackStatements() *Statements

func (*NewUserRequest) GetStatements

func (x *NewUserRequest) GetStatements() *Statements

func (*NewUserRequest) GetUsernameConfig

func (x *NewUserRequest) GetUsernameConfig() *UsernameConfig

func (*NewUserRequest) ProtoMessage

func (*NewUserRequest) ProtoMessage()

func (*NewUserRequest) ProtoReflect

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

func (*NewUserRequest) Reset

func (x *NewUserRequest) Reset()

func (*NewUserRequest) String

func (x *NewUserRequest) String() string

type NewUserResponse

type NewUserResponse struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*NewUserResponse) Descriptor deprecated

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

Deprecated: Use NewUserResponse.ProtoReflect.Descriptor instead.

func (*NewUserResponse) GetUsername

func (x *NewUserResponse) GetUsername() string

func (*NewUserResponse) ProtoMessage

func (*NewUserResponse) ProtoMessage()

func (*NewUserResponse) ProtoReflect

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

func (*NewUserResponse) Reset

func (x *NewUserResponse) Reset()

func (*NewUserResponse) String

func (x *NewUserResponse) String() string

type Statements

type Statements struct {
	Commands []string `protobuf:"bytes,1,rep,name=Commands,proto3" json:"Commands,omitempty"`
	// contains filtered or unexported fields
}

/////////////// General purpose ///////////////

func (*Statements) Descriptor deprecated

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

Deprecated: Use Statements.ProtoReflect.Descriptor instead.

func (*Statements) GetCommands

func (x *Statements) GetCommands() []string

func (*Statements) ProtoMessage

func (*Statements) ProtoMessage()

func (*Statements) ProtoReflect

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

func (*Statements) Reset

func (x *Statements) Reset()

func (*Statements) String

func (x *Statements) String() string

type TypeResponse

type TypeResponse struct {
	Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
	// contains filtered or unexported fields
}

/////////////// Type() ///////////////

func (*TypeResponse) Descriptor deprecated

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

Deprecated: Use TypeResponse.ProtoReflect.Descriptor instead.

func (*TypeResponse) GetType

func (x *TypeResponse) GetType() string

func (*TypeResponse) ProtoMessage

func (*TypeResponse) ProtoMessage()

func (*TypeResponse) ProtoReflect

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

func (*TypeResponse) Reset

func (x *TypeResponse) Reset()

func (*TypeResponse) String

func (x *TypeResponse) String() string

type UnimplementedDatabaseServer

type UnimplementedDatabaseServer struct {
}

UnimplementedDatabaseServer can be embedded to have forward compatible implementations.

func (*UnimplementedDatabaseServer) Close

func (*UnimplementedDatabaseServer) DeleteUser

func (*UnimplementedDatabaseServer) Initialize

func (*UnimplementedDatabaseServer) NewUser

func (*UnimplementedDatabaseServer) Type

func (*UnimplementedDatabaseServer) UpdateUser

type UpdateUserRequest

type UpdateUserRequest struct {
	Username   string            `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password   *ChangePassword   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Expiration *ChangeExpiration `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

/////////////// UpdateUser() ///////////////

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetExpiration

func (x *UpdateUserRequest) GetExpiration() *ChangeExpiration

func (*UpdateUserRequest) GetPassword

func (x *UpdateUserRequest) GetPassword() *ChangePassword

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

type UpdateUserResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

type UsernameConfig

type UsernameConfig struct {
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	RoleName    string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
	// contains filtered or unexported fields
}

func (*UsernameConfig) Descriptor deprecated

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

Deprecated: Use UsernameConfig.ProtoReflect.Descriptor instead.

func (*UsernameConfig) GetDisplayName

func (x *UsernameConfig) GetDisplayName() string

func (*UsernameConfig) GetRoleName

func (x *UsernameConfig) GetRoleName() string

func (*UsernameConfig) ProtoMessage

func (*UsernameConfig) ProtoMessage()

func (*UsernameConfig) ProtoReflect

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

func (*UsernameConfig) Reset

func (x *UsernameConfig) Reset()

func (*UsernameConfig) String

func (x *UsernameConfig) String() string

Jump to

Keyboard shortcuts

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