Documentation ¶
Overview ¶
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1alpha1 is a generated protocol buffer package.
It is generated from these files:
authentication.proto conduit.proto project.proto
It has these top-level messages:
LoginRequest LoginResponse CSRFTokenResponse ConduitWhoAmIResponse ConduitUsersResponse ConduitUser Preferences ProjectListRequest ProjectListResponse ProjectMemberListRequest ProjectMemberListResponse Project Member
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func ExportAuthenticationCorsPatterns() []runtime.Pattern
- func ExportConduitCorsPatterns() []runtime.Pattern
- func ExportProjectsCorsPatterns() []runtime.Pattern
- func RegisterAuthenticationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthenticationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationClient) error
- func RegisterAuthenticationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthenticationServer(s *grpc.Server, srv AuthenticationServer)
- func RegisterConduitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterConduitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConduitClient) error
- func RegisterConduitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterConduitServer(s *grpc.Server, srv ConduitServer)
- func RegisterProjectsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProjectsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectsClient) error
- func RegisterProjectsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProjectsServer(s *grpc.Server, srv ProjectsServer)
- type AuthenticationClient
- type AuthenticationServer
- type CSRFTokenResponse
- type ConduitClient
- type ConduitServer
- type ConduitUser
- func (*ConduitUser) Descriptor() ([]byte, []int)
- func (m *ConduitUser) GetImage() string
- func (m *ConduitUser) GetIsAdmin() bool
- func (m *ConduitUser) GetIsApproved() bool
- func (m *ConduitUser) GetIsBot() bool
- func (m *ConduitUser) GetIsDisabled() bool
- func (m *ConduitUser) GetIsEmailVerified() bool
- func (m *ConduitUser) GetIsMailingList() bool
- func (m *ConduitUser) GetPhid() string
- func (m *ConduitUser) GetPreferences() *Preferences
- func (m *ConduitUser) GetPrimaryEmail() string
- func (m *ConduitUser) GetRealName() string
- func (m *ConduitUser) GetRoles() []string
- func (m *ConduitUser) GetUri() string
- func (m *ConduitUser) GetUserName() string
- func (*ConduitUser) ProtoMessage()
- func (m *ConduitUser) Reset()
- func (m *ConduitUser) String() string
- type ConduitUsersResponse
- type ConduitWhoAmIResponse
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetIssueToken() bool
- func (m *LoginRequest) GetNamespace() string
- func (m *LoginRequest) GetPassword() string
- func (m *LoginRequest) GetToken() string
- func (m *LoginRequest) GetUsername() string
- func (m *LoginRequest) IsRequest()
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) String() string
- func (m *LoginRequest) Valid() (*gojsonschema.Result, error)
- type LoginResponse
- type Member
- type Preferences
- type Project
- func (*Project) Descriptor() ([]byte, []int)
- func (m *Project) GetCreatedAt() int64
- func (m *Project) GetEditPolicy() string
- func (m *Project) GetHasSubprojects() bool
- func (m *Project) GetJoinPolicy() string
- func (m *Project) GetMembers() []*Member
- func (m *Project) GetMembershipLocked() bool
- func (m *Project) GetName() string
- func (m *Project) GetPhid() string
- func (m *Project) GetStatus() string
- func (m *Project) GetType() string
- func (m *Project) GetViewPolicy() string
- func (*Project) ProtoMessage()
- func (m *Project) Reset()
- func (m *Project) String() string
- type ProjectListRequest
- func (*ProjectListRequest) Descriptor() ([]byte, []int)
- func (m *ProjectListRequest) GetMembers() []string
- func (m *ProjectListRequest) GetWithMember() bool
- func (m *ProjectListRequest) IsRequest()
- func (*ProjectListRequest) ProtoMessage()
- func (m *ProjectListRequest) Reset()
- func (m *ProjectListRequest) String() string
- func (m *ProjectListRequest) Valid() (*gojsonschema.Result, error)
- type ProjectListResponse
- type ProjectMemberListRequest
- func (*ProjectMemberListRequest) Descriptor() ([]byte, []int)
- func (m *ProjectMemberListRequest) GetUid() string
- func (m *ProjectMemberListRequest) IsRequest()
- func (*ProjectMemberListRequest) ProtoMessage()
- func (m *ProjectMemberListRequest) Reset()
- func (m *ProjectMemberListRequest) String() string
- func (m *ProjectMemberListRequest) Valid() (*gojsonschema.Result, error)
- type ProjectMemberListResponse
- type ProjectsClient
- type ProjectsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportAuthenticationCorsPatterns ¶
ExportAuthenticationCorsPatterns returns an array of grpc gatway mux patterns for Authentication service to enable CORS.
func ExportConduitCorsPatterns ¶
ExportConduitCorsPatterns returns an array of grpc gatway mux patterns for Conduit service to enable CORS.
func ExportProjectsCorsPatterns ¶
ExportProjectsCorsPatterns returns an array of grpc gatway mux patterns for Projects service to enable CORS.
func RegisterAuthenticationHandler ¶
func RegisterAuthenticationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthenticationHandler registers the http handlers for service Authentication to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthenticationHandlerClient ¶
func RegisterAuthenticationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationClient) error
RegisterAuthenticationHandler registers the http handlers for service Authentication to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthenticationClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthenticationClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthenticationClient" to call the correct interceptors.
func RegisterAuthenticationHandlerFromEndpoint ¶
func RegisterAuthenticationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthenticationHandlerFromEndpoint is same as RegisterAuthenticationHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthenticationServer ¶
func RegisterAuthenticationServer(s *grpc.Server, srv AuthenticationServer)
func RegisterConduitHandler ¶
func RegisterConduitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterConduitHandler registers the http handlers for service Conduit to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterConduitHandlerClient ¶
func RegisterConduitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConduitClient) error
RegisterConduitHandler registers the http handlers for service Conduit to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ConduitClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ConduitClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ConduitClient" to call the correct interceptors.
func RegisterConduitHandlerFromEndpoint ¶
func RegisterConduitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterConduitHandlerFromEndpoint is same as RegisterConduitHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterConduitServer ¶
func RegisterConduitServer(s *grpc.Server, srv ConduitServer)
func RegisterProjectsHandler ¶
func RegisterProjectsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProjectsHandler registers the http handlers for service Projects to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProjectsHandlerClient ¶
func RegisterProjectsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectsClient) error
RegisterProjectsHandler registers the http handlers for service Projects to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProjectsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProjectsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProjectsClient" to call the correct interceptors.
func RegisterProjectsHandlerFromEndpoint ¶
func RegisterProjectsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProjectsHandlerFromEndpoint is same as RegisterProjectsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProjectsServer ¶
func RegisterProjectsServer(s *grpc.Server, srv ProjectsServer)
Types ¶
type AuthenticationClient ¶
type AuthenticationClient interface { // This rpc is used to check a valid user from other applications. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Logout(ctx context.Context, in *appscode_dtypes.VoidRequest, opts ...grpc.CallOption) (*appscode_dtypes.VoidResponse, error) CSRFToken(ctx context.Context, in *appscode_dtypes.VoidRequest, opts ...grpc.CallOption) (*CSRFTokenResponse, error) }
func NewAuthenticationClient ¶
func NewAuthenticationClient(cc *grpc.ClientConn) AuthenticationClient
type AuthenticationServer ¶
type AuthenticationServer interface { // This rpc is used to check a valid user from other applications. Login(context.Context, *LoginRequest) (*LoginResponse, error) Logout(context.Context, *appscode_dtypes.VoidRequest) (*appscode_dtypes.VoidResponse, error) CSRFToken(context.Context, *appscode_dtypes.VoidRequest) (*CSRFTokenResponse, error) }
type CSRFTokenResponse ¶
type CSRFTokenResponse struct {
CsrfToken string `protobuf:"bytes,1,opt,name=csrf_token,json=csrfToken" json:"csrf_token,omitempty"`
}
func (*CSRFTokenResponse) Descriptor ¶
func (*CSRFTokenResponse) Descriptor() ([]byte, []int)
func (*CSRFTokenResponse) GetCsrfToken ¶
func (m *CSRFTokenResponse) GetCsrfToken() string
func (*CSRFTokenResponse) ProtoMessage ¶
func (*CSRFTokenResponse) ProtoMessage()
func (*CSRFTokenResponse) Reset ¶
func (m *CSRFTokenResponse) Reset()
func (*CSRFTokenResponse) String ¶
func (m *CSRFTokenResponse) String() string
type ConduitClient ¶
type ConduitClient interface { // This rpc is used to check a valid user from other applications. WhoAmI(ctx context.Context, in *appscode_dtypes.VoidRequest, opts ...grpc.CallOption) (*ConduitWhoAmIResponse, error) // appctl used this to validates the user token with phabricator. Users(ctx context.Context, in *appscode_dtypes.VoidRequest, opts ...grpc.CallOption) (*ConduitUsersResponse, error) }
func NewConduitClient ¶
func NewConduitClient(cc *grpc.ClientConn) ConduitClient
type ConduitServer ¶
type ConduitServer interface { // This rpc is used to check a valid user from other applications. WhoAmI(context.Context, *appscode_dtypes.VoidRequest) (*ConduitWhoAmIResponse, error) // appctl used this to validates the user token with phabricator. Users(context.Context, *appscode_dtypes.VoidRequest) (*ConduitUsersResponse, error) }
type ConduitUser ¶
type ConduitUser struct { Phid string `protobuf:"bytes,1,opt,name=phid" json:"phid,omitempty"` UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName" json:"user_name,omitempty"` RealName string `protobuf:"bytes,3,opt,name=real_name,json=realName" json:"real_name,omitempty"` Image string `protobuf:"bytes,4,opt,name=image" json:"image,omitempty"` Uri string `protobuf:"bytes,5,opt,name=uri" json:"uri,omitempty"` Roles []string `protobuf:"bytes,6,rep,name=roles" json:"roles,omitempty"` PrimaryEmail string `protobuf:"bytes,7,opt,name=primary_email,json=primaryEmail" json:"primary_email,omitempty"` Preferences *Preferences `protobuf:"bytes,8,opt,name=preferences" json:"preferences,omitempty"` IsBot bool `protobuf:"varint,9,opt,name=is_bot,json=isBot" json:"is_bot,omitempty"` IsDisabled bool `protobuf:"varint,10,opt,name=is_disabled,json=isDisabled" json:"is_disabled,omitempty"` IsAdmin bool `protobuf:"varint,11,opt,name=is_admin,json=isAdmin" json:"is_admin,omitempty"` IsEmailVerified bool `protobuf:"varint,12,opt,name=is_email_verified,json=isEmailVerified" json:"is_email_verified,omitempty"` IsApproved bool `protobuf:"varint,13,opt,name=is_approved,json=isApproved" json:"is_approved,omitempty"` IsMailingList bool `protobuf:"varint,14,opt,name=is_mailing_list,json=isMailingList" json:"is_mailing_list,omitempty"` }
func (*ConduitUser) Descriptor ¶
func (*ConduitUser) Descriptor() ([]byte, []int)
func (*ConduitUser) GetImage ¶
func (m *ConduitUser) GetImage() string
func (*ConduitUser) GetIsAdmin ¶
func (m *ConduitUser) GetIsAdmin() bool
func (*ConduitUser) GetIsApproved ¶
func (m *ConduitUser) GetIsApproved() bool
func (*ConduitUser) GetIsBot ¶
func (m *ConduitUser) GetIsBot() bool
func (*ConduitUser) GetIsDisabled ¶
func (m *ConduitUser) GetIsDisabled() bool
func (*ConduitUser) GetIsEmailVerified ¶
func (m *ConduitUser) GetIsEmailVerified() bool
func (*ConduitUser) GetIsMailingList ¶
func (m *ConduitUser) GetIsMailingList() bool
func (*ConduitUser) GetPhid ¶
func (m *ConduitUser) GetPhid() string
func (*ConduitUser) GetPreferences ¶
func (m *ConduitUser) GetPreferences() *Preferences
func (*ConduitUser) GetPrimaryEmail ¶
func (m *ConduitUser) GetPrimaryEmail() string
func (*ConduitUser) GetRealName ¶
func (m *ConduitUser) GetRealName() string
func (*ConduitUser) GetRoles ¶
func (m *ConduitUser) GetRoles() []string
func (*ConduitUser) GetUri ¶
func (m *ConduitUser) GetUri() string
func (*ConduitUser) GetUserName ¶
func (m *ConduitUser) GetUserName() string
func (*ConduitUser) ProtoMessage ¶
func (*ConduitUser) ProtoMessage()
func (*ConduitUser) Reset ¶
func (m *ConduitUser) Reset()
func (*ConduitUser) String ¶
func (m *ConduitUser) String() string
type ConduitUsersResponse ¶
type ConduitUsersResponse struct {
Users []*ConduitUser `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}
func (*ConduitUsersResponse) Descriptor ¶
func (*ConduitUsersResponse) Descriptor() ([]byte, []int)
func (*ConduitUsersResponse) GetUsers ¶
func (m *ConduitUsersResponse) GetUsers() []*ConduitUser
func (*ConduitUsersResponse) ProtoMessage ¶
func (*ConduitUsersResponse) ProtoMessage()
func (*ConduitUsersResponse) Reset ¶
func (m *ConduitUsersResponse) Reset()
func (*ConduitUsersResponse) String ¶
func (m *ConduitUsersResponse) String() string
type ConduitWhoAmIResponse ¶
type ConduitWhoAmIResponse struct {
User *ConduitUser `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}
func (*ConduitWhoAmIResponse) Descriptor ¶
func (*ConduitWhoAmIResponse) Descriptor() ([]byte, []int)
func (*ConduitWhoAmIResponse) GetUser ¶
func (m *ConduitWhoAmIResponse) GetUser() *ConduitUser
func (*ConduitWhoAmIResponse) ProtoMessage ¶
func (*ConduitWhoAmIResponse) ProtoMessage()
func (*ConduitWhoAmIResponse) Reset ¶
func (m *ConduitWhoAmIResponse) Reset()
func (*ConduitWhoAmIResponse) String ¶
func (m *ConduitWhoAmIResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"` Token string `protobuf:"bytes,4,opt,name=token" json:"token,omitempty"` IssueToken bool `protobuf:"varint,5,opt,name=issue_token,json=issueToken" json:"issue_token,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetIssueToken ¶
func (m *LoginRequest) GetIssueToken() bool
func (*LoginRequest) GetNamespace ¶
func (m *LoginRequest) GetNamespace() string
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetToken ¶
func (m *LoginRequest) GetToken() string
func (*LoginRequest) GetUsername ¶
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) IsRequest ¶
func (m *LoginRequest) IsRequest()
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
func (*LoginRequest) Valid ¶
func (m *LoginRequest) Valid() (*gojsonschema.Result, error)
type LoginResponse ¶
type LoginResponse struct {
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetToken ¶
func (m *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
type Member ¶
type Member struct { Phid string `protobuf:"bytes,1,opt,name=phid" json:"phid,omitempty"` UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName" json:"user_name,omitempty"` RealName string `protobuf:"bytes,3,opt,name=real_name,json=realName" json:"real_name,omitempty"` IsAdmin bool `protobuf:"varint,4,opt,name=is_admin,json=isAdmin" json:"is_admin,omitempty"` }
func (*Member) Descriptor ¶
func (*Member) GetIsAdmin ¶
func (*Member) GetRealName ¶
func (*Member) GetUserName ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
type Preferences ¶
type Preferences struct { TimeZone string `protobuf:"bytes,1,opt,name=time_zone,json=timeZone" json:"time_zone,omitempty"` TimeFormat string `protobuf:"bytes,2,opt,name=time_format,json=timeFormat" json:"time_format,omitempty"` DateFormate string `protobuf:"bytes,3,opt,name=date_formate,json=dateFormate" json:"date_formate,omitempty"` }
func (*Preferences) Descriptor ¶
func (*Preferences) Descriptor() ([]byte, []int)
func (*Preferences) GetDateFormate ¶
func (m *Preferences) GetDateFormate() string
func (*Preferences) GetTimeFormat ¶
func (m *Preferences) GetTimeFormat() string
func (*Preferences) GetTimeZone ¶
func (m *Preferences) GetTimeZone() string
func (*Preferences) ProtoMessage ¶
func (*Preferences) ProtoMessage()
func (*Preferences) Reset ¶
func (m *Preferences) Reset()
func (*Preferences) String ¶
func (m *Preferences) String() string
type Project ¶
type Project struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Phid string `protobuf:"bytes,2,opt,name=phid" json:"phid,omitempty"` Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` Status string `protobuf:"bytes,4,opt,name=status" json:"status,omitempty"` ViewPolicy string `protobuf:"bytes,5,opt,name=view_policy,json=viewPolicy" json:"view_policy,omitempty"` EditPolicy string `protobuf:"bytes,6,opt,name=edit_policy,json=editPolicy" json:"edit_policy,omitempty"` JoinPolicy string `protobuf:"bytes,7,opt,name=join_policy,json=joinPolicy" json:"join_policy,omitempty"` MembershipLocked bool `protobuf:"varint,8,opt,name=membership_locked,json=membershipLocked" json:"membership_locked,omitempty"` HasSubprojects bool `protobuf:"varint,9,opt,name=has_subprojects,json=hasSubprojects" json:"has_subprojects,omitempty"` Members []*Member `protobuf:"bytes,10,rep,name=members" json:"members,omitempty"` CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` }
func (*Project) Descriptor ¶
func (*Project) GetCreatedAt ¶
func (*Project) GetEditPolicy ¶
func (*Project) GetHasSubprojects ¶
func (*Project) GetJoinPolicy ¶
func (*Project) GetMembers ¶
func (*Project) GetMembershipLocked ¶
func (*Project) GetViewPolicy ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
type ProjectListRequest ¶
type ProjectListRequest struct { WithMember bool `protobuf:"varint,1,opt,name=with_member,json=withMember" json:"with_member,omitempty"` Members []string `protobuf:"bytes,2,rep,name=members" json:"members,omitempty"` }
func (*ProjectListRequest) Descriptor ¶
func (*ProjectListRequest) Descriptor() ([]byte, []int)
func (*ProjectListRequest) GetMembers ¶
func (m *ProjectListRequest) GetMembers() []string
func (*ProjectListRequest) GetWithMember ¶
func (m *ProjectListRequest) GetWithMember() bool
func (*ProjectListRequest) IsRequest ¶
func (m *ProjectListRequest) IsRequest()
func (*ProjectListRequest) ProtoMessage ¶
func (*ProjectListRequest) ProtoMessage()
func (*ProjectListRequest) Reset ¶
func (m *ProjectListRequest) Reset()
func (*ProjectListRequest) String ¶
func (m *ProjectListRequest) String() string
func (*ProjectListRequest) Valid ¶
func (m *ProjectListRequest) Valid() (*gojsonschema.Result, error)
type ProjectListResponse ¶
type ProjectListResponse struct {
Projects []*Project `protobuf:"bytes,1,rep,name=projects" json:"projects,omitempty"`
}
func (*ProjectListResponse) Descriptor ¶
func (*ProjectListResponse) Descriptor() ([]byte, []int)
func (*ProjectListResponse) GetProjects ¶
func (m *ProjectListResponse) GetProjects() []*Project
func (*ProjectListResponse) ProtoMessage ¶
func (*ProjectListResponse) ProtoMessage()
func (*ProjectListResponse) Reset ¶
func (m *ProjectListResponse) Reset()
func (*ProjectListResponse) String ¶
func (m *ProjectListResponse) String() string
type ProjectMemberListRequest ¶
type ProjectMemberListRequest struct {
Uid string `protobuf:"bytes,1,opt,name=uid" json:"uid,omitempty"`
}
func (*ProjectMemberListRequest) Descriptor ¶
func (*ProjectMemberListRequest) Descriptor() ([]byte, []int)
func (*ProjectMemberListRequest) GetUid ¶
func (m *ProjectMemberListRequest) GetUid() string
func (*ProjectMemberListRequest) IsRequest ¶
func (m *ProjectMemberListRequest) IsRequest()
func (*ProjectMemberListRequest) ProtoMessage ¶
func (*ProjectMemberListRequest) ProtoMessage()
func (*ProjectMemberListRequest) Reset ¶
func (m *ProjectMemberListRequest) Reset()
func (*ProjectMemberListRequest) String ¶
func (m *ProjectMemberListRequest) String() string
func (*ProjectMemberListRequest) Valid ¶
func (m *ProjectMemberListRequest) Valid() (*gojsonschema.Result, error)
type ProjectMemberListResponse ¶
type ProjectMemberListResponse struct {
Project *Project `protobuf:"bytes,1,opt,name=project" json:"project,omitempty"`
}
func (*ProjectMemberListResponse) Descriptor ¶
func (*ProjectMemberListResponse) Descriptor() ([]byte, []int)
func (*ProjectMemberListResponse) GetProject ¶
func (m *ProjectMemberListResponse) GetProject() *Project
func (*ProjectMemberListResponse) ProtoMessage ¶
func (*ProjectMemberListResponse) ProtoMessage()
func (*ProjectMemberListResponse) Reset ¶
func (m *ProjectMemberListResponse) Reset()
func (*ProjectMemberListResponse) String ¶
func (m *ProjectMemberListResponse) String() string
type ProjectsClient ¶
type ProjectsClient interface { List(ctx context.Context, in *ProjectListRequest, opts ...grpc.CallOption) (*ProjectListResponse, error) Members(ctx context.Context, in *ProjectMemberListRequest, opts ...grpc.CallOption) (*ProjectMemberListResponse, error) }
func NewProjectsClient ¶
func NewProjectsClient(cc *grpc.ClientConn) ProjectsClient
type ProjectsServer ¶
type ProjectsServer interface { List(context.Context, *ProjectListRequest) (*ProjectListResponse, error) Members(context.Context, *ProjectMemberListRequest) (*ProjectMemberListResponse, error) }