v1

package
v0.3.50 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tadpole.account_service.v1.AccountService",
	HandlerType: (*AccountServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrganization",
			Handler:    _AccountService_CreateOrganization_Handler,
		},
		{
			MethodName: "UpdateOrganization",
			Handler:    _AccountService_UpdateOrganization_Handler,
		},
		{
			MethodName: "GetMyOrganization",
			Handler:    _AccountService_GetMyOrganization_Handler,
		},
		{
			MethodName: "AddAccount",
			Handler:    _AccountService_AddAccount_Handler,
		},
		{
			MethodName: "UpdateAccount",
			Handler:    _AccountService_UpdateAccount_Handler,
		},
		{
			MethodName: "GetAccountByHandshake",
			Handler:    _AccountService_GetAccountByHandshake_Handler,
		},
		{
			MethodName: "GetAccounts",
			Handler:    _AccountService_GetAccounts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tadpole/account-service/v1/account.proto",
}

AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService 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_tadpole_account_service_v1_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)

Types

type Account

type Account struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name           string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IsActive       bool   `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	OrganizationId string `protobuf:"bytes,4,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetIsActive

func (x *Account) GetIsActive() bool

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetOrganizationId added in v0.3.42

func (x *Account) GetOrganizationId() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountServiceClient

type AccountServiceClient interface {
	CreateOrganization(ctx context.Context, in *CreateOrganizationRequest, opts ...grpc.CallOption) (*CreateOrganizationResponse, error)
	UpdateOrganization(ctx context.Context, in *UpdateOrganizationRequest, opts ...grpc.CallOption) (*UpdateOrganizationResponse, error)
	// GetMyOrganization returns the organization that the user is a member of or
	// NotFound if the user is not a member of any organization.
	GetMyOrganization(ctx context.Context, in *GetMyOrganizationRequest, opts ...grpc.CallOption) (*GetMyOrganizationResponse, error)
	AddAccount(ctx context.Context, in *AddAccountRequest, opts ...grpc.CallOption) (*AddAccountResponse, error)
	UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error)
	GetAccountByHandshake(ctx context.Context, in *GetAccountByHandshakeRequest, opts ...grpc.CallOption) (*GetAccountByHandshakeResponse, error)
	GetAccounts(ctx context.Context, in *GetAccountsRequest, opts ...grpc.CallOption) (*GetAccountsResponse, error)
}

AccountServiceClient is the client API for AccountService 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.

type AccountServiceServer

type AccountServiceServer interface {
	CreateOrganization(context.Context, *CreateOrganizationRequest) (*CreateOrganizationResponse, error)
	UpdateOrganization(context.Context, *UpdateOrganizationRequest) (*UpdateOrganizationResponse, error)
	// GetMyOrganization returns the organization that the user is a member of or
	// NotFound if the user is not a member of any organization.
	GetMyOrganization(context.Context, *GetMyOrganizationRequest) (*GetMyOrganizationResponse, error)
	AddAccount(context.Context, *AddAccountRequest) (*AddAccountResponse, error)
	UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error)
	GetAccountByHandshake(context.Context, *GetAccountByHandshakeRequest) (*GetAccountByHandshakeResponse, error)
	GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error)
	// contains filtered or unexported methods
}

AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility

type AddAccountRequest

type AddAccountRequest struct {
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	Name           string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*AddAccountRequest) Descriptor deprecated

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

Deprecated: Use AddAccountRequest.ProtoReflect.Descriptor instead.

func (*AddAccountRequest) GetName

func (x *AddAccountRequest) GetName() string

func (*AddAccountRequest) GetOrganizationId

func (x *AddAccountRequest) GetOrganizationId() string

func (*AddAccountRequest) ProtoMessage

func (*AddAccountRequest) ProtoMessage()

func (*AddAccountRequest) ProtoReflect

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

func (*AddAccountRequest) Reset

func (x *AddAccountRequest) Reset()

func (*AddAccountRequest) String

func (x *AddAccountRequest) String() string

type AddAccountResponse

