Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTrustsServiceServer(s grpc.ServiceRegistrar, srv TrustsServiceServer)
- type AcceptTrustRequest
- func (*AcceptTrustRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AcceptTrustRequest) GetTrustId() string
- func (*AcceptTrustRequest) ProtoMessage()
- func (x *AcceptTrustRequest) ProtoReflect() protoreflect.Message
- func (x *AcceptTrustRequest) Reset()
- func (x *AcceptTrustRequest) String() string
- type AcceptTrustResponse
- type AssignTrustRequest
- func (*AssignTrustRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignTrustRequest) GetTrustId() string
- func (x *AssignTrustRequest) GetUserIds() []string
- func (*AssignTrustRequest) ProtoMessage()
- func (x *AssignTrustRequest) ProtoReflect() protoreflect.Message
- func (x *AssignTrustRequest) Reset()
- func (x *AssignTrustRequest) String() string
- type AssignTrustResponse
- type CreateTrustRequest
- func (*CreateTrustRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTrustRequest) GetDescription() string
- func (x *CreateTrustRequest) GetGrantee() string
- func (x *CreateTrustRequest) GetLabelIds() []string
- func (x *CreateTrustRequest) GetName() string
- func (x *CreateTrustRequest) GetPermissions() []auth.Permission
- func (*CreateTrustRequest) ProtoMessage()
- func (x *CreateTrustRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTrustRequest) Reset()
- func (x *CreateTrustRequest) String() string
- type CreateTrustResponse
- func (*CreateTrustResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTrustResponse) GetTrustId() string
- func (*CreateTrustResponse) ProtoMessage()
- func (x *CreateTrustResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTrustResponse) Reset()
- func (x *CreateTrustResponse) String() string
- type DeleteTrustRequest
- func (*DeleteTrustRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTrustRequest) GetTrustId() string
- func (*DeleteTrustRequest) ProtoMessage()
- func (x *DeleteTrustRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTrustRequest) Reset()
- func (x *DeleteTrustRequest) String() string
- type DeleteTrustResponse
- type GetTrustRequest
- type GetTrustResponse
- func (*GetTrustResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTrustResponse) GetGranteeName() string
- func (x *GetTrustResponse) GetGrantorName() string
- func (x *GetTrustResponse) GetTrust() *org.Trust
- func (*GetTrustResponse) ProtoMessage()
- func (x *GetTrustResponse) ProtoReflect() protoreflect.Message
- func (x *GetTrustResponse) Reset()
- func (x *GetTrustResponse) String() string
- type ListAssignableTrustsRequest
- type ListAssignableTrustsResponse
- func (*ListAssignableTrustsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAssignableTrustsResponse) GetTrusts() []*ListTrustsResponsePayload
- func (*ListAssignableTrustsResponse) ProtoMessage()
- func (x *ListAssignableTrustsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAssignableTrustsResponse) Reset()
- func (x *ListAssignableTrustsResponse) String() string
- type ListGivenTrustsRequest
- type ListGivenTrustsResponse
- func (*ListGivenTrustsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListGivenTrustsResponse) GetTrusts() []*ListTrustsResponsePayload
- func (*ListGivenTrustsResponse) ProtoMessage()
- func (x *ListGivenTrustsResponse) ProtoReflect() protoreflect.Message
- func (x *ListGivenTrustsResponse) Reset()
- func (x *ListGivenTrustsResponse) String() string
- type ListIncomingTrustsRequest
- type ListIncomingTrustsResponse
- func (*ListIncomingTrustsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListIncomingTrustsResponse) GetTrusts() []*ListTrustsResponsePayload
- func (*ListIncomingTrustsResponse) ProtoMessage()
- func (x *ListIncomingTrustsResponse) ProtoReflect() protoreflect.Message
- func (x *ListIncomingTrustsResponse) Reset()
- func (x *ListIncomingTrustsResponse) String() string
- type ListTrustsResponsePayload
- func (*ListTrustsResponsePayload) Descriptor() ([]byte, []int)deprecated
- func (x *ListTrustsResponsePayload) GetGranteeName() string
- func (x *ListTrustsResponsePayload) GetGrantorName() string
- func (x *ListTrustsResponsePayload) GetTrust() *org.Trust
- func (*ListTrustsResponsePayload) ProtoMessage()
- func (x *ListTrustsResponsePayload) ProtoReflect() protoreflect.Message
- func (x *ListTrustsResponsePayload) Reset()
- func (x *ListTrustsResponsePayload) String() string
- type RejectTrustRequest
- func (*RejectTrustRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RejectTrustRequest) GetTrustId() string
- func (*RejectTrustRequest) ProtoMessage()
- func (x *RejectTrustRequest) ProtoReflect() protoreflect.Message
- func (x *RejectTrustRequest) Reset()
- func (x *RejectTrustRequest) String() string
- type RejectTrustResponse
- type TrustsServiceClient
- type TrustsServiceServer
- type UnassignTrustRequest
- func (*UnassignTrustRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnassignTrustRequest) GetTrustId() string
- func (x *UnassignTrustRequest) GetUserId() string
- func (*UnassignTrustRequest) ProtoMessage()
- func (x *UnassignTrustRequest) ProtoReflect() protoreflect.Message
- func (x *UnassignTrustRequest) Reset()
- func (x *UnassignTrustRequest) String() string
- type UnassignTrustResponse
- type UnimplementedTrustsServiceServer
- func (UnimplementedTrustsServiceServer) AcceptTrust(context.Context, *org.AcceptTrustRequest) (*org.AcceptTrustResponse, error)
- func (UnimplementedTrustsServiceServer) AssignTrust(context.Context, *org.AssignTrustRequest) (*org.AssignTrustResponse, error)
- func (UnimplementedTrustsServiceServer) CreateTrust(context.Context, *org.CreateTrustRequest) (*org.CreateTrustResponse, error)
- func (UnimplementedTrustsServiceServer) DeleteTrust(context.Context, *org.DeleteTrustRequest) (*org.DeleteTrustResponse, error)
- func (UnimplementedTrustsServiceServer) GetTrust(context.Context, *org.GetTrustRequest) (*org.GetTrustResponse, error)
- func (UnimplementedTrustsServiceServer) ListAssignableTrusts(context.Context, *org.ListAssignableTrustsRequest) (*org.ListAssignableTrustsResponse, error)
- func (UnimplementedTrustsServiceServer) ListGivenTrusts(context.Context, *org.ListGivenTrustsRequest) (*org.ListGivenTrustsResponse, error)
- func (UnimplementedTrustsServiceServer) ListIncomingTrusts(context.Context, *org.ListIncomingTrustsRequest) (*org.ListIncomingTrustsResponse, error)
- func (UnimplementedTrustsServiceServer) RejectTrust(context.Context, *org.RejectTrustRequest) (*org.RejectTrustResponse, error)
- func (UnimplementedTrustsServiceServer) UnassignTrust(context.Context, *org.UnassignTrustRequest) (*org.UnassignTrustResponse, error)
- type UnsafeTrustsServiceServer
Constants ¶
const ( TrustsService_CreateTrust_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/CreateTrust" TrustsService_AcceptTrust_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/AcceptTrust" TrustsService_RejectTrust_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/RejectTrust" TrustsService_GetTrust_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/GetTrust" TrustsService_ListIncomingTrusts_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/ListIncomingTrusts" TrustsService_ListGivenTrusts_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/ListGivenTrusts" TrustsService_ListAssignableTrusts_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/ListAssignableTrusts" TrustsService_DeleteTrust_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/DeleteTrust" TrustsService_AssignTrust_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/AssignTrust" TrustsService_UnassignTrust_FullMethodName = "/api.v1alpha1.org.trusts.TrustsService/UnassignTrust" )
Variables ¶
var File_api_v1alpha1_org_trusts_entities_proto protoreflect.FileDescriptor
var File_api_v1alpha1_org_trusts_service_proto protoreflect.FileDescriptor
var TrustsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1alpha1.org.trusts.TrustsService", HandlerType: (*TrustsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTrust", Handler: _TrustsService_CreateTrust_Handler, }, { MethodName: "AcceptTrust", Handler: _TrustsService_AcceptTrust_Handler, }, { MethodName: "RejectTrust", Handler: _TrustsService_RejectTrust_Handler, }, { MethodName: "GetTrust", Handler: _TrustsService_GetTrust_Handler, }, { MethodName: "ListIncomingTrusts", Handler: _TrustsService_ListIncomingTrusts_Handler, }, { MethodName: "ListGivenTrusts", Handler: _TrustsService_ListGivenTrusts_Handler, }, { MethodName: "ListAssignableTrusts", Handler: _TrustsService_ListAssignableTrusts_Handler, }, { MethodName: "DeleteTrust", Handler: _TrustsService_DeleteTrust_Handler, }, { MethodName: "AssignTrust", Handler: _TrustsService_AssignTrust_Handler, }, { MethodName: "UnassignTrust", Handler: _TrustsService_UnassignTrust_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1alpha1/org/trusts/service.proto", }
TrustsService_ServiceDesc is the grpc.ServiceDesc for TrustsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTrustsServiceServer ¶
func RegisterTrustsServiceServer(s grpc.ServiceRegistrar, srv TrustsServiceServer)
Types ¶
type AcceptTrustRequest ¶
type AcceptTrustRequest struct { // ID of the trust being accepted. TrustId string `protobuf:"bytes,1,opt,name=trust_id,json=trustId,proto3" json:"trust_id,omitempty"` // contains filtered or unexported fields }
Request message for the AcceptTrust RPC.
func (*AcceptTrustRequest) Descriptor
deprecated
func (*AcceptTrustRequest) Descriptor() ([]byte, []int)
Deprecated: Use AcceptTrustRequest.ProtoReflect.Descriptor instead.
func (*AcceptTrustRequest) GetTrustId ¶
func (x *AcceptTrustRequest) GetTrustId() string
func (*AcceptTrustRequest) ProtoMessage ¶
func (*AcceptTrustRequest) ProtoMessage()
func (*AcceptTrustRequest) ProtoReflect ¶
func (x *AcceptTrustRequest) ProtoReflect() protoreflect.Message
func (*AcceptTrustRequest) Reset ¶
func (x *AcceptTrustRequest) Reset()
func (*AcceptTrustRequest) String ¶
func (x *AcceptTrustRequest) String() string
type AcceptTrustResponse ¶
type AcceptTrustResponse struct {
// contains filtered or unexported fields
}
Response message for the AcceptTrust RPC.
func (*AcceptTrustResponse) Descriptor
deprecated
func (*AcceptTrustResponse) Descriptor() ([]byte, []int)
Deprecated: Use AcceptTrustResponse.ProtoReflect.Descriptor instead.
func (*AcceptTrustResponse) ProtoMessage ¶
func (*AcceptTrustResponse) ProtoMessage()
func (*AcceptTrustResponse) ProtoReflect ¶
func (x *AcceptTrustResponse) ProtoReflect() protoreflect.Message
func (*AcceptTrustResponse) Reset ¶
func (x *AcceptTrustResponse) Reset()
func (*AcceptTrustResponse) String ¶
func (x *AcceptTrustResponse) String() string
type AssignTrustRequest ¶
type AssignTrustRequest struct { // ID of the trust being assigned. TrustId string `protobuf:"bytes,1,opt,name=trust_id,json=trustId,proto3" json:"trust_id,omitempty"` // List of user IDs to assign the trust to. UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
Request message for the AssignTrust RPC.
func (*AssignTrustRequest) Descriptor
deprecated
func (*AssignTrustRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignTrustRequest.ProtoReflect.Descriptor instead.
func (*AssignTrustRequest) GetTrustId ¶
func (x *AssignTrustRequest) GetTrustId() string
func (*AssignTrustRequest) GetUserIds ¶
func (x *AssignTrustRequest) GetUserIds() []string
func (*AssignTrustRequest) ProtoMessage ¶
func (*AssignTrustRequest) ProtoMessage()
func (*AssignTrustRequest) ProtoReflect ¶
func (x *AssignTrustRequest) ProtoReflect() protoreflect.Message
func (*AssignTrustRequest) Reset ¶
func (x *AssignTrustRequest) Reset()
func (*AssignTrustRequest) String ¶
func (x *AssignTrustRequest) String() string
type AssignTrustResponse ¶
type AssignTrustResponse struct {
// contains filtered or unexported fields
}
Response message for the AssignTrust RPC.
func (*AssignTrustResponse) Descriptor
deprecated
func (*AssignTrustResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignTrustResponse.ProtoReflect.Descriptor instead.
func (*AssignTrustResponse) ProtoMessage ¶
func (*AssignTrustResponse) ProtoMessage()
func (*AssignTrustResponse) ProtoReflect ¶
func (x *AssignTrustResponse) ProtoReflect() protoreflect.Message
func (*AssignTrustResponse) Reset ¶
func (x *AssignTrustResponse) Reset()
func (*AssignTrustResponse) String ¶
func (x *AssignTrustResponse) String() string
type CreateTrustRequest ¶
type CreateTrustRequest struct { // Org ID of the org recieving the trust. Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` // Name of the trust. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Description of the trust. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Permissions given through the trust Permissions []auth.Permission `protobuf:"varint,4,rep,packed,name=permissions,proto3,enum=api.commons.auth.Permission" json:"permissions,omitempty"` // IDs of labels associated with the given permissions. // NOTE: All given labels are applied to ALL given permissions. LabelIds []string `protobuf:"bytes,5,rep,name=label_ids,json=labelIds,proto3" json:"label_ids,omitempty"` // contains filtered or unexported fields }
Request message for the CreateTrust RPC.
func (*CreateTrustRequest) Descriptor
deprecated
func (*CreateTrustRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTrustRequest.ProtoReflect.Descriptor instead.
func (*CreateTrustRequest) GetDescription ¶
func (x *CreateTrustRequest) GetDescription() string
func (*CreateTrustRequest) GetGrantee ¶
func (x *CreateTrustRequest) GetGrantee() string
func (*CreateTrustRequest) GetLabelIds ¶
func (x *CreateTrustRequest) GetLabelIds() []string
func (*CreateTrustRequest) GetName ¶
func (x *CreateTrustRequest) GetName() string
func (*CreateTrustRequest) GetPermissions ¶
func (x *CreateTrustRequest) GetPermissions() []auth.Permission
func (*CreateTrustRequest) ProtoMessage ¶
func (*CreateTrustRequest) ProtoMessage()
func (*CreateTrustRequest) ProtoReflect ¶
func (x *CreateTrustRequest) ProtoReflect() protoreflect.Message
func (*CreateTrustRequest) Reset ¶
func (x *CreateTrustRequest) Reset()
func (*CreateTrustRequest) String ¶
func (x *CreateTrustRequest) String() string
type CreateTrustResponse ¶
type CreateTrustResponse struct { // ID of the created trust. TrustId string `protobuf:"bytes,1,opt,name=trust_id,json=trustId,proto3" json:"trust_id,omitempty"` // contains filtered or unexported fields }
Response message for the CreateTrust RPC.
func (*CreateTrustResponse) Descriptor
deprecated
func (*CreateTrustResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTrustResponse.ProtoReflect.Descriptor instead.
func (*CreateTrustResponse) GetTrustId ¶
func (x *CreateTrustResponse) GetTrustId() string
func (*CreateTrustResponse) ProtoMessage ¶
func (*CreateTrustResponse) ProtoMessage()
func (*CreateTrustResponse) ProtoReflect ¶
func (x *CreateTrustResponse) ProtoReflect() protoreflect.Message
func (*CreateTrustResponse) Reset ¶
func (x *CreateTrustResponse) Reset()
func (*CreateTrustResponse) String ¶
func (x *CreateTrustResponse) String() string
type DeleteTrustRequest ¶
type DeleteTrustRequest struct { // ID of the trust to be deleted. TrustId string `protobuf:"bytes,1,opt,name=trust_id,json=trustId,proto3" json:"trust_id,omitempty"` // contains filtered or unexported fields }
Request message for the DeleteTrust RPC.
func (*DeleteTrustRequest) Descriptor
deprecated
func (*DeleteTrustRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTrustRequest.ProtoReflect.Descriptor instead.
func (*DeleteTrustRequest) GetTrustId ¶
func (x *DeleteTrustRequest) GetTrustId() string
func (*DeleteTrustRequest) ProtoMessage ¶
func (*DeleteTrustRequest) ProtoMessage()
func (*DeleteTrustRequest) ProtoReflect ¶
func (x *DeleteTrustRequest) ProtoReflect() protoreflect.Message
func (*DeleteTrustRequest) Reset ¶
func (x *DeleteTrustRequest) Reset()
func (*DeleteTrustRequest) String ¶
func (x *DeleteTrustRequest) String() string
type DeleteTrustResponse ¶
type DeleteTrustResponse struct {
// contains filtered or unexported fields
}
Response message for the DeleteTrust RPC.
func (*DeleteTrustResponse) Descriptor
deprecated
func (*DeleteTrustResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTrustResponse.ProtoReflect.Descriptor instead.
func (*DeleteTrustResponse) ProtoMessage ¶
func (*DeleteTrustResponse) ProtoMessage()
func (*DeleteTrustResponse) ProtoReflect ¶
func (x *DeleteTrustResponse) ProtoReflect() protoreflect.Message
func (*DeleteTrustResponse) Reset ¶
func (x *DeleteTrustResponse) Reset()
func (*DeleteTrustResponse) String ¶
func (x *DeleteTrustResponse) String() string
type GetTrustRequest ¶
type GetTrustRequest struct { // ID of the trust being retrieved. TrustId string `protobuf:"bytes,1,opt,name=trust_id,json=trustId,proto3" json:"trust_id,omitempty"` // contains filtered or unexported fields }
Response message for the GetTrust RPC.
func (*GetTrustRequest) Descriptor
deprecated
func (*GetTrustRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTrustRequest.ProtoReflect.Descriptor instead.
func (*GetTrustRequest) GetTrustId ¶
func (x *GetTrustRequest) GetTrustId() string
func (*GetTrustRequest) ProtoMessage ¶
func (*GetTrustRequest) ProtoMessage()
func (*GetTrustRequest) ProtoReflect ¶
func (x *GetTrustRequest) ProtoReflect() protoreflect.Message
func (*GetTrustRequest) Reset ¶
func (x *GetTrustRequest) Reset()
func (*GetTrustRequest) String ¶
func (x *GetTrustRequest) String() string
type GetTrustResponse ¶
type GetTrustResponse struct { // Retrieved trust. Trust *org.Trust `protobuf:"bytes,1,opt,name=trust,proto3" json:"trust,omitempty"` // Name of the Grantor org. GrantorName string `protobuf:"bytes,2,opt,name=grantor_name,json=grantorName,proto3" json:"grantor_name,omitempty"` // Name of the Grantee org. GranteeName string `protobuf:"bytes,3,opt,name=grantee_name,json=granteeName,proto3" json:"grantee_name,omitempty"` // contains filtered or unexported fields }
Response message for the GetTrust RPC.
func (*GetTrustResponse) Descriptor
deprecated
func (*GetTrustResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTrustResponse.ProtoReflect.Descriptor instead.
func (*GetTrustResponse) GetGranteeName ¶
func (x *GetTrustResponse) GetGranteeName() string
func (*GetTrustResponse) GetGrantorName ¶
func (x *GetTrustResponse) GetGrantorName() string
func (*GetTrustResponse) GetTrust ¶
func (x *GetTrustResponse) GetTrust() *org.Trust
func (*GetTrustResponse) ProtoMessage ¶
func (*GetTrustResponse) ProtoMessage()
func (*GetTrustResponse) ProtoReflect ¶
func (x *GetTrustResponse) ProtoReflect() protoreflect.Message
func (*GetTrustResponse) Reset ¶
func (x *GetTrustResponse) Reset()
func (*GetTrustResponse) String ¶
func (x *GetTrustResponse) String() string
type ListAssignableTrustsRequest ¶
type ListAssignableTrustsRequest struct {
// contains filtered or unexported fields
}
Request message for the CreateTrust RPC.
func (*ListAssignableTrustsRequest) Descriptor
deprecated
func (*ListAssignableTrustsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAssignableTrustsRequest.ProtoReflect.Descriptor instead.
func (*ListAssignableTrustsRequest) ProtoMessage ¶
func (*ListAssignableTrustsRequest) ProtoMessage()
func (*ListAssignableTrustsRequest) ProtoReflect ¶
func (x *ListAssignableTrustsRequest) ProtoReflect() protoreflect.Message
func (*ListAssignableTrustsRequest) Reset ¶
func (x *ListAssignableTrustsRequest) Reset()
func (*ListAssignableTrustsRequest) String ¶
func (x *ListAssignableTrustsRequest) String() string
type ListAssignableTrustsResponse ¶
type ListAssignableTrustsResponse struct { // List of trusts. Trusts []*ListTrustsResponsePayload `protobuf:"bytes,1,rep,name=trusts,proto3" json:"trusts,omitempty"` // contains filtered or unexported fields }
Response message for the CreateTrust RPC.
func (*ListAssignableTrustsResponse) Descriptor
deprecated
func (*ListAssignableTrustsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAssignableTrustsResponse.ProtoReflect.Descriptor instead.
func (*ListAssignableTrustsResponse) GetTrusts ¶
func (x *ListAssignableTrustsResponse) GetTrusts() []*ListTrustsResponsePayload
func (*ListAssignableTrustsResponse) ProtoMessage ¶
func (*ListAssignableTrustsResponse) ProtoMessage()
func (*ListAssignableTrustsResponse) ProtoReflect ¶
func (x *ListAssignableTrustsResponse) ProtoReflect() protoreflect.Message
func (*ListAssignableTrustsResponse) Reset ¶
func (x *ListAssignableTrustsResponse) Reset()
func (*ListAssignableTrustsResponse) String ¶
func (x *ListAssignableTrustsResponse) String() string
type ListGivenTrustsRequest ¶
type ListGivenTrustsRequest struct {
// contains filtered or unexported fields
}
Request message for the ListGivenTrusts RPC.
func (*ListGivenTrustsRequest) Descriptor
deprecated
func (*ListGivenTrustsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListGivenTrustsRequest.ProtoReflect.Descriptor instead.
func (*ListGivenTrustsRequest) ProtoMessage ¶
func (*ListGivenTrustsRequest) ProtoMessage()
func (*ListGivenTrustsRequest) ProtoReflect ¶
func (x *ListGivenTrustsRequest) ProtoReflect() protoreflect.Message
func (*ListGivenTrustsRequest) Reset ¶
func (x *ListGivenTrustsRequest) Reset()
func (*ListGivenTrustsRequest) String ¶
func (x *ListGivenTrustsRequest) String() string
type ListGivenTrustsResponse ¶
type ListGivenTrustsResponse struct { // List of trusts. Trusts []*ListTrustsResponsePayload `protobuf:"bytes,1,rep,name=trusts,proto3" json:"trusts,omitempty"` // contains filtered or unexported fields }
Response message for the ListGivenTrusts RPC.
func (*ListGivenTrustsResponse) Descriptor
deprecated
func (*ListGivenTrustsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListGivenTrustsResponse.ProtoReflect.Descriptor instead.
func (*ListGivenTrustsResponse) GetTrusts ¶
func (x *ListGivenTrustsResponse) GetTrusts() []*ListTrustsResponsePayload
func (*ListGivenTrustsResponse) ProtoMessage ¶
func (*ListGivenTrustsResponse) ProtoMessage()
func (*ListGivenTrustsResponse) ProtoReflect ¶
func (x *ListGivenTrustsResponse) ProtoReflect() protoreflect.Message
func (*ListGivenTrustsResponse) Reset ¶
func (x *ListGivenTrustsResponse) Reset()
func (*ListGivenTrustsResponse) String ¶
func (x *ListGivenTrustsResponse) String() string
type ListIncomingTrustsRequest ¶
type ListIncomingTrustsRequest struct {
// contains filtered or unexported fields
}
Request message for the ListIncomingTrusts RPC.
func (*ListIncomingTrustsRequest) Descriptor
deprecated
func (*ListIncomingTrustsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListIncomingTrustsRequest.ProtoReflect.Descriptor instead.
func (*ListIncomingTrustsRequest) ProtoMessage ¶
func (*ListIncomingTrustsRequest) ProtoMessage()
func (*ListIncomingTrustsRequest) ProtoReflect ¶
func (x *ListIncomingTrustsRequest) ProtoReflect() protoreflect.Message
func (*ListIncomingTrustsRequest) Reset ¶
func (x *ListIncomingTrustsRequest) Reset()
func (*ListIncomingTrustsRequest) String ¶
func (x *ListIncomingTrustsRequest) String() string
type ListIncomingTrustsResponse ¶
type ListIncomingTrustsResponse struct { // List of trusts. Trusts []*ListTrustsResponsePayload `protobuf:"bytes,1,rep,name=trusts,proto3" json:"trusts,omitempty"` // contains filtered or unexported fields }
Response message for the ListIncomingTrusts RPC.
func (*ListIncomingTrustsResponse) Descriptor
deprecated
func (*ListIncomingTrustsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListIncomingTrustsResponse.ProtoReflect.Descriptor instead.
func (*ListIncomingTrustsResponse) GetTrusts ¶
func (x *ListIncomingTrustsResponse) GetTrusts() []*ListTrustsResponsePayload
func (*ListIncomingTrustsResponse) ProtoMessage ¶
func (*ListIncomingTrustsResponse) ProtoMessage()
func (*ListIncomingTrustsResponse) ProtoReflect ¶
func (x *ListIncomingTrustsResponse) ProtoReflect() protoreflect.Message
func (*ListIncomingTrustsResponse) Reset ¶
func (x *ListIncomingTrustsResponse) Reset()
func (*ListIncomingTrustsResponse) String ¶
func (x *ListIncomingTrustsResponse) String() string
type ListTrustsResponsePayload ¶
type ListTrustsResponsePayload struct { // Trust response Trust *org.Trust `protobuf:"bytes,1,opt,name=trust,proto3" json:"trust,omitempty"` // Grantor of Trust GrantorName string `protobuf:"bytes,2,opt,name=grantor_name,json=grantorName,proto3" json:"grantor_name,omitempty"` // Grantee of Trust GranteeName string `protobuf:"bytes,3,opt,name=grantee_name,json=granteeName,proto3" json:"grantee_name,omitempty"` // contains filtered or unexported fields }
Payload for list trust responses
func (*ListTrustsResponsePayload) Descriptor
deprecated
func (*ListTrustsResponsePayload) Descriptor() ([]byte, []int)
Deprecated: Use ListTrustsResponsePayload.ProtoReflect.Descriptor instead.
func (*ListTrustsResponsePayload) GetGranteeName ¶
func (x *ListTrustsResponsePayload) GetGranteeName() string
func (*ListTrustsResponsePayload) GetGrantorName ¶
func (x *ListTrustsResponsePayload) GetGrantorName() string
func (*ListTrustsResponsePayload) GetTrust ¶
func (x *ListTrustsResponsePayload) GetTrust() *org.Trust
func (*ListTrustsResponsePayload) ProtoMessage ¶
func (*ListTrustsResponsePayload) ProtoMessage()
func (*ListTrustsResponsePayload) ProtoReflect ¶
func (x *ListTrustsResponsePayload) ProtoReflect() protoreflect.Message
func (*ListTrustsResponsePayload) Reset ¶
func (x *ListTrustsResponsePayload) Reset()
func (*ListTrustsResponsePayload) String ¶
func (x *ListTrustsResponsePayload) String() string
type RejectTrustRequest ¶
type RejectTrustRequest struct { // ID of the trust being rejected. TrustId string `protobuf:"bytes,1,opt,name=trust_id,json=trustId,proto3" json:"trust_id,omitempty"` // contains filtered or unexported fields }
Request message for the RejectTrust RPC.
func (*RejectTrustRequest) Descriptor
deprecated
func (*RejectTrustRequest) Descriptor() ([]byte, []int)
Deprecated: Use RejectTrustRequest.ProtoReflect.Descriptor instead.
func (*RejectTrustRequest) GetTrustId ¶
func (x *RejectTrustRequest) GetTrustId() string
func (*RejectTrustRequest) ProtoMessage ¶
func (*RejectTrustRequest) ProtoMessage()
func (*RejectTrustRequest) ProtoReflect ¶
func (x *RejectTrustRequest) ProtoReflect() protoreflect.Message
func (*RejectTrustRequest) Reset ¶
func (x *RejectTrustRequest) Reset()
func (*RejectTrustRequest) String ¶
func (x *RejectTrustRequest) String() string
type RejectTrustResponse ¶
type RejectTrustResponse struct {
// contains filtered or unexported fields
}
Response message for the RejectTrust RPC.
func (*RejectTrustResponse) Descriptor
deprecated
func (*RejectTrustResponse) Descriptor() ([]byte, []int)
Deprecated: Use RejectTrustResponse.ProtoReflect.Descriptor instead.
func (*RejectTrustResponse) ProtoMessage ¶
func (*RejectTrustResponse) ProtoMessage()
func (*RejectTrustResponse) ProtoReflect ¶
func (x *RejectTrustResponse) ProtoReflect() protoreflect.Message
func (*RejectTrustResponse) Reset ¶
func (x *RejectTrustResponse) Reset()
func (*RejectTrustResponse) String ¶
func (x *RejectTrustResponse) String() string
type TrustsServiceClient ¶
type TrustsServiceClient interface { // CreateTrust creates a new trust. CreateTrust(ctx context.Context, in *org.CreateTrustRequest, opts ...grpc.CallOption) (*org.CreateTrustResponse, error) // AcceptTrust accepts an incoming trust. AcceptTrust(ctx context.Context, in *org.AcceptTrustRequest, opts ...grpc.CallOption) (*org.AcceptTrustResponse, error) // RejectTrust rejects an incoming trust. RejectTrust(ctx context.Context, in *org.RejectTrustRequest, opts ...grpc.CallOption) (*org.RejectTrustResponse, error) // GetTrust returns a single trust by trust id. GetTrust(ctx context.Context, in *org.GetTrustRequest, opts ...grpc.CallOption) (*org.GetTrustResponse, error) // ListIncomingTrusts returns all pending trusts that are being granted // to the org of the currently logged in user. ListIncomingTrusts(ctx context.Context, in *org.ListIncomingTrustsRequest, opts ...grpc.CallOption) (*org.ListIncomingTrustsResponse, error) // ListGivenTrusts returns all trusts that have been given out for // the currently logged in user's org. The returned list will contain // accepted, pending, and rejected trusts. ListGivenTrusts(ctx context.Context, in *org.ListGivenTrustsRequest, opts ...grpc.CallOption) (*org.ListGivenTrustsResponse, error) // ListAssignableTrusts returns all accepted trusts that are being granted // to the org of the currently logged in user. ListAssignableTrusts(ctx context.Context, in *org.ListAssignableTrustsRequest, opts ...grpc.CallOption) (*org.ListAssignableTrustsResponse, error) // DeleteTrust deletes a trust by trust id. Only trusts where the current // org is the grantor can be deleted by this endpoint. DeleteTrust(ctx context.Context, in *org.DeleteTrustRequest, opts ...grpc.CallOption) (*org.DeleteTrustResponse, error) // AssignTrust assigns a trust to the given user ids. AssignTrust(ctx context.Context, in *org.AssignTrustRequest, opts ...grpc.CallOption) (*org.AssignTrustResponse, error) // UnassignTrust unassigns a trust from the given user id. UnassignTrust(ctx context.Context, in *org.UnassignTrustRequest, opts ...grpc.CallOption) (*org.UnassignTrustResponse, error) }
TrustsServiceClient is the client API for TrustsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTrustsServiceClient ¶
func NewTrustsServiceClient(cc grpc.ClientConnInterface) TrustsServiceClient
type TrustsServiceServer ¶
type TrustsServiceServer interface { // CreateTrust creates a new trust. CreateTrust(context.Context, *org.CreateTrustRequest) (*org.CreateTrustResponse, error) // AcceptTrust accepts an incoming trust. AcceptTrust(context.Context, *org.AcceptTrustRequest) (*org.AcceptTrustResponse, error) // RejectTrust rejects an incoming trust. RejectTrust(context.Context, *org.RejectTrustRequest) (*org.RejectTrustResponse, error) // GetTrust returns a single trust by trust id. GetTrust(context.Context, *org.GetTrustRequest) (*org.GetTrustResponse, error) // ListIncomingTrusts returns all pending trusts that are being granted // to the org of the currently logged in user. ListIncomingTrusts(context.Context, *org.ListIncomingTrustsRequest) (*org.ListIncomingTrustsResponse, error) // ListGivenTrusts returns all trusts that have been given out for // the currently logged in user's org. The returned list will contain // accepted, pending, and rejected trusts. ListGivenTrusts(context.Context, *org.ListGivenTrustsRequest) (*org.ListGivenTrustsResponse, error) // ListAssignableTrusts returns all accepted trusts that are being granted // to the org of the currently logged in user. ListAssignableTrusts(context.Context, *org.ListAssignableTrustsRequest) (*org.ListAssignableTrustsResponse, error) // DeleteTrust deletes a trust by trust id. Only trusts where the current // org is the grantor can be deleted by this endpoint. DeleteTrust(context.Context, *org.DeleteTrustRequest) (*org.DeleteTrustResponse, error) // AssignTrust assigns a trust to the given user ids. AssignTrust(context.Context, *org.AssignTrustRequest) (*org.AssignTrustResponse, error) // UnassignTrust unassigns a trust from the given user id. UnassignTrust(context.Context, *org.UnassignTrustRequest) (*org.UnassignTrustResponse, error) // contains filtered or unexported methods }
TrustsServiceServer is the server API for TrustsService service. All implementations must embed UnimplementedTrustsServiceServer for forward compatibility.
type UnassignTrustRequest ¶
type UnassignTrustRequest struct { // ID of the trust being unassigned. TrustId string `protobuf:"bytes,1,opt,name=trust_id,json=trustId,proto3" json:"trust_id,omitempty"` // User ID to unassign the trust from. UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
Request message for the UnassignTrust RPC.
func (*UnassignTrustRequest) Descriptor
deprecated
func (*UnassignTrustRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnassignTrustRequest.ProtoReflect.Descriptor instead.
func (*UnassignTrustRequest) GetTrustId ¶
func (x *UnassignTrustRequest) GetTrustId() string
func (*UnassignTrustRequest) GetUserId ¶
func (x *UnassignTrustRequest) GetUserId() string
func (*UnassignTrustRequest) ProtoMessage ¶
func (*UnassignTrustRequest) ProtoMessage()
func (*UnassignTrustRequest) ProtoReflect ¶
func (x *UnassignTrustRequest) ProtoReflect() protoreflect.Message
func (*UnassignTrustRequest) Reset ¶
func (x *UnassignTrustRequest) Reset()
func (*UnassignTrustRequest) String ¶
func (x *UnassignTrustRequest) String() string
type UnassignTrustResponse ¶
type UnassignTrustResponse struct {
// contains filtered or unexported fields
}
Response message for the UnassignTrust RPC.
func (*UnassignTrustResponse) Descriptor
deprecated
func (*UnassignTrustResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnassignTrustResponse.ProtoReflect.Descriptor instead.
func (*UnassignTrustResponse) ProtoMessage ¶
func (*UnassignTrustResponse) ProtoMessage()
func (*UnassignTrustResponse) ProtoReflect ¶
func (x *UnassignTrustResponse) ProtoReflect() protoreflect.Message
func (*UnassignTrustResponse) Reset ¶
func (x *UnassignTrustResponse) Reset()
func (*UnassignTrustResponse) String ¶
func (x *UnassignTrustResponse) String() string
type UnimplementedTrustsServiceServer ¶
type UnimplementedTrustsServiceServer struct{}
UnimplementedTrustsServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTrustsServiceServer) AcceptTrust ¶
func (UnimplementedTrustsServiceServer) AcceptTrust(context.Context, *org.AcceptTrustRequest) (*org.AcceptTrustResponse, error)
func (UnimplementedTrustsServiceServer) AssignTrust ¶
func (UnimplementedTrustsServiceServer) AssignTrust(context.Context, *org.AssignTrustRequest) (*org.AssignTrustResponse, error)
func (UnimplementedTrustsServiceServer) CreateTrust ¶
func (UnimplementedTrustsServiceServer) CreateTrust(context.Context, *org.CreateTrustRequest) (*org.CreateTrustResponse, error)
func (UnimplementedTrustsServiceServer) DeleteTrust ¶
func (UnimplementedTrustsServiceServer) DeleteTrust(context.Context, *org.DeleteTrustRequest) (*org.DeleteTrustResponse, error)
func (UnimplementedTrustsServiceServer) GetTrust ¶
func (UnimplementedTrustsServiceServer) GetTrust(context.Context, *org.GetTrustRequest) (*org.GetTrustResponse, error)
func (UnimplementedTrustsServiceServer) ListAssignableTrusts ¶
func (UnimplementedTrustsServiceServer) ListAssignableTrusts(context.Context, *org.ListAssignableTrustsRequest) (*org.ListAssignableTrustsResponse, error)
func (UnimplementedTrustsServiceServer) ListGivenTrusts ¶
func (UnimplementedTrustsServiceServer) ListGivenTrusts(context.Context, *org.ListGivenTrustsRequest) (*org.ListGivenTrustsResponse, error)
func (UnimplementedTrustsServiceServer) ListIncomingTrusts ¶
func (UnimplementedTrustsServiceServer) ListIncomingTrusts(context.Context, *org.ListIncomingTrustsRequest) (*org.ListIncomingTrustsResponse, error)
func (UnimplementedTrustsServiceServer) RejectTrust ¶
func (UnimplementedTrustsServiceServer) RejectTrust(context.Context, *org.RejectTrustRequest) (*org.RejectTrustResponse, error)
func (UnimplementedTrustsServiceServer) UnassignTrust ¶
func (UnimplementedTrustsServiceServer) UnassignTrust(context.Context, *org.UnassignTrustRequest) (*org.UnassignTrustResponse, error)
type UnsafeTrustsServiceServer ¶
type UnsafeTrustsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTrustsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrustsServiceServer will result in compilation errors.