account

package
v0.8.48 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 18 Imported by: 5

Documentation

Overview

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var Account_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aserto.tenant.account.v1.Account",
	HandlerType: (*AccountServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAccount",
			Handler:    _Account_GetAccount_Handler,
		},
		{
			MethodName: "ListInvites",
			Handler:    _Account_ListInvites_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _Account_UpdateAccount_Handler,
		},
		{
			MethodName: "SignupAccount",
			Handler:    _Account_SignupAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aserto/tenant/account/v1/account.proto",
}

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

View Source
var File_aserto_tenant_account_v1_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountHandler

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

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

func RegisterAccountHandlerClient

func RegisterAccountHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountClient) error

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

func RegisterAccountHandlerFromEndpoint

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

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

func RegisterAccountHandlerServer

func RegisterAccountHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServer) error

RegisterAccountHandlerServer registers the http handlers for service Account to "mux". UnaryRPC :call AccountServer 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 RegisterAccountHandlerFromEndpoint instead.

func RegisterAccountServer

func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
	ListInvites(ctx context.Context, in *ListInvitesRequest, opts ...grpc.CallOption) (*ListInvitesResponse, error)
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error)
	SignupAccount(ctx context.Context, in *SignupAccountRequest, opts ...grpc.CallOption) (*SignupAccountResponse, error)
}

AccountClient is the client API for Account 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 NewAccountClient

func NewAccountClient(cc grpc.ClientConnInterface) AccountClient

type AccountServer

AccountServer is the server API for Account service. All implementations should embed UnimplementedAccountServer for forward compatibility

type GetAccountRequest

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

func (*GetAccountRequest) Descriptor deprecated

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

Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.

func (*GetAccountRequest) ProtoMessage

func (*GetAccountRequest) ProtoMessage()

func (*GetAccountRequest) ProtoReflect

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

func (*GetAccountRequest) Reset

func (x *GetAccountRequest) Reset()

func (*GetAccountRequest) String

func (x *GetAccountRequest) String() string

type GetAccountResponse

type GetAccountResponse struct {
	Result *v1.Account `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountResponse) Descriptor deprecated

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

Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.

func (*GetAccountResponse) GetResult

func (x *GetAccountResponse) GetResult() *v1.Account

func (*GetAccountResponse) ProtoMessage

func (*GetAccountResponse) ProtoMessage()

func (*GetAccountResponse) ProtoReflect

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

func (*GetAccountResponse) Reset

func (x *GetAccountResponse) Reset()

func (*GetAccountResponse) String

func (x *GetAccountResponse) String() string

type ListInvitesRequest

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

func (*ListInvitesRequest) Descriptor deprecated

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

Deprecated: Use ListInvitesRequest.ProtoReflect.Descriptor instead.

func (*ListInvitesRequest) ProtoMessage

func (*ListInvitesRequest) ProtoMessage()

func (*ListInvitesRequest) ProtoReflect

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

func (*ListInvitesRequest) Reset

func (x *ListInvitesRequest) Reset()

func (*ListInvitesRequest) String

func (x *ListInvitesRequest) String() string

type ListInvitesResponse

type ListInvitesResponse struct {
	Results []*TenantInvite `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInvitesResponse) Descriptor deprecated

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

Deprecated: Use ListInvitesResponse.ProtoReflect.Descriptor instead.

func (*ListInvitesResponse) GetResults

func (x *ListInvitesResponse) GetResults() []*TenantInvite

func (*ListInvitesResponse) ProtoMessage

func (*ListInvitesResponse) ProtoMessage()

func (*ListInvitesResponse) ProtoReflect

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

func (*ListInvitesResponse) Reset

func (x *ListInvitesResponse) Reset()

func (*ListInvitesResponse) String

func (x *ListInvitesResponse) String() string

type SignupAccountRequest

type SignupAccountRequest struct {
	Email     string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Recaptcha string `protobuf:"bytes,2,opt,name=recaptcha,proto3" json:"recaptcha,omitempty"`
	// contains filtered or unexported fields
}

func (*SignupAccountRequest) Descriptor deprecated

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

Deprecated: Use SignupAccountRequest.ProtoReflect.Descriptor instead.

func (*SignupAccountRequest) GetEmail

func (x *SignupAccountRequest) GetEmail() string

func (*SignupAccountRequest) GetRecaptcha

func (x *SignupAccountRequest) GetRecaptcha() string

func (*SignupAccountRequest) ProtoMessage

func (*SignupAccountRequest) ProtoMessage()

func (*SignupAccountRequest) ProtoReflect

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

func (*SignupAccountRequest) Reset

func (x *SignupAccountRequest) Reset()

func (*SignupAccountRequest) String

func (x *SignupAccountRequest) String() string

type SignupAccountResponse

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

func (*SignupAccountResponse) Descriptor deprecated

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

Deprecated: Use SignupAccountResponse.ProtoReflect.Descriptor instead.

func (*SignupAccountResponse) ProtoMessage

func (*SignupAccountResponse) ProtoMessage()

func (*SignupAccountResponse) ProtoReflect

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

func (*SignupAccountResponse) Reset

func (x *SignupAccountResponse) Reset()

func (*SignupAccountResponse) String

func (x *SignupAccountResponse) String() string

type TenantInvite

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

func (*TenantInvite) Descriptor deprecated

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

Deprecated: Use TenantInvite.ProtoReflect.Descriptor instead.

func (*TenantInvite) GetInvite

func (x *TenantInvite) GetInvite() *v1.Invite

func (*TenantInvite) GetTenant

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

func (*TenantInvite) ProtoMessage

func (*TenantInvite) ProtoMessage()

func (*TenantInvite) ProtoReflect

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

func (*TenantInvite) Reset

func (x *TenantInvite) Reset()

func (*TenantInvite) String

func (x *TenantInvite) String() string

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer should be embedded to have forward compatible implementations.

func (UnimplementedAccountServer) GetAccount

func (UnimplementedAccountServer) ListInvites

func (UnimplementedAccountServer) SignupAccount

func (UnimplementedAccountServer) UpdateAccount

type UnsafeAccountServer

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

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

type UpdateAccountRequest

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

func (*UpdateAccountRequest) Descriptor deprecated

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

Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest) GetAccount

func (x *UpdateAccountRequest) GetAccount() *v1.Account

func (*UpdateAccountRequest) ProtoMessage

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) ProtoReflect

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

func (*UpdateAccountRequest) Reset

func (x *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String

func (x *UpdateAccountRequest) String() string

type UpdateAccountResponse

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

func (*UpdateAccountResponse) Descriptor deprecated

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

Deprecated: Use UpdateAccountResponse.ProtoReflect.Descriptor instead.

func (*UpdateAccountResponse) ProtoMessage

func (*UpdateAccountResponse) ProtoMessage()

func (*UpdateAccountResponse) ProtoReflect

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

func (*UpdateAccountResponse) Reset

func (x *UpdateAccountResponse) Reset()

func (*UpdateAccountResponse) String

func (x *UpdateAccountResponse) String() string

Jump to

Keyboard shortcuts

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