account

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package account is a generated protocol buffer package.

It is generated from these files:

github.com/appcelerator/amp/api/rpc/account/account.proto

It has these top-level messages:

SignUpRequest
VerificationRequest
LogInRequest
LogInReply
SwitchRequest
SwitchAnswer
ResendVerifyRequest
PasswordResetRequest
PasswordSetRequest
PasswordChangeRequest
ForgotLoginRequest
GetUserRequest
GetUserReply
GetUserOrganizationsRequest
GetUserOrganizationsReply
ListUsersRequest
ListUsersReply
DeleteUserRequest
CreateOrganizationRequest
AddUserToOrganizationRequest
RemoveUserFromOrganizationRequest
ChangeOrganizationMemberRoleRequest
GetOrganizationRequest
GetOrganizationReply
ListOrganizationsRequest
ListOrganizationsReply
DeleteOrganizationRequest
CreateTeamRequest
AddUserToTeamRequest
RemoveUserFromTeamRequest
ChangeTeamNameRequest
GetTeamRequest
GetTeamReply
ListTeamsRequest
ListTeamsReply
DeleteTeamRequest

Package account is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAccountHandler added in v0.10.0

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 added in v0.16.0

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

RegisterAccountHandler 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 added in v0.10.0

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 RegisterAccountServer

func RegisterAccountServer(s *grpc.Server, srv AccountServer)

Types

type AccountClient