type AddAccountResponse struct {
	HandshakeId               string `protobuf:"bytes,1,opt,name=handshake_id,json=handshakeId,proto3" json:"handshake_id,omitempty"`
	CloudFormationTemplateUrl string `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AddAccountResponse) Descriptor deprecated

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

Deprecated: Use AddAccountResponse.ProtoReflect.Descriptor instead.

func (*AddAccountResponse) GetCloudFormationTemplateUrl

func (x *AddAccountResponse) GetCloudFormationTemplateUrl() string

func (*AddAccountResponse) GetHandshakeId

func (x *AddAccountResponse) GetHandshakeId() string

func (*AddAccountResponse) ProtoMessage

func (*AddAccountResponse) ProtoMessage()

func (*AddAccountResponse) ProtoReflect

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

func (*AddAccountResponse) Reset

func (x *AddAccountResponse) Reset()

func (*AddAccountResponse) String

func (x *AddAccountResponse) String() string

type CreateOrganizationRequest

type CreateOrganizationRequest struct {
	FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName  string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	Company   string `protobuf:"bytes,3,opt,name=company,proto3" json:"company,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrganizationRequest) Descriptor deprecated

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

Deprecated: Use CreateOrganizationRequest.ProtoReflect.Descriptor instead.

func (*CreateOrganizationRequest) GetCompany

func (x *CreateOrganizationRequest) GetCompany() string

func (*CreateOrganizationRequest) GetFirstName

func (x *CreateOrganizationRequest) GetFirstName() string

func (*CreateOrganizationRequest) GetLastName

func (x *CreateOrganizationRequest) GetLastName() string

func (*CreateOrganizationRequest) ProtoMessage

func (*CreateOrganizationRequest) ProtoMessage()

func (*CreateOrganizationRequest) ProtoReflect

func (*CreateOrganizationRequest) Reset

func (x *CreateOrganizationRequest) Reset()

func (*CreateOrganizationRequest) String

func (x *CreateOrganizationRequest) String() string

type CreateOrganizationResponse

type CreateOrganizationResponse struct {
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrganizationResponse) Descriptor deprecated

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

Deprecated: Use CreateOrganizationResponse.ProtoReflect.Descriptor instead.

func (*CreateOrganizationResponse) GetOrganizationId

func (x *CreateOrganizationResponse) GetOrganizationId() string

func (*CreateOrganizationResponse) ProtoMessage

func (*CreateOrganizationResponse) ProtoMessage()

func (*CreateOrganizationResponse) ProtoReflect

func (*CreateOrganizationResponse) Reset

func (x *CreateOrganizationResponse) Reset()

func (*CreateOrganizationResponse) String

func (x *CreateOrganizationResponse) String() string

type GetAccountByHandshakeRequest

type GetAccountByHandshakeRequest struct {
	HandshakeId string `protobuf:"bytes,1,opt,name=handshake_id,json=handshakeId,proto3" json:"handshake_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountByHandshakeRequest) Descriptor deprecated

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

Deprecated: Use GetAccountByHandshakeRequest.ProtoReflect.Descriptor instead.

func (*GetAccountByHandshakeRequest) GetHandshakeId

func (x *GetAccountByHandshakeRequest) GetHandshakeId() string

func (*GetAccountByHandshakeRequest) ProtoMessage

func (*GetAccountByHandshakeRequest) ProtoMessage()

func (*GetAccountByHandshakeRequest) ProtoReflect

func (*GetAccountByHandshakeRequest) Reset

func (x *GetAccountByHandshakeRequest) Reset()

func (*GetAccountByHandshakeRequest) String

type GetAccountByHandshakeResponse

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

func (*GetAccountByHandshakeResponse) Descriptor deprecated

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

Deprecated: Use GetAccountByHandshakeResponse.ProtoReflect.Descriptor instead.

func (*GetAccountByHandshakeResponse) GetAccount

func (x *GetAccountByHandshakeResponse) GetAccount() *Account

func (*GetAccountByHandshakeResponse) ProtoMessage

func (*GetAccountByHandshakeResponse) ProtoMessage()

func (*GetAccountByHandshakeResponse) ProtoReflect

func (*GetAccountByHandshakeResponse) Reset

func (x *GetAccountByHandshakeResponse) Reset()

func (*GetAccountByHandshakeResponse) String

type GetAccountsRequest

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

func (*GetAccountsRequest) Descriptor deprecated

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

Deprecated: Use GetAccountsRequest.ProtoReflect.Descriptor instead.

func (*GetAccountsRequest) ProtoMessage

func (*GetAccountsRequest) ProtoMessage()

func (*GetAccountsRequest) ProtoReflect

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

func (*GetAccountsRequest) Reset

func (x *GetAccountsRequest) Reset()

func (*GetAccountsRequest) String

func (x *GetAccountsRequest) String() string

type GetAccountsResponse

type GetAccountsResponse struct {
	Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountsResponse) Descriptor deprecated

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

Deprecated: Use GetAccountsResponse.ProtoReflect.Descriptor instead.

func (*GetAccountsResponse) GetAccounts

func (x *GetAccountsResponse) GetAccounts() []*Account

func (*GetAccountsResponse) ProtoMessage

func (*GetAccountsResponse) ProtoMessage()

func (*GetAccountsResponse) ProtoReflect

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

func (*GetAccountsResponse) Reset

func (x *GetAccountsResponse) Reset()

func (*GetAccountsResponse) String

func (x *GetAccountsResponse) String() string

type GetMyOrganizationRequest

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

func (*GetMyOrganizationRequest) Descriptor deprecated

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

Deprecated: Use GetMyOrganizationRequest.ProtoReflect.Descriptor instead.

func (*GetMyOrganizationRequest) ProtoMessage

func (*GetMyOrganizationRequest) ProtoMessage()

func (*GetMyOrganizationRequest) ProtoReflect

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

func (*GetMyOrganizationRequest) Reset

func (x *GetMyOrganizationRequest) Reset()

func (*GetMyOrganizationRequest) String

func (x *GetMyOrganizationRequest) String() string

type GetMyOrganizationResponse

type GetMyOrganizationResponse struct {

	// The organization that the user is a member of.
	Organization *Organization `protobuf:"bytes,1,opt,name=organization,proto3" json:"organization,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMyOrganizationResponse) Descriptor deprecated

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

Deprecated: Use GetMyOrganizationResponse.ProtoReflect.Descriptor instead.

func (*GetMyOrganizationResponse) GetOrganization

func (x *GetMyOrganizationResponse) GetOrganization() *Organization

func (*GetMyOrganizationResponse) ProtoMessage

func (*GetMyOrganizationResponse) ProtoMessage()

func (*GetMyOrganizationResponse) ProtoReflect

func (*GetMyOrganizationResponse) Reset

func (x *GetMyOrganizationResponse) Reset()

func (*GetMyOrganizationResponse) String

func (x *GetMyOrganizationResponse) String() string

type Organization

type Organization struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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"`
	Company   string `protobuf:"bytes,4,opt,name=company,proto3" json:"company,omitempty"`
	// contains filtered or unexported fields
}

func (*Organization) Descriptor deprecated

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

Deprecated: Use Organization.ProtoReflect.Descriptor instead.

func (*Organization) GetCompany

func (x *Organization) GetCompany() string

func (*Organization) GetFirstName

func (x *Organization) GetFirstName() string

func (*Organization) GetId

func (x *Organization) GetId() string

func (*Organization) GetLastName

func (x *Organization) GetLastName() string

func (*Organization) ProtoMessage

func (*Organization) ProtoMessage()

func (*Organization) ProtoReflect

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

func (*Organization) Reset

func (x *Organization) Reset()

func (*Organization) String

func (x *Organization) String() string

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServiceServer) AddAccount

