// Code generated by protoc-gen-go. DO NOT EDIT. // source: builtin/logical/database/dbplugin/database.proto /* Package dbplugin is a generated protocol buffer package. It is generated from these files: builtin/logical/database/dbplugin/database.proto It has these top-level messages: InitializeRequest CreateUserRequest RenewUserRequest RevokeUserRequest Statements UsernameConfig CreateUserResponse TypeResponse Empty */ package dbplugin import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type InitializeRequest struct { Config []byte `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` VerifyConnection bool `protobuf:"varint,2,opt,name=verify_connection,json=verifyConnection" json:"verify_connection,omitempty"` } func (m *InitializeRequest) Reset() { *m = InitializeRequest{} } func (m *InitializeRequest) String() string { return proto.CompactTextString(m) } func (*InitializeRequest) ProtoMessage() {} func (*InitializeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *InitializeRequest) GetConfig() []byte { if m != nil { return m.Config } return nil } func (m *InitializeRequest) GetVerifyConnection() bool { if m != nil { return m.VerifyConnection } return false } type CreateUserRequest struct { Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"` UsernameConfig *UsernameConfig `protobuf:"bytes,2,opt,name=username_config,json=usernameConfig" json:"username_config,omitempty"` Expiration *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expiration" json:"expiration,omitempty"` } func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} } func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) } func (*CreateUserRequest) ProtoMessage() {} func (*CreateUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *CreateUserRequest) GetStatements() *Statements { if m != nil { return m.Statements } return nil } func (m *CreateUserRequest) GetUsernameConfig() *UsernameConfig { if m != nil { return m.UsernameConfig } return nil } func (m *CreateUserRequest) GetExpiration() *google_protobuf.Timestamp { if m != nil { return m.Expiration } return nil } type RenewUserRequest struct { Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Expiration *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expiration" json:"expiration,omitempty"` } func (m *RenewUserRequest) Reset() { *m = RenewUserRequest{} } func (m *RenewUserRequest) String() string { return proto.CompactTextString(m) } func (*RenewUserRequest) ProtoMessage() {} func (*RenewUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } func (m *RenewUserRequest) GetStatements() *Statements { if m != nil { return m.Statements } return nil } func (m *RenewUserRequest) GetUsername() string { if m != nil { return m.Username } return "" } func (m *RenewUserRequest) GetExpiration() *google_protobuf.Timestamp { if m != nil { return m.Expiration } return nil } type RevokeUserRequest struct { Statements *Statements `protobuf:"bytes,1,opt,name=statements" json:"statements,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` } func (m *RevokeUserRequest) Reset() { *m = RevokeUserRequest{} } func (m *RevokeUserRequest) String() string { return proto.CompactTextString(m) } func (*RevokeUserRequest) ProtoMessage() {} func (*RevokeUserRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } func (m *RevokeUserRequest) GetStatements() *Statements { if m != nil { return m.Statements } return nil } func (m *RevokeUserRequest) GetUsername() string { if m != nil { return m.Username } return "" } type Statements struct { CreationStatements string `protobuf:"bytes,1,opt,name=creation_statements,json=creationStatements" json:"creation_statements,omitempty"` RevocationStatements string `protobuf:"bytes,2,opt,name=revocation_statements,json=revocationStatements" json:"revocation_statements,omitempty"` RollbackStatements string `protobuf:"bytes,3,opt,name=rollback_statements,json=rollbackStatements" json:"rollback_statements,omitempty"` RenewStatements string `protobuf:"bytes,4,opt,name=renew_statements,json=renewStatements" json:"renew_statements,omitempty"` } func (m *Statements) Reset() { *m = Statements{} } func (m *Statements) String() string { return proto.CompactTextString(m) } func (*Statements) ProtoMessage() {} func (*Statements) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *Statements) GetCreationStatements() string { if m != nil { return m.CreationStatements } return "" } func (m *Statements) GetRevocationStatements() string { if m != nil { return m.RevocationStatements } return "" } func (m *Statements) GetRollbackStatements() string { if m != nil { return m.RollbackStatements } return "" } func (m *Statements) GetRenewStatements() string { if m != nil { return m.RenewStatements } return "" } type UsernameConfig struct { DisplayName string `protobuf:"bytes,1,opt,name=DisplayName" json:"DisplayName,omitempty"` RoleName string `protobuf:"bytes,2,opt,name=RoleName" json:"RoleName,omitempty"` } func (m *UsernameConfig) Reset() { *m = UsernameConfig{} } func (m *UsernameConfig) String() string { return proto.CompactTextString(m) } func (*UsernameConfig) ProtoMessage() {} func (*UsernameConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func (m *UsernameConfig) GetDisplayName() string { if m != nil { return m.DisplayName } return "" } func (m *UsernameConfig) GetRoleName() string { if m != nil { return m.RoleName } return "" } type CreateUserResponse struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` } func (m *CreateUserResponse) Reset() { *m = CreateUserResponse{} } func (m *CreateUserResponse) String() string { return proto.CompactTextString(m) } func (*CreateUserResponse) ProtoMessage() {} func (*CreateUserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *CreateUserResponse) GetUsername() string { if m != nil { return m.Username } return "" } func (m *CreateUserResponse) GetPassword() string { if m != nil { return m.Password } return "" } type TypeResponse struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` } func (m *TypeResponse) Reset() { *m = TypeResponse{} } func (m *TypeResponse) String() string { return proto.CompactTextString(m) } func (*TypeResponse) ProtoMessage() {} func (*TypeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *TypeResponse) GetType() string { if m != nil { return m.Type } return "" } type Empty struct { } func (m *Empty) Reset() { *m = Empty{} } func (m *Empty) String() string { return proto.CompactTextString(m) } func (*Empty) ProtoMessage() {} func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } func init() { proto.RegisterType((*InitializeRequest)(nil), "dbplugin.InitializeRequest") proto.RegisterType((*CreateUserRequest)(nil), "dbplugin.CreateUserRequest") proto.RegisterType((*RenewUserRequest)(nil), "dbplugin.RenewUserRequest") proto.RegisterType((*RevokeUserRequest)(nil), "dbplugin.RevokeUserRequest") proto.RegisterType((*Statements)(nil), "dbplugin.Statements") proto.RegisterType((*UsernameConfig)(nil), "dbplugin.UsernameConfig") proto.RegisterType((*CreateUserResponse)(nil), "dbplugin.CreateUserResponse") proto.RegisterType((*TypeResponse)(nil), "dbplugin.TypeResponse") proto.RegisterType((*Empty)(nil), "dbplugin.Empty") } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // Client API for Database service type DatabaseClient interface { Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeResponse, error) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) RenewUser(ctx context.Context, in *RenewUserRequest, opts ...grpc.CallOption) (*Empty, error) RevokeUser(ctx context.Context, in *RevokeUserRequest, opts ...grpc.CallOption) (*Empty, error) Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*Empty, error) Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) } type databaseClient struct { cc *grpc.ClientConn } func NewDatabaseClient(cc *grpc.ClientConn) DatabaseClient { return &databaseClient{cc} } func (c *databaseClient) Type(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TypeResponse, error) { out := new(TypeResponse) err := grpc.Invoke(ctx, "/dbplugin.Database/Type", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *databaseClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) { out := new(CreateUserResponse) err := grpc.Invoke(ctx, "/dbplugin.Database/CreateUser", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *databaseClient) RenewUser(ctx context.Context, in *RenewUserRequest, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := grpc.Invoke(ctx, "/dbplugin.Database/RenewUser", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *databaseClient) RevokeUser(ctx context.Context, in *RevokeUserRequest, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := grpc.Invoke(ctx, "/dbplugin.Database/RevokeUser", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *databaseClient) Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := grpc.Invoke(ctx, "/dbplugin.Database/Initialize", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } func (c *databaseClient) Close(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := grpc.Invoke(ctx, "/dbplugin.Database/Close", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } // Server API for Database service type DatabaseServer interface { Type(context.Context, *Empty) (*TypeResponse, error) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) RenewUser(context.Context, *RenewUserRequest) (*Empty, error) RevokeUser(context.Context, *RevokeUserRequest) (*Empty, error) Initialize(context.Context, *InitializeRequest) (*Empty, error) Close(context.Context, *Empty) (*Empty, error) } func RegisterDatabaseServer(s *grpc.Server, srv DatabaseServer) { s.RegisterService(&_Database_serviceDesc, srv) } func _Database_Type_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DatabaseServer).Type(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/dbplugin.Database/Type", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Type(ctx, req.(*Empty)) } return interceptor(ctx, in, info, handler) } func _Database_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DatabaseServer).CreateUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/dbplugin.Database/CreateUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).CreateUser(ctx, req.(*CreateUserRequest)) } return interceptor(ctx, in, info, handler) } func _Database_RenewUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RenewUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DatabaseServer).RenewUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/dbplugin.Database/RenewUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).RenewUser(ctx, req.(*RenewUserRequest)) } return interceptor(ctx, in, info, handler) } func _Database_RevokeUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RevokeUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DatabaseServer).RevokeUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/dbplugin.Database/RevokeUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).RevokeUser(ctx, req.(*RevokeUserRequest)) } return interceptor(ctx, in, info, handler) } func _Database_Initialize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(InitializeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DatabaseServer).Initialize(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/dbplugin.Database/Initialize", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Initialize(ctx, req.(*InitializeRequest)) } return interceptor(ctx, in, info, handler) } func _Database_Close_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DatabaseServer).Close(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/dbplugin.Database/Close", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DatabaseServer).Close(ctx, req.(*Empty)) } return interceptor(ctx, in, info, handler) } var _Database_serviceDesc = grpc.ServiceDesc{ ServiceName: "dbplugin.Database", HandlerType: (*DatabaseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Type", Handler: _Database_Type_Handler, }, { MethodName: "CreateUser", Handler: _Database_CreateUser_Handler, }, { MethodName: "RenewUser", Handler: _Database_RenewUser_Handler, }, { MethodName: "RevokeUser", Handler: _Database_RevokeUser_Handler, }, { MethodName: "Initialize", Handler: _Database_Initialize_Handler, }, { MethodName: "Close", Handler: _Database_Close_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "builtin/logical/database/dbplugin/database.proto", } func init() { proto.RegisterFile("builtin/logical/database/dbplugin/database.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ // 548 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0xcf, 0x6e, 0xd3, 0x4e, 0x10, 0x96, 0xdb, 0xb4, 0xbf, 0x64, 0x5a, 0x35, 0xc9, 0xfe, 0x4a, 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