type AccountClient interface {
	// Global
	SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	Verify(ctx context.Context, in *VerificationRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	Login(ctx context.Context, in *LogInRequest, opts ...grpc.CallOption) (*LogInReply, error)
	Switch(ctx context.Context, in *SwitchRequest, opts ...grpc.CallOption) (*SwitchAnswer, error)
	// Users
	PasswordReset(ctx context.Context, in *PasswordResetRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	PasswordSet(ctx context.Context, in *PasswordSetRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	PasswordChange(ctx context.Context, in *PasswordChangeRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	ForgotLogin(ctx context.Context, in *ForgotLoginRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	ResendVerify(ctx context.Context, in *ResendVerifyRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error)
	GetUserOrganizations(ctx context.Context, in *GetUserOrganizationsRequest, opts ...grpc.CallOption) (*GetUserOrganizationsReply, error)
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersReply, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	// Organizations
	CreateOrganization(ctx context.Context, in *CreateOrganizationRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	AddUserToOrganization(ctx context.Context, in *AddUserToOrganizationRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	RemoveUserFromOrganization(ctx context.Context, in *RemoveUserFromOrganizationRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	ChangeOrganizationMemberRole(ctx context.Context, in *ChangeOrganizationMemberRoleRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	GetOrganization(ctx context.Context, in *GetOrganizationRequest, opts ...grpc.CallOption) (*GetOrganizationReply, error)
	ListOrganizations(ctx context.Context, in *ListOrganizationsRequest, opts ...grpc.CallOption) (*ListOrganizationsReply, error)
	DeleteOrganization(ctx context.Context, in *DeleteOrganizationRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	// Teams
	CreateTeam(ctx context.Context, in *CreateTeamRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	AddUserToTeam(ctx context.Context, in *AddUserToTeamRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	RemoveUserFromTeam(ctx context.Context, in *RemoveUserFromTeamRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	ChangeTeamName(ctx context.Context, in *ChangeTeamNameRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	GetTeam(ctx context.Context, in *GetTeamRequest, opts ...grpc.CallOption) (*GetTeamReply, error)
	ListTeams(ctx context.Context, in *ListTeamsRequest, opts ...grpc.CallOption) (*ListTeamsReply, error)
	DeleteTeam(ctx context.Context, in *DeleteTeamRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}

func NewAccountClient

func NewAccountClient(cc *grpc.ClientConn) AccountClient

type AccountServer

type AccountServer interface {
	// Global
	SignUp(context.Context, *SignUpRequest) (*google_protobuf.Empty, error)
	Verify(context.Context, *VerificationRequest) (*google_protobuf.Empty, error)
	Login(context.Context, *LogInRequest) (*LogInReply, error)
	Switch(context.Context, *SwitchRequest) (*SwitchAnswer, error)
	// Users
	PasswordReset(context.Context, *PasswordResetRequest) (*google_protobuf.Empty, error)
	PasswordSet(context.Context, *PasswordSetRequest) (*google_protobuf.Empty, error)
	PasswordChange(context.Context, *PasswordChangeRequest) (*google_protobuf.Empty, error)
	ForgotLogin(context.Context, *ForgotLoginRequest) (*google_protobuf.Empty, error)
	ResendVerify(context.Context, *ResendVerifyRequest) (*google_protobuf.Empty, error)
	GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
	GetUserOrganizations(context.Context, *GetUserOrganizationsRequest) (*GetUserOrganizationsReply, error)
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersReply, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*google_protobuf.Empty, error)
	// Organizations
	CreateOrganization(context.Context, *CreateOrganizationRequest) (*google_protobuf.Empty, error)
	AddUserToOrganization(context.Context, *AddUserToOrganizationRequest) (*google_protobuf.Empty, error)
	RemoveUserFromOrganization(context.Context, *RemoveUserFromOrganizationRequest) (*google_protobuf.Empty, error)
	ChangeOrganizationMemberRole(context.Context, *ChangeOrganizationMemberRoleRequest) (*google_protobuf.Empty, error)
	GetOrganization(context.Context, *GetOrganizationRequest) (*GetOrganizationReply, error)
	ListOrganizations(context.Context, *ListOrganizationsRequest) (*ListOrganizationsReply, error)
	DeleteOrganization(context.Context, *DeleteOrganizationRequest) (*google_protobuf.Empty, error)
	// Teams
	CreateTeam(context.Context, *CreateTeamRequest) (*google_protobuf.Empty, error)
	AddUserToTeam(context.Context, *AddUserToTeamRequest) (*google_protobuf.Empty, error)
	RemoveUserFromTeam(context.Context, *RemoveUserFromTeamRequest) (*google_protobuf.Empty, error)
	ChangeTeamName(context.Context, *ChangeTeamNameRequest) (*google_protobuf.Empty, error)
	GetTeam(context.Context, *GetTeamRequest) (*GetTeamReply, error)
	ListTeams(context.Context, *ListTeamsRequest) (*ListTeamsReply, error)
	DeleteTeam(context.Context, *DeleteTeamRequest) (*google_protobuf.Empty, error)
}

type AddUserToOrganizationRequest

type AddUserToOrganizationRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	UserName         string `protobuf:"bytes,2,opt,name=user_name,json=userName" json:"user_name,omitempty"`
}

func (*AddUserToOrganizationRequest) Descriptor

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

func (*AddUserToOrganizationRequest) GetOrganizationName

func (m *AddUserToOrganizationRequest) GetOrganizationName() string

func (*AddUserToOrganizationRequest) GetUserName

func (m *AddUserToOrganizationRequest) GetUserName() string

func (*AddUserToOrganizationRequest) ProtoMessage

func (*AddUserToOrganizationRequest) ProtoMessage()

func (*AddUserToOrganizationRequest) Reset

func (m *AddUserToOrganizationRequest) Reset()

func (*AddUserToOrganizationRequest) String

type AddUserToTeamRequest

type AddUserToTeamRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	TeamName         string `protobuf:"bytes,2,opt,name=team_name,json=teamName" json:"team_name,omitempty"`
	UserName         string `protobuf:"bytes,3,opt,name=user_name,json=userName" json:"user_name,omitempty"`
}

func (*AddUserToTeamRequest) Descriptor

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

func (*AddUserToTeamRequest) GetOrganizationName

func (m *AddUserToTeamRequest) GetOrganizationName() string

func (*AddUserToTeamRequest) GetTeamName

func (m *AddUserToTeamRequest) GetTeamName() string

func (*AddUserToTeamRequest) GetUserName

func (m *AddUserToTeamRequest) GetUserName() string

func (*AddUserToTeamRequest) ProtoMessage

func (*AddUserToTeamRequest) ProtoMessage()

func (*AddUserToTeamRequest) Reset

func (m *AddUserToTeamRequest) Reset()

func (*AddUserToTeamRequest) String

func (m *AddUserToTeamRequest) String() string

type ChangeOrganizationMemberRoleRequest

type ChangeOrganizationMemberRoleRequest struct {
	OrganizationName string                    `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	UserName         string                    `protobuf:"bytes,2,opt,name=user_name,json=userName" json:"user_name,omitempty"`
	Role             accounts.OrganizationRole `protobuf:"varint,3,opt,name=role,enum=accounts.OrganizationRole" json:"role,omitempty"`
}

func (*ChangeOrganizationMemberRoleRequest) Descriptor

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

func (*ChangeOrganizationMemberRoleRequest) GetOrganizationName

func (m *ChangeOrganizationMemberRoleRequest) GetOrganizationName() string

func (*ChangeOrganizationMemberRoleRequest) GetRole

func (*ChangeOrganizationMemberRoleRequest) GetUserName

func (*ChangeOrganizationMemberRoleRequest) ProtoMessage

func (*ChangeOrganizationMemberRoleRequest) ProtoMessage()

func (*ChangeOrganizationMemberRoleRequest) Reset

func (*ChangeOrganizationMemberRoleRequest) String

type ChangeTeamNameRequest added in v0.12.0

type ChangeTeamNameRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	TeamName         string `protobuf:"bytes,2,opt,name=team_name,json=teamName" json:"team_name,omitempty"`
	NewName          string `protobuf:"bytes,3,opt,name=new_name,json=newName" json:"new_name,omitempty"`
}

func (*ChangeTeamNameRequest) Descriptor added in v0.12.0

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

func (*ChangeTeamNameRequest) GetNewName added in v0.12.0

func (m *ChangeTeamNameRequest) GetNewName() string

func (*ChangeTeamNameRequest) GetOrganizationName added in v0.12.0

func (m *ChangeTeamNameRequest) GetOrganizationName() string

func (*ChangeTeamNameRequest) GetTeamName added in v0.12.0

func (m *ChangeTeamNameRequest) GetTeamName() string

func (*ChangeTeamNameRequest) ProtoMessage added in v0.12.0

func (*ChangeTeamNameRequest) ProtoMessage()

func (*ChangeTeamNameRequest) Reset added in v0.12.0

func (m *ChangeTeamNameRequest) Reset()

func (*ChangeTeamNameRequest) String added in v0.12.0

func (m *ChangeTeamNameRequest) String() string

type CreateOrganizationRequest

type CreateOrganizationRequest struct {
	Name  string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
}

Organizations

func (*CreateOrganizationRequest) Descriptor

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

func (*CreateOrganizationRequest) GetEmail

func (m *CreateOrganizationRequest) GetEmail() string

func (*CreateOrganizationRequest) GetName

func (m *CreateOrganizationRequest) GetName() string

func (*CreateOrganizationRequest) ProtoMessage

func (*CreateOrganizationRequest) ProtoMessage()

func (*CreateOrganizationRequest) Reset

func (m *CreateOrganizationRequest) Reset()

func (*CreateOrganizationRequest) String

func (m *CreateOrganizationRequest) String() string

type CreateTeamRequest

type CreateTeamRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	TeamName         string `protobuf:"bytes,2,opt,name=team_name,json=teamName" json:"team_name,omitempty"`
}

Teams

func (*CreateTeamRequest) Descriptor

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

func (*CreateTeamRequest) GetOrganizationName

func (m *CreateTeamRequest) GetOrganizationName() string

func (*CreateTeamRequest) GetTeamName

func (m *CreateTeamRequest) GetTeamName() string

func (*CreateTeamRequest) ProtoMessage

func (*CreateTeamRequest) ProtoMessage()

func (*CreateTeamRequest) Reset

func (m *CreateTeamRequest) Reset()

func (*CreateTeamRequest) String

func (m *CreateTeamRequest) String() string

type DeleteOrganizationRequest

type DeleteOrganizationRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*DeleteOrganizationRequest) Descriptor

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

func (*DeleteOrganizationRequest) GetName

func (m *DeleteOrganizationRequest) GetName() string

func (*DeleteOrganizationRequest) ProtoMessage

func (*DeleteOrganizationRequest) ProtoMessage()

func (*DeleteOrganizationRequest) Reset

func (m *DeleteOrganizationRequest) Reset()

func (*DeleteOrganizationRequest) String

func (m *DeleteOrganizationRequest) String() string

type DeleteTeamRequest

type DeleteTeamRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	TeamName         string `protobuf:"bytes,2,opt,name=team_name,json=teamName" json:"team_name,omitempty"`
}

func (*DeleteTeamRequest) Descriptor

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

func (*DeleteTeamRequest) GetOrganizationName

func (m *DeleteTeamRequest) GetOrganizationName() string

func (*DeleteTeamRequest) GetTeamName

func (m *DeleteTeamRequest) GetTeamName() string

func (*DeleteTeamRequest) ProtoMessage

func (*DeleteTeamRequest) ProtoMessage()

func (*DeleteTeamRequest) Reset

func (m *DeleteTeamRequest) Reset()

func (*DeleteTeamRequest) String

func (m *DeleteTeamRequest) String() string

type DeleteUserRequest

type DeleteUserRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*DeleteUserRequest) Descriptor

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

func (*DeleteUserRequest) GetName

func (m *DeleteUserRequest) GetName() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) Reset

func (m *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (m *DeleteUserRequest) String() string

type ForgotLoginRequest

type ForgotLoginRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"`
}

func (*ForgotLoginRequest) Descriptor

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

func (*ForgotLoginRequest) GetEmail

func (m *ForgotLoginRequest) GetEmail() string

func (*ForgotLoginRequest) ProtoMessage

func (*ForgotLoginRequest) ProtoMessage()

func (*ForgotLoginRequest) Reset

func (m *ForgotLoginRequest) Reset()

func (*ForgotLoginRequest) String

func (m *ForgotLoginRequest) String() string

type GetOrganizationReply

type GetOrganizationReply struct {
	Organization *accounts.Organization `protobuf:"bytes,1,opt,name=organization" json:"organization,omitempty"`
}

func (*GetOrganizationReply) Descriptor

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

func (*GetOrganizationReply) GetOrganization

func (m *GetOrganizationReply) GetOrganization() *accounts.Organization

func (*GetOrganizationReply) ProtoMessage

func (*GetOrganizationReply) ProtoMessage()

func (*GetOrganizationReply) Reset

func (m *GetOrganizationReply) Reset()

func (*GetOrganizationReply) String

func (m *GetOrganizationReply) String() string

type GetOrganizationRequest

type GetOrganizationRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*GetOrganizationRequest) Descriptor

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

func (*GetOrganizationRequest) GetName

func (m *GetOrganizationRequest) GetName() string

func (*GetOrganizationRequest) ProtoMessage

func (*GetOrganizationRequest) ProtoMessage()

func (*GetOrganizationRequest) Reset

func (m *GetOrganizationRequest) Reset()

func (*GetOrganizationRequest) String

func (m *GetOrganizationRequest) String() string

type GetTeamReply

type GetTeamReply struct {
	Team *accounts.Team `protobuf:"bytes,1,opt,name=team" json:"team,omitempty"`
}

func (*GetTeamReply) Descriptor

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

func (*GetTeamReply) GetTeam

func (m *GetTeamReply) GetTeam() *accounts.Team

func (*GetTeamReply) ProtoMessage

func (*GetTeamReply) ProtoMessage()

func (*GetTeamReply) Reset

func (m *GetTeamReply) Reset()

func (*GetTeamReply) String

func (m *GetTeamReply) String() string

type GetTeamRequest

type GetTeamRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	TeamName         string `protobuf:"bytes,2,opt,name=team_name,json=teamName" json:"team_name,omitempty"`
}

func (*GetTeamRequest) Descriptor

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

func (*GetTeamRequest) GetOrganizationName

func (m *GetTeamRequest) GetOrganizationName() string

func (*GetTeamRequest) GetTeamName

func (m *GetTeamRequest) GetTeamName() string

func (*GetTeamRequest) ProtoMessage

func (*GetTeamRequest) ProtoMessage()

func (*GetTeamRequest) Reset

func (m *GetTeamRequest) Reset()

func (*GetTeamRequest) String

func (m *GetTeamRequest) String() string

type GetUserOrganizationsReply added in v0.9.1

type GetUserOrganizationsReply struct {
	Organizations []*accounts.Organization `protobuf:"bytes,1,rep,name=organizations" json:"organizations,omitempty"`
}

func (*GetUserOrganizationsReply) Descriptor added in v0.9.1

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

func (*GetUserOrganizationsReply) GetOrganizations added in v0.9.1

func (m *GetUserOrganizationsReply) GetOrganizations() []*accounts.Organization

func (*GetUserOrganizationsReply) ProtoMessage added in v0.9.1

func (*GetUserOrganizationsReply) ProtoMessage()

func (*GetUserOrganizationsReply) Reset added in v0.9.1

func (m *GetUserOrganizationsReply) Reset()

func (*GetUserOrganizationsReply) String added in v0.9.1

func (m *GetUserOrganizationsReply) String() string

type GetUserOrganizationsRequest added in v0.9.1

type GetUserOrganizationsRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*GetUserOrganizationsRequest) Descriptor added in v0.9.1

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

func (*GetUserOrganizationsRequest) GetName added in v0.9.1

func (m *GetUserOrganizationsRequest) GetName() string

func (*GetUserOrganizationsRequest) ProtoMessage added in v0.9.1

func (*GetUserOrganizationsRequest) ProtoMessage()

func (*GetUserOrganizationsRequest) Reset added in v0.9.1

func (m *GetUserOrganizationsRequest) Reset()

func (*GetUserOrganizationsRequest) String added in v0.9.1

func (m *GetUserOrganizationsRequest) String() string

type GetUserReply

type GetUserReply struct {
	User *accounts.User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}

func (*GetUserReply) Descriptor

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

func (*GetUserReply) GetUser

func (m *GetUserReply) GetUser() *accounts.User

func (*GetUserReply) ProtoMessage

func (*GetUserReply) ProtoMessage()

func (*GetUserReply) Reset

func (m *GetUserReply) Reset()

func (*GetUserReply) String

func (m *GetUserReply) String() string

type GetUserRequest

type GetUserRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*GetUserRequest) Descriptor

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

func (*GetUserRequest) GetName

func (m *GetUserRequest) GetName() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) Reset

func (m *GetUserRequest) Reset()

func (*GetUserRequest) String

func (m *GetUserRequest) String() string

type ListOrganizationsReply

type ListOrganizationsReply struct {
	Organizations []*accounts.Organization `protobuf:"bytes,1,rep,name=organizations" json:"organizations,omitempty"`
}

func (*ListOrganizationsReply) Descriptor

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

func (*ListOrganizationsReply) GetOrganizations

func (m *ListOrganizationsReply) GetOrganizations() []*accounts.Organization

func (*ListOrganizationsReply) ProtoMessage

func (*ListOrganizationsReply) ProtoMessage()

func (*ListOrganizationsReply) Reset

func (m *ListOrganizationsReply) Reset()

func (*ListOrganizationsReply) String

func (m *ListOrganizationsReply) String() string

type ListOrganizationsRequest

type ListOrganizationsRequest struct {
}

func (*ListOrganizationsRequest) Descriptor

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

func (*ListOrganizationsRequest) ProtoMessage

func (*ListOrganizationsRequest) ProtoMessage()

func (*ListOrganizationsRequest) Reset

func (m *ListOrganizationsRequest) Reset()

func (*ListOrganizationsRequest) String

func (m *ListOrganizationsRequest) String() string

type ListTeamsReply

type ListTeamsReply struct {
	Teams []*accounts.Team `protobuf:"bytes,1,rep,name=teams" json:"teams,omitempty"`
}

func (*ListTeamsReply) Descriptor

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

func (*ListTeamsReply) GetTeams

func (m *ListTeamsReply) GetTeams() []*accounts.Team

func (*ListTeamsReply) ProtoMessage

func (*ListTeamsReply) ProtoMessage()

func (*ListTeamsReply) Reset

func (m *ListTeamsReply) Reset()

func (*ListTeamsReply) String

func (m *ListTeamsReply) String() string

type ListTeamsRequest

type ListTeamsRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
}

func (*ListTeamsRequest) Descriptor

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

func (*ListTeamsRequest) GetOrganizationName

func (m *ListTeamsRequest) GetOrganizationName() string

func (*ListTeamsRequest) ProtoMessage

func (*ListTeamsRequest) ProtoMessage()

func (*ListTeamsRequest) Reset

func (m *ListTeamsRequest) Reset()

func (*ListTeamsRequest) String

func (m *ListTeamsRequest) String() string

type ListUsersReply

type ListUsersReply struct {
	Users []*accounts.User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}

func (*ListUsersReply) Descriptor

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

func (*ListUsersReply) GetUsers

func (m *ListUsersReply) GetUsers() []*accounts.User

func (*ListUsersReply) ProtoMessage

func (*ListUsersReply) ProtoMessage()

func (*ListUsersReply) Reset

func (m *ListUsersReply) Reset()

func (*ListUsersReply) String

func (m *ListUsersReply) String() string

type ListUsersRequest

type ListUsersRequest struct {
}

func (*ListUsersRequest) Descriptor

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

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) Reset

func (m *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (m *ListUsersRequest) String() string

type LogInReply added in v0.12.0

type LogInReply struct {
	Auth string `protobuf:"bytes,1,opt,name=auth" json:"auth,omitempty"`
}

func (*LogInReply) Descriptor added in v0.12.0

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

func (*LogInReply) GetAuth added in v0.12.0

func (m *LogInReply) GetAuth() string

func (*LogInReply) ProtoMessage added in v0.12.0

func (*LogInReply) ProtoMessage()

func (*LogInReply) Reset added in v0.12.0

func (m *LogInReply) Reset()

func (*LogInReply) String added in v0.12.0

func (m *LogInReply) String() string

type LogInRequest

type LogInRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}

func (*LogInRequest) Descriptor

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

func (*LogInRequest) GetName

func (m *LogInRequest) GetName() string

func (*LogInRequest) GetPassword

func (m *LogInRequest) GetPassword() string

func (*LogInRequest) ProtoMessage

func (*LogInRequest) ProtoMessage()

func (*LogInRequest) Reset

func (m *LogInRequest) Reset()

func (*LogInRequest) String

func (m *LogInRequest) String() string

type PasswordChangeRequest

type PasswordChangeRequest struct {
	ExistingPassword string `protobuf:"bytes,1,opt,name=existingPassword" json:"existingPassword,omitempty"`
	NewPassword      string `protobuf:"bytes,2,opt,name=newPassword" json:"newPassword,omitempty"`
}

func (*PasswordChangeRequest) Descriptor

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

func (*PasswordChangeRequest) GetExistingPassword

func (m *PasswordChangeRequest) GetExistingPassword() string

func (*PasswordChangeRequest) GetNewPassword

func (m *PasswordChangeRequest) GetNewPassword() string

func (*PasswordChangeRequest) ProtoMessage

func (*PasswordChangeRequest) ProtoMessage()

func (*PasswordChangeRequest) Reset

func (m *PasswordChangeRequest) Reset()

func (*PasswordChangeRequest) String

func (m *PasswordChangeRequest) String() string

type PasswordResetRequest

type PasswordResetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*PasswordResetRequest) Descriptor

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

func (*PasswordResetRequest) GetName

func (m *PasswordResetRequest) GetName() string

func (*PasswordResetRequest) ProtoMessage

func (*PasswordResetRequest) ProtoMessage()

func (*PasswordResetRequest) Reset

func (m *PasswordResetRequest) Reset()

func (*PasswordResetRequest) String

func (m *PasswordResetRequest) String() string

type PasswordSetRequest

type PasswordSetRequest struct {
	Token    string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}

func (*PasswordSetRequest) Descriptor

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

func (*PasswordSetRequest) GetPassword

func (m *PasswordSetRequest) GetPassword() string

func (*PasswordSetRequest) GetToken

func (m *PasswordSetRequest) GetToken() string

func (*PasswordSetRequest) ProtoMessage

func (*PasswordSetRequest) ProtoMessage()

func (*PasswordSetRequest) Reset

func (m *PasswordSetRequest) Reset()

func (*PasswordSetRequest) String

func (m *PasswordSetRequest) String() string

type RemoveUserFromOrganizationRequest

type RemoveUserFromOrganizationRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	UserName         string `protobuf:"bytes,2,opt,name=user_name,json=userName" json:"user_name,omitempty"`
}

func (*RemoveUserFromOrganizationRequest) Descriptor

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

func (*RemoveUserFromOrganizationRequest) GetOrganizationName

func (m *RemoveUserFromOrganizationRequest) GetOrganizationName() string

func (*RemoveUserFromOrganizationRequest) GetUserName

func (m *RemoveUserFromOrganizationRequest) GetUserName() string

func (*RemoveUserFromOrganizationRequest) ProtoMessage

func (*RemoveUserFromOrganizationRequest) ProtoMessage()

func (*RemoveUserFromOrganizationRequest) Reset

func (*RemoveUserFromOrganizationRequest) String

type RemoveUserFromTeamRequest

type RemoveUserFromTeamRequest struct {
	OrganizationName string `protobuf:"bytes,1,opt,name=organization_name,json=organizationName" json:"organization_name,omitempty"`
	TeamName         string `protobuf:"bytes,2,opt,name=team_name,json=teamName" json:"team_name,omitempty"`
	UserName         string `protobuf:"bytes,3,opt,name=user_name,json=userName" json:"user_name,omitempty"`
}

func (*RemoveUserFromTeamRequest) Descriptor

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

func (*RemoveUserFromTeamRequest) GetOrganizationName

func (m *RemoveUserFromTeamRequest) GetOrganizationName() string

func (*RemoveUserFromTeamRequest) GetTeamName

func (m *RemoveUserFromTeamRequest) GetTeamName() string

func (*RemoveUserFromTeamRequest) GetUserName

func (m *RemoveUserFromTeamRequest) GetUserName() string

func (*RemoveUserFromTeamRequest) ProtoMessage

func (*RemoveUserFromTeamRequest) ProtoMessage()

func (*RemoveUserFromTeamRequest) Reset

func (m *RemoveUserFromTeamRequest) Reset()

func (*RemoveUserFromTeamRequest) String

func (m *RemoveUserFromTeamRequest) String() string

type ResendVerifyRequest added in v0.15.0

type ResendVerifyRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Url  string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
}

func (*ResendVerifyRequest) Descriptor added in v0.15.0

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

func (*ResendVerifyRequest) GetName added in v0.15.0

func (m *ResendVerifyRequest) GetName() string

func (*ResendVerifyRequest) GetUrl added in v0.15.0

func (m *ResendVerifyRequest) GetUrl() string

func (*ResendVerifyRequest) ProtoMessage added in v0.15.0

func (*ResendVerifyRequest) ProtoMessage()

func (*ResendVerifyRequest) Reset added in v0.15.0

func (m *ResendVerifyRequest) Reset()

func (*ResendVerifyRequest) String added in v0.15.0

func (m *ResendVerifyRequest) String() string

type Server

type Server struct {
	Accounts   accounts.Interface
	Mailer     *mail.Mailer
	Config     *configuration.Configuration
	Tokens     *auth.Tokens
	Stacks     stacks.Interface
	Dashboards dashboards.Interface
}

Server is used to implement account.AccountServer

func (*Server) AddUserToOrganization

func (s *Server) AddUserToOrganization(ctx context.Context, in *AddUserToOrganizationRequest) (*empty.Empty, error)

AddUserToOrganization implements account.AddOrganizationMember

func (*Server) AddUserToTeam

func (s *Server) AddUserToTeam(ctx context.Context, in *AddUserToTeamRequest) (*empty.Empty, error)

AddUserToTeam implements account.AddUserToTeam

func (*Server) ChangeOrganizationMemberRole

func (s *Server) ChangeOrganizationMemberRole(ctx context.Context, in *ChangeOrganizationMemberRoleRequest) (*empty.Empty, error)

ChangeOrganizationMemberRole implements account.ChangeOrganizationMemberRole

func (*Server) ChangeTeamName added in v0.12.0

func (s *Server) ChangeTeamName(ctx context.Context, in *ChangeTeamNameRequest) (*empty.Empty, error)

ChangeTeamName implements account.ChangeTeamName

func (*Server) CreateOrganization

func (s *Server) CreateOrganization(ctx context.Context, in *CreateOrganizationRequest) (*empty.Empty, error)

CreateOrganization implements account.CreateOrganization

func (*Server) CreateTeam

func (s *Server) CreateTeam(ctx context.Context, in *CreateTeamRequest) (*empty.Empty, error)

CreateTeam implements account.CreateTeam

func (*Server) DeleteOrganization

func (s *Server) DeleteOrganization(ctx context.Context, in *DeleteOrganizationRequest) (*empty.Empty, error)

DeleteOrganization implements account.DeleteOrganization

func (*Server) DeleteTeam

func (s *Server) DeleteTeam(ctx context.Context, in *DeleteTeamRequest) (*empty.Empty, error)

DeleteTeam implements account.DeleteTeam

func (*Server) DeleteUser

func (s *Server) DeleteUser(ctx context.Context, in *DeleteUserRequest) (*empty.Empty, error)

DeleteUser implements account.DeleteUser

func (*Server) ForgotLogin

func (s *Server) ForgotLogin(ctx context.Context, in *ForgotLoginRequest) (*empty.Empty, error)

ForgotLogin implements account.ForgotLogin

func (*Server) GetOrganization

func (s *Server) GetOrganization(ctx context.Context, in *GetOrganizationRequest) (*GetOrganizationReply, error)

GetOrganization implements account.GetOrganization

func (*Server) GetTeam

func (s *Server) GetTeam(ctx context.Context, in *GetTeamRequest) (*GetTeamReply, error)

GetTeam implements account.GetTeam

func (*Server) GetUser

func (s *Server) GetUser(ctx context.Context, in *GetUserRequest) (*GetUserReply, error)

GetUser implements account.GetUser

func (*Server) GetUserOrganizations added in v0.9.1

func (s *Server) GetUserOrganizations(ctx context.Context, in *GetUserOrganizationsRequest) (*GetUserOrganizationsReply, error)

GetUserOrganizations implements account.GetUserOrganizations

func (*Server) ListOrganizations

func (s *Server) ListOrganizations(ctx context.Context, in *ListOrganizationsRequest) (*ListOrganizationsReply, error)

ListOrganizations implements account.ListOrganizations

func (*Server) ListTeams

func (s *Server) ListTeams(ctx context.Context, in *ListTeamsRequest) (*ListTeamsReply, error)

ListTeams implements account.ListTeams

func (*Server) ListUsers

func (s *Server) ListUsers(ctx context.Context, in *ListUsersRequest) (*ListUsersReply, error)

ListUsers implements account.ListUsers

func (*Server) Login

func (s *Server) Login(ctx context.Context, in *LogInRequest) (*LogInReply, error)

Login implements account.Login

func (*Server) PasswordChange

func (s *Server) PasswordChange(ctx context.Context, in *PasswordChangeRequest) (*empty.Empty, error)

PasswordChange implements account.PasswordChange

func (*Server) PasswordReset

func (s *Server) PasswordReset(ctx context.Context, in *PasswordResetRequest) (*empty.Empty, error)

PasswordReset implements account.PasswordReset

func (*Server) PasswordSet

func (s *Server) PasswordSet(ctx context.Context, in *PasswordSetRequest) (*empty.Empty, error)

PasswordSet implements account.PasswordSet

func (*Server) RemoveUserFromOrganization

func (s *Server) RemoveUserFromOrganization(ctx context.Context, in *RemoveUserFromOrganizationRequest) (*empty.Empty, error)

RemoveUserFromOrganization implements account.RemoveOrganizationMember

func (*Server) RemoveUserFromTeam

func (s *Server) RemoveUserFromTeam(ctx context.Context, in *RemoveUserFromTeamRequest) (*empty.Empty, error)

RemoveUserFromTeam implements account.RemoveUserFromTeam

func (*Server) ResendVerify added in v0.15.0

func (s *Server) ResendVerify(ctx context.Context, in *ResendVerifyRequest) (*empty.Empty, error)

ResendVerify implements account.ResendVerify

func (*Server) SignUp

func (s *Server) SignUp(ctx context.Context, in *SignUpRequest) (*empty.Empty, error)

SignUp implements account.SignUp

func (*Server) Switch

func (s *Server) Switch(ctx context.Context, in *SwitchRequest) (*SwitchAnswer, error)

Switch implements account.Switch

func (*Server) Verify

func (s *Server) Verify(ctx context.Context, in *VerificationRequest) (*empty.Empty, error)

Verify implements account.Verify

type SignUpRequest

type SignUpRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"`
	Url      string `protobuf:"bytes,4,opt,name=url" json:"url,omitempty"`
}

Users

func (*SignUpRequest) Descriptor

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

func (*SignUpRequest) GetEmail

func (m *SignUpRequest) GetEmail() string

func (*SignUpRequest) GetName

func (m *SignUpRequest) GetName() string

func (*SignUpRequest) GetPassword

func (m *SignUpRequest) GetPassword() string

func (*SignUpRequest) GetUrl added in v0.12.0

func (m *SignUpRequest) GetUrl() string

func (*SignUpRequest) ProtoMessage

func (*SignUpRequest) ProtoMessage()

func (*SignUpRequest) Reset

func (m *SignUpRequest) Reset()

func (*SignUpRequest) String

func (m *SignUpRequest) String() string

type SwitchAnswer added in v0.12.0

type SwitchAnswer struct {
	Auth string `protobuf:"bytes,1,opt,name=auth" json:"auth,omitempty"`
}

func (*SwitchAnswer) Descriptor added in v0.12.0

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

func (*SwitchAnswer) GetAuth added in v0.12.0

func (m *SwitchAnswer) GetAuth() string

func (*SwitchAnswer) ProtoMessage added in v0.12.0

func (*SwitchAnswer) ProtoMessage()

func (*SwitchAnswer) Reset added in v0.12.0

func (m *SwitchAnswer) Reset()

func (*SwitchAnswer) String added in v0.12.0

func (m *SwitchAnswer) String() string

type SwitchRequest

type SwitchRequest struct {
	Account string `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"`
}

func (*SwitchRequest) Descriptor

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

func (*SwitchRequest) GetAccount

func (m *SwitchRequest) GetAccount() string

func (*SwitchRequest) ProtoMessage

func (*SwitchRequest) ProtoMessage()

func (*SwitchRequest) Reset

func (m *SwitchRequest) Reset()

func (*SwitchRequest) String

func (m *SwitchRequest) String() string

type VerificationRequest

type VerificationRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}

func (*VerificationRequest) Descriptor

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

func (*VerificationRequest) GetToken

func (m *VerificationRequest) GetToken() string

func (*VerificationRequest) ProtoMessage

func (*VerificationRequest) ProtoMessage()

func (*VerificationRequest) Reset

func (m *VerificationRequest) Reset()

func (*VerificationRequest) String

func (m *VerificationRequest) String() string

Jump to

Keyboard shortcuts

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