profile

package
v0.8.63 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Overview

Package profile is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Profile_GetProfile_FullMethodName      = "/aserto.tenant.profile.v1.Profile/GetProfile"
	Profile_GetInvites_FullMethodName      = "/aserto.tenant.profile.v1.Profile/GetInvites"
	Profile_InviteUser_FullMethodName      = "/aserto.tenant.profile.v1.Profile/InviteUser"
	Profile_RespondToInvite_FullMethodName = "/aserto.tenant.profile.v1.Profile/RespondToInvite"
	Profile_RemoveMember_FullMethodName    = "/aserto.tenant.profile.v1.Profile/RemoveMember"
)

Variables

View Source
var File_aserto_tenant_profile_v1_profile_proto protoreflect.FileDescriptor
View Source
var Profile_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aserto.tenant.profile.v1.Profile",
	HandlerType: (*ProfileServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetProfile",
			Handler:    _Profile_GetProfile_Handler,
		},
		{
			MethodName: "GetInvites",
			Handler:    _Profile_GetInvites_Handler,
		},
		{
			MethodName: "InviteUser",
			Handler:    _Profile_InviteUser_Handler,
		},
		{
			MethodName: "RespondToInvite",
			Handler:    _Profile_RespondToInvite_Handler,
		},
		{
			MethodName: "RemoveMember",
			Handler:    _Profile_RemoveMember_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aserto/tenant/profile/v1/profile.proto",
}

Profile_ServiceDesc is the grpc.ServiceDesc for Profile service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterProfileHandler

func RegisterProfileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProfileHandler registers the http handlers for service Profile to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProfileHandlerClient

func RegisterProfileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfileClient) error

RegisterProfileHandlerClient registers the http handlers for service Profile to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfileClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfileClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfileClient" to call the correct interceptors.

func RegisterProfileHandlerFromEndpoint

func RegisterProfileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProfileHandlerFromEndpoint is same as RegisterProfileHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProfileHandlerServer

func RegisterProfileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfileServer) error

RegisterProfileHandlerServer registers the http handlers for service Profile to "mux". UnaryRPC :call ProfileServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProfileHandlerFromEndpoint instead.

func RegisterProfileServer

func RegisterProfileServer(s grpc.ServiceRegistrar, srv ProfileServer)

Types

type GetInvitesRequest

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

func (*GetInvitesRequest) Descriptor deprecated

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

Deprecated: Use GetInvitesRequest.ProtoReflect.Descriptor instead.

func (*GetInvitesRequest) ProtoMessage

func (*GetInvitesRequest) ProtoMessage()

func (*GetInvitesRequest) ProtoReflect

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

func (*GetInvitesRequest) Reset

func (x *GetInvitesRequest) Reset()

func (*GetInvitesRequest) String

func (x *GetInvitesRequest) String() string

type GetInvitesResponse

type GetInvitesResponse struct {
	Invites []*v1.Invite `protobuf:"bytes,1,rep,name=invites,proto3" json:"invites,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInvitesResponse) Descriptor deprecated

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

Deprecated: Use GetInvitesResponse.ProtoReflect.Descriptor instead.

func (*GetInvitesResponse) GetInvites

func (x *GetInvitesResponse) GetInvites() []*v1.Invite

func (*GetInvitesResponse) ProtoMessage

func (*GetInvitesResponse) ProtoMessage()

func (*GetInvitesResponse) ProtoReflect

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

func (*GetInvitesResponse) Reset

func (x *GetInvitesResponse) Reset()

func (*GetInvitesResponse) String

func (x *GetInvitesResponse) String() string

type GetProfileRequest

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

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

type GetProfileResponse

type GetProfileResponse struct {
	Tenant *v1.Tenant `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileResponse) Descriptor deprecated

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

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetTenant

func (x *GetProfileResponse) GetTenant() *v1.Tenant

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

type InviteUserRequest

type InviteUserRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // email from auth0
	Role  string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`   // role assigned to the user on accept
	// contains filtered or unexported fields
}

func (*InviteUserRequest) Descriptor deprecated

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

Deprecated: Use InviteUserRequest.ProtoReflect.Descriptor instead.

func (*InviteUserRequest) GetEmail

func (x *InviteUserRequest) GetEmail() string

func (*InviteUserRequest) GetRole

func (x *InviteUserRequest) GetRole() string

func (*InviteUserRequest) ProtoMessage

func (*InviteUserRequest) ProtoMessage()

func (*InviteUserRequest) ProtoReflect

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

func (*InviteUserRequest) Reset

func (x *InviteUserRequest) Reset()

func (*InviteUserRequest) String

func (x *InviteUserRequest) String() string

type InviteUserResponse

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

func (*InviteUserResponse) Descriptor deprecated

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

Deprecated: Use InviteUserResponse.ProtoReflect.Descriptor instead.

func (*InviteUserResponse) GetId

func (x *InviteUserResponse) GetId() string

func (*InviteUserResponse) ProtoMessage

func (*InviteUserResponse) ProtoMessage()

func (*InviteUserResponse) ProtoReflect

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

func (*InviteUserResponse) Reset

func (x *InviteUserResponse) Reset()

func (*InviteUserResponse) String

func (x *InviteUserResponse) String() string

type ProfileClient

type ProfileClient interface {
	GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error)
	GetInvites(ctx context.Context, in *GetInvitesRequest, opts ...grpc.CallOption) (*GetInvitesResponse, error)
	InviteUser(ctx context.Context, in *InviteUserRequest, opts ...grpc.CallOption) (*InviteUserResponse, error)
	RespondToInvite(ctx context.Context, in *RespondToInviteRequest, opts ...grpc.CallOption) (*RespondToInviteResponse, error)
	RemoveMember(ctx context.Context, in *RemoveMemberRequest, opts ...grpc.CallOption) (*RemoveMemberResponse, error)
}

ProfileClient is the client API for Profile 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 NewProfileClient

func NewProfileClient(cc grpc.ClientConnInterface) ProfileClient

type ProfileServer

ProfileServer is the server API for Profile service. All implementations should embed UnimplementedProfileServer for forward compatibility

type RemoveMemberRequest

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

func (*RemoveMemberRequest) Descriptor deprecated

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

Deprecated: Use RemoveMemberRequest.ProtoReflect.Descriptor instead.

func (*RemoveMemberRequest) GetAccountId

func (x *RemoveMemberRequest) GetAccountId() string

func (*RemoveMemberRequest) ProtoMessage

func (*RemoveMemberRequest) ProtoMessage()

func (*RemoveMemberRequest) ProtoReflect

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

func (*RemoveMemberRequest) Reset

func (x *RemoveMemberRequest) Reset()

func (*RemoveMemberRequest) String

func (x *RemoveMemberRequest) String() string

type RemoveMemberResponse

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

func (*RemoveMemberResponse) Descriptor deprecated

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

Deprecated: Use RemoveMemberResponse.ProtoReflect.Descriptor instead.

func (*RemoveMemberResponse) ProtoMessage

func (*RemoveMemberResponse) ProtoMessage()

func (*RemoveMemberResponse) ProtoReflect

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

func (*RemoveMemberResponse) Reset

func (x *RemoveMemberResponse) Reset()

func (*RemoveMemberResponse) String

func (x *RemoveMemberResponse) String() string

type RespondToInviteRequest

type RespondToInviteRequest struct {
	Id     string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status v1.InviteStatus `protobuf:"varint,2,opt,name=status,proto3,enum=aserto.api.v1.InviteStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*RespondToInviteRequest) Descriptor deprecated

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

Deprecated: Use RespondToInviteRequest.ProtoReflect.Descriptor instead.

func (*RespondToInviteRequest) GetId

func (x *RespondToInviteRequest) GetId() string

func (*RespondToInviteRequest) GetStatus

func (x *RespondToInviteRequest) GetStatus() v1.InviteStatus

func (*RespondToInviteRequest) ProtoMessage

func (*RespondToInviteRequest) ProtoMessage()

func (*RespondToInviteRequest) ProtoReflect

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

func (*RespondToInviteRequest) Reset

func (x *RespondToInviteRequest) Reset()

func (*RespondToInviteRequest) String

func (x *RespondToInviteRequest) String() string

type RespondToInviteResponse

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

func (*RespondToInviteResponse) Descriptor deprecated

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

Deprecated: Use RespondToInviteResponse.ProtoReflect.Descriptor instead.

func (*RespondToInviteResponse) ProtoMessage

func (*RespondToInviteResponse) ProtoMessage()

func (*RespondToInviteResponse) ProtoReflect

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

func (*RespondToInviteResponse) Reset

func (x *RespondToInviteResponse) Reset()

func (*RespondToInviteResponse) String

func (x *RespondToInviteResponse) String() string

type UnimplementedProfileServer

type UnimplementedProfileServer struct {
}

UnimplementedProfileServer should be embedded to have forward compatible implementations.

func (UnimplementedProfileServer) GetInvites

func (UnimplementedProfileServer) GetProfile

func (UnimplementedProfileServer) InviteUser

func (UnimplementedProfileServer) RemoveMember

func (UnimplementedProfileServer) RespondToInvite

type UnsafeProfileServer

type UnsafeProfileServer interface {
	// contains filtered or unexported methods
}

UnsafeProfileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProfileServer will result in compilation errors.

Jump to

Keyboard shortcuts

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