zitadel/pkg/admin/api/grpc/admin.pb.go

1869 lines
69 KiB
Go
Raw Normal View History

2020-03-23 15:56:02 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: admin.proto
package grpc
import (
context "context"
fmt "fmt"
2020-03-23 15:56:02 +00:00
_ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
2020-03-23 15:56:02 +00:00
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
2020-03-23 15:56:02 +00:00
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
2020-03-23 15:56:02 +00:00
type OrgState int32
const (
OrgState_ORGSTATE_UNSPECIFIED OrgState = 0
OrgState_ORGSTATE_ACTIVE OrgState = 1
OrgState_ORGSTATE_INACTIVE OrgState = 2
)
var OrgState_name = map[int32]string{
0: "ORGSTATE_UNSPECIFIED",
1: "ORGSTATE_ACTIVE",
2: "ORGSTATE_INACTIVE",
}
var OrgState_value = map[string]int32{
"ORGSTATE_UNSPECIFIED": 0,
"ORGSTATE_ACTIVE": 1,
"ORGSTATE_INACTIVE": 2,
}
func (x OrgState) String() string {
return proto.EnumName(OrgState_name, int32(x))
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
2020-03-23 15:56:02 +00:00
func (OrgState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{0}
2020-03-23 15:56:02 +00:00
}
type OrgSearchKey int32
const (
OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED OrgSearchKey = 0
OrgSearchKey_ORGSEARCHKEY_ORG_NAME OrgSearchKey = 1
OrgSearchKey_ORGSEARCHKEY_DOMAIN OrgSearchKey = 2
OrgSearchKey_ORGSEARCHKEY_STATE OrgSearchKey = 3
)
var OrgSearchKey_name = map[int32]string{
0: "ORGSEARCHKEY_UNSPECIFIED",
1: "ORGSEARCHKEY_ORG_NAME",
2: "ORGSEARCHKEY_DOMAIN",
3: "ORGSEARCHKEY_STATE",
}
var OrgSearchKey_value = map[string]int32{
"ORGSEARCHKEY_UNSPECIFIED": 0,
"ORGSEARCHKEY_ORG_NAME": 1,
"ORGSEARCHKEY_DOMAIN": 2,
"ORGSEARCHKEY_STATE": 3,
}
func (x OrgSearchKey) String() string {
return proto.EnumName(OrgSearchKey_name, int32(x))
}
2020-03-23 15:56:02 +00:00
func (OrgSearchKey) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{1}
2020-03-23 15:56:02 +00:00
}
type OrgSearchMethod int32
const (
OrgSearchMethod_ORGSEARCHMETHOD_EQUALS OrgSearchMethod = 0
OrgSearchMethod_ORGSEARCHMETHOD_STARTS_WITH OrgSearchMethod = 1
OrgSearchMethod_ORGSEARCHMETHOD_CONTAINS OrgSearchMethod = 2
)
var OrgSearchMethod_name = map[int32]string{
0: "ORGSEARCHMETHOD_EQUALS",
1: "ORGSEARCHMETHOD_STARTS_WITH",
2: "ORGSEARCHMETHOD_CONTAINS",
}
var OrgSearchMethod_value = map[string]int32{
"ORGSEARCHMETHOD_EQUALS": 0,
"ORGSEARCHMETHOD_STARTS_WITH": 1,
"ORGSEARCHMETHOD_CONTAINS": 2,
}
func (x OrgSearchMethod) String() string {
return proto.EnumName(OrgSearchMethod_name, int32(x))
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
2020-03-23 15:56:02 +00:00
func (OrgSearchMethod) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{2}
2020-03-23 15:56:02 +00:00
}
type UserState int32
const (
UserState_USERSTATE_UNSPECIFIED UserState = 0
UserState_USERSTATE_ACTIVE UserState = 1
UserState_USERSTATE_INACTIVE UserState = 2
UserState_USERSTATE_DELETED UserState = 3
UserState_USERSTATE_LOCKED UserState = 4
UserState_USERSTATE_SUSPEND UserState = 5
UserState_USERSTATE_INITIAL UserState = 6
)
var UserState_name = map[int32]string{
0: "USERSTATE_UNSPECIFIED",
1: "USERSTATE_ACTIVE",
2: "USERSTATE_INACTIVE",
3: "USERSTATE_DELETED",
4: "USERSTATE_LOCKED",
5: "USERSTATE_SUSPEND",
6: "USERSTATE_INITIAL",
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
var UserState_value = map[string]int32{
"USERSTATE_UNSPECIFIED": 0,
"USERSTATE_ACTIVE": 1,
"USERSTATE_INACTIVE": 2,
"USERSTATE_DELETED": 3,
"USERSTATE_LOCKED": 4,
"USERSTATE_SUSPEND": 5,
"USERSTATE_INITIAL": 6,
}
func (x UserState) String() string {
return proto.EnumName(UserState_name, int32(x))
}
2020-03-23 15:56:02 +00:00
func (UserState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{3}
2020-03-23 15:56:02 +00:00
}
type Gender int32
const (
Gender_GENDER_UNSPECIFIED Gender = 0
Gender_GENDER_FEMALE Gender = 1
Gender_GENDER_MALE Gender = 2
Gender_GENDER_DIVERSE Gender = 3
)
var Gender_name = map[int32]string{
0: "GENDER_UNSPECIFIED",
1: "GENDER_FEMALE",
2: "GENDER_MALE",
3: "GENDER_DIVERSE",
}
2020-03-23 15:56:02 +00:00
var Gender_value = map[string]int32{
"GENDER_UNSPECIFIED": 0,
"GENDER_FEMALE": 1,
"GENDER_MALE": 2,
"GENDER_DIVERSE": 3,
2020-03-23 15:56:02 +00:00
}
func (x Gender) String() string {
return proto.EnumName(Gender_name, int32(x))
2020-03-23 15:56:02 +00:00
}
func (Gender) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{4}
2020-03-23 15:56:02 +00:00
}
type OrgID struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2020-03-23 15:56:02 +00:00
}
func (m *OrgID) Reset() { *m = OrgID{} }
func (m *OrgID) String() string { return proto.CompactTextString(m) }
func (*OrgID) ProtoMessage() {}
func (*OrgID) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{0}
2020-03-23 15:56:02 +00:00
}
func (m *OrgID) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgID.Unmarshal(m, b)
2020-03-23 15:56:02 +00:00
}
func (m *OrgID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgID.Marshal(b, m, deterministic)
2020-03-23 15:56:02 +00:00
}
func (m *OrgID) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgID.Merge(m, src)
2020-03-23 15:56:02 +00:00
}
func (m *OrgID) XXX_Size() int {
return xxx_messageInfo_OrgID.Size(m)
2020-03-23 15:56:02 +00:00
}
func (m *OrgID) XXX_DiscardUnknown() {
xxx_messageInfo_OrgID.DiscardUnknown(m)
2020-03-23 15:56:02 +00:00
}
var xxx_messageInfo_OrgID proto.InternalMessageInfo
2020-03-23 15:56:02 +00:00
func (m *OrgID) GetId() string {
if m != nil {
return m.Id
2020-03-23 15:56:02 +00:00
}
return ""
}
type UniqueOrgRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2020-03-23 15:56:02 +00:00
}
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
func (m *UniqueOrgRequest) Reset() { *m = UniqueOrgRequest{} }
func (m *UniqueOrgRequest) String() string { return proto.CompactTextString(m) }
func (*UniqueOrgRequest) ProtoMessage() {}
func (*UniqueOrgRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{1}
}
func (m *UniqueOrgRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UniqueOrgRequest.Unmarshal(m, b)
}
func (m *UniqueOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UniqueOrgRequest.Marshal(b, m, deterministic)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *UniqueOrgRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UniqueOrgRequest.Merge(m, src)
}
func (m *UniqueOrgRequest) XXX_Size() int {
return xxx_messageInfo_UniqueOrgRequest.Size(m)
}
func (m *UniqueOrgRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UniqueOrgRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UniqueOrgRequest proto.InternalMessageInfo
func (m *UniqueOrgRequest) GetName() string {
if m != nil {
return m.Name
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *UniqueOrgRequest) GetDomain() string {
if m != nil {
return m.Domain
2020-03-23 15:56:02 +00:00
}
return ""
}
type UniqueOrgResponse struct {
IsUnique bool `protobuf:"varint,1,opt,name=is_unique,json=isUnique,proto3" json:"is_unique,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2020-03-23 15:56:02 +00:00
}
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
func (m *UniqueOrgResponse) Reset() { *m = UniqueOrgResponse{} }
func (m *UniqueOrgResponse) String() string { return proto.CompactTextString(m) }
func (*UniqueOrgResponse) ProtoMessage() {}
func (*UniqueOrgResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{2}
}
func (m *UniqueOrgResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UniqueOrgResponse.Unmarshal(m, b)
}
func (m *UniqueOrgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UniqueOrgResponse.Marshal(b, m, deterministic)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *UniqueOrgResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_UniqueOrgResponse.Merge(m, src)
}
func (m *UniqueOrgResponse) XXX_Size() int {
return xxx_messageInfo_UniqueOrgResponse.Size(m)
}
func (m *UniqueOrgResponse) XXX_DiscardUnknown() {
xxx_messageInfo_UniqueOrgResponse.DiscardUnknown(m)
}
var xxx_messageInfo_UniqueOrgResponse proto.InternalMessageInfo
func (m *UniqueOrgResponse) GetIsUnique() bool {
if m != nil {
return m.IsUnique
2020-03-23 15:56:02 +00:00
}
return false
}
type Org struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.OrgState" json:"state,omitempty"`
CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Org) Reset() { *m = Org{} }
func (m *Org) String() string { return proto.CompactTextString(m) }
func (*Org) ProtoMessage() {}
func (*Org) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{3}
2020-03-23 15:56:02 +00:00
}
func (m *Org) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Org.Unmarshal(m, b)
2020-03-23 15:56:02 +00:00
}
func (m *Org) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Org.Marshal(b, m, deterministic)
}
func (m *Org) XXX_Merge(src proto.Message) {
xxx_messageInfo_Org.Merge(m, src)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *Org) XXX_Size() int {
return xxx_messageInfo_Org.Size(m)
}
func (m *Org) XXX_DiscardUnknown() {
xxx_messageInfo_Org.DiscardUnknown(m)
}
var xxx_messageInfo_Org proto.InternalMessageInfo
func (m *Org) GetId() string {
if m != nil {
return m.Id
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *Org) GetState() OrgState {
if m != nil {
return m.State
2020-03-23 15:56:02 +00:00
}
return OrgState_ORGSTATE_UNSPECIFIED
}
func (m *Org) GetCreationDate() *timestamp.Timestamp {
if m != nil {
return m.CreationDate
2020-03-23 15:56:02 +00:00
}
return nil
}
func (m *Org) GetChangeDate() *timestamp.Timestamp {
if m != nil {
return m.ChangeDate
2020-03-23 15:56:02 +00:00
}
return nil
}
func (m *Org) GetName() string {
if m != nil {
return m.Name
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *Org) GetDomain() string {
if m != nil {
return m.Domain
2020-03-23 15:56:02 +00:00
}
return ""
}
type OrgSearchRequest struct {
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
SortingColumn OrgSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"sorting_column,omitempty"`
Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"`
Queries []*OrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrgSearchRequest) Reset() { *m = OrgSearchRequest{} }
func (m *OrgSearchRequest) String() string { return proto.CompactTextString(m) }
func (*OrgSearchRequest) ProtoMessage() {}
func (*OrgSearchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{4}
2020-03-23 15:56:02 +00:00
}
func (m *OrgSearchRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgSearchRequest.Unmarshal(m, b)
2020-03-23 15:56:02 +00:00
}
func (m *OrgSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgSearchRequest.Marshal(b, m, deterministic)
}
func (m *OrgSearchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgSearchRequest.Merge(m, src)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *OrgSearchRequest) XXX_Size() int {
return xxx_messageInfo_OrgSearchRequest.Size(m)
}
func (m *OrgSearchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OrgSearchRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OrgSearchRequest proto.InternalMessageInfo
func (m *OrgSearchRequest) GetOffset() uint64 {
if m != nil {
return m.Offset
2020-03-23 15:56:02 +00:00
}
return 0
}
func (m *OrgSearchRequest) GetLimit() uint64 {
if m != nil {
return m.Limit
2020-03-23 15:56:02 +00:00
}
return 0
}
func (m *OrgSearchRequest) GetSortingColumn() OrgSearchKey {
if m != nil {
return m.SortingColumn
2020-03-23 15:56:02 +00:00
}
return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED
}
func (m *OrgSearchRequest) GetAsc() bool {
if m != nil {
return m.Asc
2020-03-23 15:56:02 +00:00
}
return false
}
func (m *OrgSearchRequest) GetQueries() []*OrgSearchQuery {
if m != nil {
return m.Queries
2020-03-23 15:56:02 +00:00
}
return nil
}
type OrgSearchQuery struct {
Key OrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"key,omitempty"`
Method OrgSearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchMethod" json:"method,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2020-03-23 15:56:02 +00:00
}
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
func (m *OrgSearchQuery) Reset() { *m = OrgSearchQuery{} }
func (m *OrgSearchQuery) String() string { return proto.CompactTextString(m) }
func (*OrgSearchQuery) ProtoMessage() {}
func (*OrgSearchQuery) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{5}
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *OrgSearchQuery) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgSearchQuery.Unmarshal(m, b)
}
func (m *OrgSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgSearchQuery.Marshal(b, m, deterministic)
}
func (m *OrgSearchQuery) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgSearchQuery.Merge(m, src)
}
func (m *OrgSearchQuery) XXX_Size() int {
return xxx_messageInfo_OrgSearchQuery.Size(m)
}
func (m *OrgSearchQuery) XXX_DiscardUnknown() {
xxx_messageInfo_OrgSearchQuery.DiscardUnknown(m)
}
var xxx_messageInfo_OrgSearchQuery proto.InternalMessageInfo
2020-03-23 15:56:02 +00:00
func (m *OrgSearchQuery) GetKey() OrgSearchKey {
if m != nil {
return m.Key
2020-03-23 15:56:02 +00:00
}
return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED
}
func (m *OrgSearchQuery) GetMethod() OrgSearchMethod {
if m != nil {
return m.Method
2020-03-23 15:56:02 +00:00
}
return OrgSearchMethod_ORGSEARCHMETHOD_EQUALS
}
func (m *OrgSearchQuery) GetValue() string {
if m != nil {
return m.Value
2020-03-23 15:56:02 +00:00
}
return ""
}
type OrgSearchResponse struct {
Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"`
Result []*Org `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrgSearchResponse) Reset() { *m = OrgSearchResponse{} }
func (m *OrgSearchResponse) String() string { return proto.CompactTextString(m) }
func (*OrgSearchResponse) ProtoMessage() {}
func (*OrgSearchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{6}
2020-03-23 15:56:02 +00:00
}
func (m *OrgSearchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgSearchResponse.Unmarshal(m, b)
2020-03-23 15:56:02 +00:00
}
func (m *OrgSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgSearchResponse.Marshal(b, m, deterministic)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *OrgSearchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgSearchResponse.Merge(m, src)
}
func (m *OrgSearchResponse) XXX_Size() int {
return xxx_messageInfo_OrgSearchResponse.Size(m)
}
func (m *OrgSearchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_OrgSearchResponse.DiscardUnknown(m)
}
var xxx_messageInfo_OrgSearchResponse proto.InternalMessageInfo
2020-03-23 15:56:02 +00:00
func (m *OrgSearchResponse) GetOffset() uint64 {
if m != nil {
return m.Offset
2020-03-23 15:56:02 +00:00
}
return 0
}
func (m *OrgSearchResponse) GetLimit() uint64 {
if m != nil {
return m.Limit
2020-03-23 15:56:02 +00:00
}
return 0
}
func (m *OrgSearchResponse) GetTotalResult() uint64 {
if m != nil {
return m.TotalResult
2020-03-23 15:56:02 +00:00
}
return 0
}
func (m *OrgSearchResponse) GetResult() []*Org {
if m != nil {
return m.Result
2020-03-23 15:56:02 +00:00
}
return nil
}
type OrgSetUpRequest struct {
Org *CreateOrgRequest `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
User *CreateUserRequest `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2020-03-23 15:56:02 +00:00
}
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
func (m *OrgSetUpRequest) Reset() { *m = OrgSetUpRequest{} }
func (m *OrgSetUpRequest) String() string { return proto.CompactTextString(m) }
func (*OrgSetUpRequest) ProtoMessage() {}
func (*OrgSetUpRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{7}
}
func (m *OrgSetUpRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgSetUpRequest.Unmarshal(m, b)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *OrgSetUpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgSetUpRequest.Marshal(b, m, deterministic)
}
func (m *OrgSetUpRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgSetUpRequest.Merge(m, src)
}
func (m *OrgSetUpRequest) XXX_Size() int {
return xxx_messageInfo_OrgSetUpRequest.Size(m)
}
func (m *OrgSetUpRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OrgSetUpRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OrgSetUpRequest proto.InternalMessageInfo
2020-03-23 15:56:02 +00:00
func (m *OrgSetUpRequest) GetOrg() *CreateOrgRequest {
if m != nil {
return m.Org
2020-03-23 15:56:02 +00:00
}
return nil
}
func (m *OrgSetUpRequest) GetUser() *CreateUserRequest {
if m != nil {
return m.User
2020-03-23 15:56:02 +00:00
}
return nil
}
type OrgSetUpResponse struct {
Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"`
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2020-03-23 15:56:02 +00:00
}
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
func (m *OrgSetUpResponse) Reset() { *m = OrgSetUpResponse{} }
func (m *OrgSetUpResponse) String() string { return proto.CompactTextString(m) }
func (*OrgSetUpResponse) ProtoMessage() {}
func (*OrgSetUpResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{8}
}
func (m *OrgSetUpResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgSetUpResponse.Unmarshal(m, b)
}
func (m *OrgSetUpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgSetUpResponse.Marshal(b, m, deterministic)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *OrgSetUpResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgSetUpResponse.Merge(m, src)
}
func (m *OrgSetUpResponse) XXX_Size() int {
return xxx_messageInfo_OrgSetUpResponse.Size(m)
}
func (m *OrgSetUpResponse) XXX_DiscardUnknown() {
xxx_messageInfo_OrgSetUpResponse.DiscardUnknown(m)
}
var xxx_messageInfo_OrgSetUpResponse proto.InternalMessageInfo
func (m *OrgSetUpResponse) GetOrg() *Org {
if m != nil {
return m.Org
2020-03-23 15:56:02 +00:00
}
return nil
}
func (m *OrgSetUpResponse) GetUser() *User {
if m != nil {
return m.User
2020-03-23 15:56:02 +00:00
}
return nil
}
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
type CreateUserRequest struct {
UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
PreferredLanguage string `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
Gender Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"`
Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"`
IsEmailVerified bool `protobuf:"varint,8,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"`
Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"`
IsPhoneVerified bool `protobuf:"varint,10,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"`
Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"`
Locality string `protobuf:"bytes,12,opt,name=locality,proto3" json:"locality,omitempty"`
PostalCode string `protobuf:"bytes,13,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"`
StreetAddress string `protobuf:"bytes,15,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
Password string `protobuf:"bytes,16,opt,name=password,proto3" json:"password,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} }
func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) }
func (*CreateUserRequest) ProtoMessage() {}
func (*CreateUserRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{9}
2020-03-23 15:56:02 +00:00
}
func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateUserRequest.Unmarshal(m, b)
2020-03-23 15:56:02 +00:00
}
func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateUserRequest.Marshal(b, m, deterministic)
}
func (m *CreateUserRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateUserRequest.Merge(m, src)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *CreateUserRequest) XXX_Size() int {
return xxx_messageInfo_CreateUserRequest.Size(m)
}
func (m *CreateUserRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateUserRequest.DiscardUnknown(m)
2020-03-23 15:56:02 +00:00
}
var xxx_messageInfo_CreateUserRequest proto.InternalMessageInfo
func (m *CreateUserRequest) GetUserName() string {
if m != nil {
return m.UserName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *CreateUserRequest) GetFirstName() string {
if m != nil {
return m.FirstName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *CreateUserRequest) GetLastName() string {
if m != nil {
return m.LastName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *CreateUserRequest) GetNickName() string {
if m != nil {
return m.NickName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *CreateUserRequest) GetPreferredLanguage() string {
if m != nil {
return m.PreferredLanguage
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *CreateUserRequest) GetGender() Gender {
if m != nil {
return m.Gender
2020-03-23 15:56:02 +00:00
}
return Gender_GENDER_UNSPECIFIED
}
func (m *CreateUserRequest) GetEmail() string {
if m != nil {
return m.Email
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *CreateUserRequest) GetIsEmailVerified() bool {
if m != nil {
return m.IsEmailVerified
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return false
}
func (m *CreateUserRequest) GetPhone() string {
if m != nil {
return m.Phone
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return ""
}
func (m *CreateUserRequest) GetIsPhoneVerified() bool {
if m != nil {
return m.IsPhoneVerified
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return false
}
func (m *CreateUserRequest) GetCountry() string {
if m != nil {
return m.Country
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return ""
}
func (m *CreateUserRequest) GetLocality() string {
if m != nil {
return m.Locality
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return ""
}
func (m *CreateUserRequest) GetPostalCode() string {
if m != nil {
return m.PostalCode
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return ""
}
func (m *CreateUserRequest) GetRegion() string {
if m != nil {
return m.Region
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return ""
}
func (m *CreateUserRequest) GetStreetAddress() string {
if m != nil {
return m.StreetAddress
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return ""
}
func (m *CreateUserRequest) GetPassword() string {
if m != nil {
return m.Password
2020-03-23 15:56:02 +00:00
}
return ""
}
type User struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.UserState" json:"state,omitempty"`
CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"`
UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
FirstName string `protobuf:"bytes,6,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
LastName string `protobuf:"bytes,7,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
NickName string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
DisplayName string `protobuf:"bytes,9,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
PreferredLanguage string `protobuf:"bytes,10,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"`
Gender Gender `protobuf:"varint,11,opt,name=gender,proto3,enum=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"`
Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"`
IsEmailVerified bool `protobuf:"varint,13,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"`
Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"`
IsPhoneVerified bool `protobuf:"varint,15,opt,name=isPhoneVerified,proto3" json:"isPhoneVerified,omitempty"`
Country string `protobuf:"bytes,16,opt,name=country,proto3" json:"country,omitempty"`
Locality string `protobuf:"bytes,17,opt,name=locality,proto3" json:"locality,omitempty"`
PostalCode string `protobuf:"bytes,18,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
Region string `protobuf:"bytes,19,opt,name=region,proto3" json:"region,omitempty"`
StreetAddress string `protobuf:"bytes,20,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
Sequence uint64 `protobuf:"varint,21,opt,name=sequence,proto3" json:"sequence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
2020-03-23 15:56:02 +00:00
func (*User) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{10}
}
func (m *User) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_User.Unmarshal(m, b)
}
func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_User.Marshal(b, m, deterministic)
}
func (m *User) XXX_Merge(src proto.Message) {
xxx_messageInfo_User.Merge(m, src)
}
func (m *User) XXX_Size() int {
return xxx_messageInfo_User.Size(m)
}
func (m *User) XXX_DiscardUnknown() {
xxx_messageInfo_User.DiscardUnknown(m)
2020-03-23 15:56:02 +00:00
}
var xxx_messageInfo_User proto.InternalMessageInfo
func (m *User) GetId() string {
if m != nil {
return m.Id
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetState() UserState {
if m != nil {
return m.State
2020-03-23 15:56:02 +00:00
}
return UserState_USERSTATE_UNSPECIFIED
}
func (m *User) GetCreationDate() *timestamp.Timestamp {
if m != nil {
return m.CreationDate
2020-03-23 15:56:02 +00:00
}
return nil
}
func (m *User) GetChangeDate() *timestamp.Timestamp {
if m != nil {
return m.ChangeDate
2020-03-23 15:56:02 +00:00
}
return nil
}
func (m *User) GetUserName() string {
if m != nil {
return m.UserName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetFirstName() string {
if m != nil {
return m.FirstName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetLastName() string {
if m != nil {
return m.LastName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetNickName() string {
if m != nil {
return m.NickName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetDisplayName() string {
if m != nil {
return m.DisplayName
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetPreferredLanguage() string {
if m != nil {
return m.PreferredLanguage
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetGender() Gender {
if m != nil {
return m.Gender
2020-03-23 15:56:02 +00:00
}
return Gender_GENDER_UNSPECIFIED
}
func (m *User) GetEmail() string {
if m != nil {
return m.Email
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetIsEmailVerified() bool {
if m != nil {
return m.IsEmailVerified
2020-03-23 15:56:02 +00:00
}
return false
}
func (m *User) GetPhone() string {
if m != nil {
return m.Phone
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetIsPhoneVerified() bool {
if m != nil {
return m.IsPhoneVerified
2020-03-23 15:56:02 +00:00
}
return false
}
func (m *User) GetCountry() string {
if m != nil {
return m.Country
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetLocality() string {
if m != nil {
return m.Locality
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetPostalCode() string {
if m != nil {
return m.PostalCode
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetRegion() string {
if m != nil {
return m.Region
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetStreetAddress() string {
if m != nil {
return m.StreetAddress
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *User) GetSequence() uint64 {
if m != nil {
return m.Sequence
feat: org command sides (#96) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add user repo to admin * thorw not found if no org found * eventstore tests done * lauft * validate if user is already member of org * modules * delete unused file * add member validation test * return error if unable to validat member * generate org id once, set resourceowner of org * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/admin/repository/eventsourcing/eventstore/org.go * Update internal/org/repository/eventsourcing/member_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_member.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org.go * Update internal/org/repository/eventsourcing/org_model.go * Update internal/org/repository/eventsourcing/org_model.go * typo * correct user events * usercreate for setuporg instead of userregister * set data * mod * mod * tests * cleanup code * code styling * return member on add and change * change username in startup * girignore * orgID as parameter in re-/deactive org * startup config * migration for admin_api-user * probes fro admin * move unique org Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
2020-05-13 12:22:29 +00:00
}
return 0
}
2020-03-23 15:56:02 +00:00
type CreateOrgRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateOrgRequest) Reset() { *m = CreateOrgRequest{} }
func (m *CreateOrgRequest) String() string { return proto.CompactTextString(m) }
func (*CreateOrgRequest) ProtoMessage() {}
func (*CreateOrgRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{11}
2020-03-23 15:56:02 +00:00
}
func (m *CreateOrgRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateOrgRequest.Unmarshal(m, b)
}
func (m *CreateOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateOrgRequest.Marshal(b, m, deterministic)
}
func (m *CreateOrgRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateOrgRequest.Merge(m, src)
}
func (m *CreateOrgRequest) XXX_Size() int {
return xxx_messageInfo_CreateOrgRequest.Size(m)
}
func (m *CreateOrgRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateOrgRequest.DiscardUnknown(m)
2020-03-23 15:56:02 +00:00
}
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
var xxx_messageInfo_CreateOrgRequest proto.InternalMessageInfo
func (m *CreateOrgRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
2020-03-23 15:56:02 +00:00
}
func (m *CreateOrgRequest) GetDomain() string {
if m != nil {
return m.Domain
}
return ""
}
type OrgIamPolicy struct {
OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"`
Default bool `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"`
Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2020-03-23 15:56:02 +00:00
}
func (m *OrgIamPolicy) Reset() { *m = OrgIamPolicy{} }
func (m *OrgIamPolicy) String() string { return proto.CompactTextString(m) }
func (*OrgIamPolicy) ProtoMessage() {}
func (*OrgIamPolicy) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{12}
}
func (m *OrgIamPolicy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgIamPolicy.Unmarshal(m, b)
feat: setup and iam commands (#99) * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(eventstore): check preconditions in repository * test(eventstore): test precondition in models * test(eventstore): precondition-tests * start org * refactor(eventstore): filter in sql for querier * feat(eventstore): Aggregate precondition preconditions are checked right before insert. Insert is still transaction save * feat(admin): start implement org * feat(eventstore): check preconditions in repository * fix(eventstore): data as NULL if empty refactor(eventstore): naming in sequence methods * feat(admin): org command side * feat(management): start org-repo * feat(org): member * fix: replace ObjectRoot.ID with ObjectRoot.AggregateID * aggregateID * add remove,change member * refactor(org): namings * refactor(eventstore): querier as type * fix(precondition): rename validation from precondition to validation * test(eventstore): isErr func instead of wantErr bool * fix(tests): Data * fix(eventstore): correct check for existing events in push, simplify insert statement * fix(eventstore): aggregate id public * test(org): eventsourcing * test(org): eventstore * test(org): deactivate, reactivate, orgbyid * test(org): getMemberByIDs * tests * running tests * add config * add user repo to admin * thorw not found if no org found * iam setup * eventstore tests done * setup iam * lauft * iam eventstore * validate if user is already member of org * modules * delete unused file * iam member * add member validation test * iam member * return error if unable to validat member * generate org id once, set resourceowner of org * start iam repo * set resourceowner on unique aggregates * setup user const * better code * generate files * fix tests * Update internal/admin/repository/eventsourcing/repository.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * set ctx data Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-05-18 09:32:16 +00:00
}
func (m *OrgIamPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgIamPolicy.Marshal(b, m, deterministic)
}
func (m *OrgIamPolicy) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgIamPolicy.Merge(m, src)
}
func (m *OrgIamPolicy) XXX_Size() int {
return xxx_messageInfo_OrgIamPolicy.Size(m)
}
func (m *OrgIamPolicy) XXX_DiscardUnknown() {
xxx_messageInfo_OrgIamPolicy.DiscardUnknown(m)
}
2020-03-23 15:56:02 +00:00
var xxx_messageInfo_OrgIamPolicy proto.InternalMessageInfo
func (m *OrgIamPolicy) GetOrgId() string {
if m != nil {
return m.OrgId
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *OrgIamPolicy) GetDescription() string {
if m != nil {
return m.Description
2020-03-23 15:56:02 +00:00
}
return ""
}
func (m *OrgIamPolicy) GetUserLoginMustBeDomain() bool {
if m != nil {
return m.UserLoginMustBeDomain
}
return false
}
func (m *OrgIamPolicy) GetDefault() bool {
if m != nil {
return m.Default
}
return false
}
func (m *OrgIamPolicy) GetSequence() uint64 {
if m != nil {
return m.Sequence
}
return 0
}
func (m *OrgIamPolicy) GetCreationDate() *timestamp.Timestamp {
if m != nil {
return m.CreationDate
}
return nil
}
func (m *OrgIamPolicy) GetChangeDate() *timestamp.Timestamp {
if m != nil {
return m.ChangeDate
}
return nil
}
type OrgIamPolicyRequest struct {
OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrgIamPolicyRequest) Reset() { *m = OrgIamPolicyRequest{} }
func (m *OrgIamPolicyRequest) String() string { return proto.CompactTextString(m) }
func (*OrgIamPolicyRequest) ProtoMessage() {}
func (*OrgIamPolicyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{13}
}
func (m *OrgIamPolicyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgIamPolicyRequest.Unmarshal(m, b)
}
func (m *OrgIamPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgIamPolicyRequest.Marshal(b, m, deterministic)
}
func (m *OrgIamPolicyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgIamPolicyRequest.Merge(m, src)
}
func (m *OrgIamPolicyRequest) XXX_Size() int {
return xxx_messageInfo_OrgIamPolicyRequest.Size(m)
}
func (m *OrgIamPolicyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OrgIamPolicyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OrgIamPolicyRequest proto.InternalMessageInfo
func (m *OrgIamPolicyRequest) GetOrgId() string {
if m != nil {
return m.OrgId
}
return ""
}
func (m *OrgIamPolicyRequest) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *OrgIamPolicyRequest) GetUserLoginMustBeDomain() bool {
if m != nil {
return m.UserLoginMustBeDomain
}
return false
}
type OrgIamPolicyID struct {
OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrgIamPolicyID) Reset() { *m = OrgIamPolicyID{} }
func (m *OrgIamPolicyID) String() string { return proto.CompactTextString(m) }
func (*OrgIamPolicyID) ProtoMessage() {}
func (*OrgIamPolicyID) Descriptor() ([]byte, []int) {
return fileDescriptor_73a7fc70dcc2027c, []int{14}
}
func (m *OrgIamPolicyID) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrgIamPolicyID.Unmarshal(m, b)
}
func (m *OrgIamPolicyID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrgIamPolicyID.Marshal(b, m, deterministic)
}
func (m *OrgIamPolicyID) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrgIamPolicyID.Merge(m, src)
}
func (m *OrgIamPolicyID) XXX_Size() int {
return xxx_messageInfo_OrgIamPolicyID.Size(m)
}
func (m *OrgIamPolicyID) XXX_DiscardUnknown() {
xxx_messageInfo_OrgIamPolicyID.DiscardUnknown(m)
}
var xxx_messageInfo_OrgIamPolicyID proto.InternalMessageInfo
func (m *OrgIamPolicyID) GetOrgId() string {
if m != nil {
return m.OrgId
}
return ""
}
func init() {
proto.RegisterEnum("caos.zitadel.admin.api.v1.OrgState", OrgState_name, OrgState_value)
proto.RegisterEnum("caos.zitadel.admin.api.v1.OrgSearchKey", OrgSearchKey_name, OrgSearchKey_value)
proto.RegisterEnum("caos.zitadel.admin.api.v1.OrgSearchMethod", OrgSearchMethod_name, OrgSearchMethod_value)
proto.RegisterEnum("caos.zitadel.admin.api.v1.UserState", UserState_name, UserState_value)
proto.RegisterEnum("caos.zitadel.admin.api.v1.Gender", Gender_name, Gender_value)
proto.RegisterType((*OrgID)(nil), "caos.zitadel.admin.api.v1.OrgID")
proto.RegisterType((*UniqueOrgRequest)(nil), "caos.zitadel.admin.api.v1.UniqueOrgRequest")
proto.RegisterType((*UniqueOrgResponse)(nil), "caos.zitadel.admin.api.v1.UniqueOrgResponse")
proto.RegisterType((*Org)(nil), "caos.zitadel.admin.api.v1.Org")
proto.RegisterType((*OrgSearchRequest)(nil), "caos.zitadel.admin.api.v1.OrgSearchRequest")
proto.RegisterType((*OrgSearchQuery)(nil), "caos.zitadel.admin.api.v1.OrgSearchQuery")
proto.RegisterType((*OrgSearchResponse)(nil), "caos.zitadel.admin.api.v1.OrgSearchResponse")
proto.RegisterType((*OrgSetUpRequest)(nil), "caos.zitadel.admin.api.v1.OrgSetUpRequest")
proto.RegisterType((*OrgSetUpResponse)(nil), "caos.zitadel.admin.api.v1.OrgSetUpResponse")
proto.RegisterType((*CreateUserRequest)(nil), "caos.zitadel.admin.api.v1.CreateUserRequest")
proto.RegisterType((*User)(nil), "caos.zitadel.admin.api.v1.User")
proto.RegisterType((*CreateOrgRequest)(nil), "caos.zitadel.admin.api.v1.CreateOrgRequest")
proto.RegisterType((*OrgIamPolicy)(nil), "caos.zitadel.admin.api.v1.OrgIamPolicy")
proto.RegisterType((*OrgIamPolicyRequest)(nil), "caos.zitadel.admin.api.v1.OrgIamPolicyRequest")
proto.RegisterType((*OrgIamPolicyID)(nil), "caos.zitadel.admin.api.v1.OrgIamPolicyID")
}
func init() { proto.RegisterFile("admin.proto", fileDescriptor_73a7fc70dcc2027c) }
var fileDescriptor_73a7fc70dcc2027c = []byte{
// 2038 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6f, 0xdb, 0xc8,
0x15, 0x0e, 0xf5, 0xcb, 0xd2, 0x93, 0x2d, 0x53, 0x13, 0xc7, 0x61, 0xe4, 0xa4, 0x71, 0xb8, 0x9b,
0x26, 0x51, 0x12, 0x29, 0xeb, 0x45, 0xbb, 0x4d, 0x8a, 0xa2, 0x95, 0x2d, 0xae, 0x23, 0xc4, 0x96,
0xbc, 0x94, 0x9c, 0x6e, 0x7b, 0x51, 0x19, 0x71, 0x4c, 0xb3, 0xa1, 0x48, 0x66, 0x86, 0x4a, 0xaa,
0x2d, 0xf6, 0x62, 0xa0, 0x40, 0x81, 0x02, 0x6d, 0xb1, 0xbd, 0xee, 0xa1, 0xc7, 0xde, 0xf6, 0x50,
0xe4, 0xda, 0x73, 0xef, 0xfd, 0x17, 0xfa, 0x0f, 0xf4, 0x9a, 0x53, 0x31, 0x33, 0x24, 0x45, 0x49,
0xb6, 0xec, 0xb4, 0xc0, 0x62, 0x4f, 0x12, 0xdf, 0xfb, 0xe6, 0xcd, 0xc7, 0x6f, 0xe6, 0x9b, 0x1f,
0x84, 0xa2, 0x61, 0x0e, 0x6d, 0xb7, 0xe6, 0x13, 0x2f, 0xf0, 0xd0, 0xb5, 0x81, 0xe1, 0xd1, 0xda,
0x17, 0x76, 0x60, 0x98, 0xd8, 0xa9, 0x89, 0x8c, 0xe1, 0xdb, 0xb5, 0xd7, 0x1f, 0x55, 0xae, 0x5b,
0x9e, 0x67, 0x39, 0xb8, 0x6e, 0xf8, 0x76, 0xdd, 0x70, 0x5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5, 0x7f, 0x4d, 0x3d, 0x77, 0x3a,
0x62, 0x11, 0x7f, 0xf0, 0x64, 0x0e, 0xf3, 0x64, 0x0e, 0xf3, 0xcb, 0xea, 0xb9, 0x5d, 0xf2, 0xaf,
0xca, 0x0c, 0xfb, 0x22, 0xc7, 0x95, 0xf8, 0xf8, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xeb, 0x9f,
0x83, 0xf6, 0x97, 0x16, 0x00, 0x00,
2020-03-23 15:56:02 +00:00
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
2020-03-23 15:56:02 +00:00
// 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.SupportPackageIsVersion6
2020-03-23 15:56:02 +00:00
// AdminServiceClient is the client API for AdminService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AdminServiceClient interface {
// Healthz returns status OK as soon as the service started
Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
// Ready returns status OK as soon as all dependent services are available
Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error)
//ORG
IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error)
GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error)
SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error)
SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error)
//ORG_IAM_POLICY
GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicy, error)
CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error)
UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error)
DeleteOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error)
2020-03-23 15:56:02 +00:00
}
type adminServiceClient struct {
cc grpc.ClientConnInterface
2020-03-23 15:56:02 +00:00
}
func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient {
2020-03-23 15:56:02 +00:00
return &adminServiceClient{cc}
}
func (c *adminServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Healthz", in, out, opts...)
2020-03-23 15:56:02 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Ready", in, out, opts...)
2020-03-23 15:56:02 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) {
out := new(_struct.Struct)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Validate", in, out, opts...)
2020-03-23 15:56:02 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) {
out := new(UniqueOrgResponse)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique", in, out, opts...)
2020-03-23 15:56:02 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) {
out := new(Org)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID", in, out, opts...)
2020-03-23 15:56:02 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) {
out := new(OrgSearchResponse)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs", in, out, opts...)
2020-03-23 15:56:02 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) {
out := new(OrgSetUpResponse)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg", in, out, opts...)
2020-03-23 15:56:02 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicy, error) {
out := new(OrgIamPolicy)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) {
out := new(OrgIamPolicy)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) {
out := new(OrgIamPolicy)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *adminServiceClient) DeleteOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2020-03-23 15:56:02 +00:00
// AdminServiceServer is the server API for AdminService service.
type AdminServiceServer interface {
// Healthz returns status OK as soon as the service started
Healthz(context.Context, *empty.Empty) (*empty.Empty, error)
// Ready returns status OK as soon as all dependent services are available
Ready(context.Context, *empty.Empty) (*empty.Empty, error)
Validate(context.Context, *empty.Empty) (*_struct.Struct, error)
//ORG
IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error)
GetOrgByID(context.Context, *OrgID) (*Org, error)
SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error)
SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error)
//ORG_IAM_POLICY
GetOrgIamPolicy(context.Context, *OrgIamPolicyID) (*OrgIamPolicy, error)
CreateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error)
UpdateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error)
DeleteOrgIamPolicy(context.Context, *OrgIamPolicyID) (*empty.Empty, error)
2020-03-23 15:56:02 +00:00
}
// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations.
type UnimplementedAdminServiceServer struct {
}
func (*UnimplementedAdminServiceServer) Healthz(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
2020-03-23 15:56:02 +00:00
return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented")
}
func (*UnimplementedAdminServiceServer) Ready(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
2020-03-23 15:56:02 +00:00
return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented")
}
func (*UnimplementedAdminServiceServer) Validate(ctx context.Context, req *empty.Empty) (*_struct.Struct, error) {
2020-03-23 15:56:02 +00:00
return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented")
}
func (*UnimplementedAdminServiceServer) IsOrgUnique(ctx context.Context, req *UniqueOrgRequest) (*UniqueOrgResponse, error) {
2020-03-23 15:56:02 +00:00
return nil, status.Errorf(codes.Unimplemented, "method IsOrgUnique not implemented")
}
func (*UnimplementedAdminServiceServer) GetOrgByID(ctx context.Context, req *OrgID) (*Org, error) {
2020-03-23 15:56:02 +00:00
return nil, status.Errorf(codes.Unimplemented, "method GetOrgByID not implemented")
}
func (*UnimplementedAdminServiceServer) SearchOrgs(ctx context.Context, req *OrgSearchRequest) (*OrgSearchResponse, error) {
2020-03-23 15:56:02 +00:00
return nil, status.Errorf(codes.Unimplemented, "method SearchOrgs not implemented")
}
func (*UnimplementedAdminServiceServer) SetUpOrg(ctx context.Context, req *OrgSetUpRequest) (*OrgSetUpResponse, error) {
2020-03-23 15:56:02 +00:00
return nil, status.Errorf(codes.Unimplemented, "method SetUpOrg not implemented")
}
func (*UnimplementedAdminServiceServer) GetOrgIamPolicy(ctx context.Context, req *OrgIamPolicyID) (*OrgIamPolicy, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetOrgIamPolicy not implemented")
}
func (*UnimplementedAdminServiceServer) CreateOrgIamPolicy(ctx context.Context, req *OrgIamPolicyRequest) (*OrgIamPolicy, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateOrgIamPolicy not implemented")
}
func (*UnimplementedAdminServiceServer) UpdateOrgIamPolicy(ctx context.Context, req *OrgIamPolicyRequest) (*OrgIamPolicy, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateOrgIamPolicy not implemented")
}
func (*UnimplementedAdminServiceServer) DeleteOrgIamPolicy(ctx context.Context, req *OrgIamPolicyID) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteOrgIamPolicy not implemented")
}
2020-03-23 15:56:02 +00:00
func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) {
s.RegisterService(&_AdminService_serviceDesc, srv)
}
func _AdminService_Healthz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).Healthz(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Healthz",
2020-03-23 15:56:02 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).Healthz(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_Ready_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).Ready(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Ready",
2020-03-23 15:56:02 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).Ready(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).Validate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Validate",
2020-03-23 15:56:02 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).Validate(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_IsOrgUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UniqueOrgRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).IsOrgUnique(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique",
2020-03-23 15:56:02 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).IsOrgUnique(ctx, req.(*UniqueOrgRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_GetOrgByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OrgID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).GetOrgByID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID",
2020-03-23 15:56:02 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).GetOrgByID(ctx, req.(*OrgID))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_SearchOrgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OrgSearchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).SearchOrgs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs",
2020-03-23 15:56:02 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).SearchOrgs(ctx, req.(*OrgSearchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_SetUpOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OrgSetUpRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).SetUpOrg(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg",
2020-03-23 15:56:02 +00:00
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).SetUpOrg(ctx, req.(*OrgSetUpRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_GetOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OrgIamPolicyID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, req.(*OrgIamPolicyID))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_CreateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OrgIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_UpdateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OrgIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _AdminService_DeleteOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OrgIamPolicyID)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AdminServiceServer).DeleteOrgIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/caos.zitadel.admin.api.v1.AdminService/DeleteOrgIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AdminServiceServer).DeleteOrgIamPolicy(ctx, req.(*OrgIamPolicyID))
}
return interceptor(ctx, in, info, handler)
}
2020-03-23 15:56:02 +00:00
var _AdminService_serviceDesc = grpc.ServiceDesc{
ServiceName: "caos.zitadel.admin.api.v1.AdminService",
2020-03-23 15:56:02 +00:00
HandlerType: (*AdminServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Healthz",
Handler: _AdminService_Healthz_Handler,
},
{
MethodName: "Ready",
Handler: _AdminService_Ready_Handler,
},
{
MethodName: "Validate",
Handler: _AdminService_Validate_Handler,
},
{
MethodName: "IsOrgUnique",
Handler: _AdminService_IsOrgUnique_Handler,
},
{
MethodName: "GetOrgByID",
Handler: _AdminService_GetOrgByID_Handler,
},
{
MethodName: "SearchOrgs",
Handler: _AdminService_SearchOrgs_Handler,
},
{
MethodName: "SetUpOrg",
Handler: _AdminService_SetUpOrg_Handler,
},
{
MethodName: "GetOrgIamPolicy",
Handler: _AdminService_GetOrgIamPolicy_Handler,
},
{
MethodName: "CreateOrgIamPolicy",
Handler: _AdminService_CreateOrgIamPolicy_Handler,
},
{
MethodName: "UpdateOrgIamPolicy",
Handler: _AdminService_UpdateOrgIamPolicy_Handler,
},
{
MethodName: "DeleteOrgIamPolicy",
Handler: _AdminService_DeleteOrgIamPolicy_Handler,
},
2020-03-23 15:56:02 +00:00
},
Streams: []grpc.StreamDesc{},
Metadata: "admin.proto",
}