func (UnimplementedAccountServiceServer) CreateOrganization

func (UnimplementedAccountServiceServer) GetAccounts

func (UnimplementedAccountServiceServer) GetMyOrganization

func (UnimplementedAccountServiceServer) UpdateAccount added in v0.3.47

func (UnimplementedAccountServiceServer) UpdateOrganization

type UnsafeAccountServiceServer

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

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

type UpdateAccountRequest added in v0.3.47

type UpdateAccountRequest struct {
	Id          string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	IsActive    *bool   `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3,oneof" json:"is_active,omitempty"`
	Name        *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
	HandshakeId *string `protobuf:"bytes,4,opt,name=handshake_id,json=handshakeId,proto3,oneof" json:"handshake_id,omitempty"`
	ExternalId  *string `protobuf:"bytes,5,opt,name=external_id,json=externalId,proto3,oneof" json:"external_id,omitempty"`
	Arn         *string `protobuf:"bytes,6,opt,name=arn,proto3,oneof" json:"arn,omitempty"`
	StackId     *string `protobuf:"bytes,7,opt,name=stack_id,json=stackId,proto3,oneof" json:"stack_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccountRequest) Descriptor deprecated added in v0.3.47

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

Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccountRequest) GetArn added in v0.3.47

func (x *UpdateAccountRequest) GetArn() string

func (*UpdateAccountRequest) GetExternalId added in v0.3.47

func (x *UpdateAccountRequest) GetExternalId() string

func (*UpdateAccountRequest) GetHandshakeId added in v0.3.47

func (x *UpdateAccountRequest) GetHandshakeId() string

func (*UpdateAccountRequest) GetId added in v0.3.47

func (x *UpdateAccountRequest) GetId() string

func (*UpdateAccountRequest) GetIsActive added in v0.3.47

func (x *UpdateAccountRequest) GetIsActive() bool

func (*UpdateAccountRequest) GetName added in v0.3.47

func (x *UpdateAccountRequest) GetName() string

func (*UpdateAccountRequest) GetStackId added in v0.3.47

func (x *UpdateAccountRequest) GetStackId() string

func (*UpdateAccountRequest) ProtoMessage added in v0.3.47

func (*UpdateAccountRequest) ProtoMessage()

func (*UpdateAccountRequest) ProtoReflect added in v0.3.47

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

func (*UpdateAccountRequest) Reset added in v0.3.47

func (x *UpdateAccountRequest) Reset()

func (*UpdateAccountRequest) String added in v0.3.47

func (x *UpdateAccountRequest) String() string

type UpdateAccountResponse added in v0.3.47

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

func (*UpdateAccountResponse) Descriptor deprecated added in v0.3.47

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

Deprecated: Use UpdateAccountResponse.ProtoReflect.Descriptor instead.

func (*UpdateAccountResponse) ProtoMessage added in v0.3.47

func (*UpdateAccountResponse) ProtoMessage()

func (*UpdateAccountResponse) ProtoReflect added in v0.3.47

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

func (*UpdateAccountResponse) Reset added in v0.3.47

func (x *UpdateAccountResponse) Reset()

func (*UpdateAccountResponse) String added in v0.3.47

func (x *UpdateAccountResponse) String() string

type UpdateOrganizationRequest

type UpdateOrganizationRequest struct {
	OrganizationId string  `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	FirstName      *string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3,oneof" json:"first_name,omitempty"`
	LastName       *string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3,oneof" json:"last_name,omitempty"`
	Company        *string `protobuf:"bytes,4,opt,name=company,proto3,oneof" json:"company,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOrganizationRequest) Descriptor deprecated

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

Deprecated: Use UpdateOrganizationRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrganizationRequest) GetCompany

func (x *UpdateOrganizationRequest) GetCompany() string

func (*UpdateOrganizationRequest) GetFirstName

func (x *UpdateOrganizationRequest) GetFirstName() string

func (*UpdateOrganizationRequest) GetLastName

func (x *UpdateOrganizationRequest) GetLastName() string

func (*UpdateOrganizationRequest) GetOrganizationId

func (x *UpdateOrganizationRequest) GetOrganizationId() string

func (*UpdateOrganizationRequest) ProtoMessage

func (*UpdateOrganizationRequest) ProtoMessage()

func (*UpdateOrganizationRequest) ProtoReflect

func (*UpdateOrganizationRequest) Reset

func (x *UpdateOrganizationRequest) Reset()

func (*UpdateOrganizationRequest) String

func (x *UpdateOrganizationRequest) String() string

type UpdateOrganizationResponse

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

func (*UpdateOrganizationResponse) Descriptor deprecated

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

Deprecated: Use UpdateOrganizationResponse.ProtoReflect.Descriptor instead.

func (*UpdateOrganizationResponse) ProtoMessage

func (*UpdateOrganizationResponse) ProtoMessage()

func (*UpdateOrganizationResponse) ProtoReflect

func (*UpdateOrganizationResponse) Reset

func (x *UpdateOrganizationResponse) Reset()

func (*UpdateOrganizationResponse) String

func (x *UpdateOrganizationResponse) String() string

Directories

Path Synopsis
Package account_mock is a generated GoMock package.
Package account_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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