Documentation ¶
Index ¶
- type ProjectDatastore
- type Server
- func (s *Server) GetProjectByName(ctx context.Context, req *projectmanagerpb.GetProjectByNameRequest) (*projectmanagerpb.ProjectInfo, error)
- func (s *Server) GetProjectForOrg(ctx context.Context, req *uuidpb.UUID) (*projectmanagerpb.ProjectInfo, error)
- func (s *Server) IsProjectAvailable(ctx context.Context, req *projectmanagerpb.IsProjectAvailableRequest) (*projectmanagerpb.IsProjectAvailableResponse, error)
- func (s *Server) RegisterProject(ctx context.Context, req *projectmanagerpb.RegisterProjectRequest) (*projectmanagerpb.RegisterProjectResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectDatastore ¶
type ProjectDatastore interface { CheckAvailability(uuid.UUID, string) (bool, error) RegisterProject(uuid.UUID, string) error GetProjectForOrg(uuid.UUID) (*datastore.ProjectInfo, error) GetProjectByName(uuid.UUID, string) (*datastore.ProjectInfo, error) }
ProjectDatastore is the required interface for the backing data model.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server defines an gRPC server type.
func NewServer ¶
func NewServer(datastore ProjectDatastore) *Server
NewServer creates GRPC handlers.
func (*Server) GetProjectByName ¶
func (s *Server) GetProjectByName(ctx context.Context, req *projectmanagerpb.GetProjectByNameRequest) (*projectmanagerpb.ProjectInfo, error)
GetProjectByName gets the project information based on the passed in project name.
func (*Server) GetProjectForOrg ¶
func (s *Server) GetProjectForOrg(ctx context.Context, req *uuidpb.UUID) (*projectmanagerpb.ProjectInfo, error)
GetProjectForOrg gets the project information based on the passed in ID.
func (*Server) IsProjectAvailable ¶
func (s *Server) IsProjectAvailable(ctx context.Context, req *projectmanagerpb.IsProjectAvailableRequest) (*projectmanagerpb.IsProjectAvailableResponse, error)
IsProjectAvailable checks to see if a project is available.
func (*Server) RegisterProject ¶
func (s *Server) RegisterProject(ctx context.Context, req *projectmanagerpb.RegisterProjectRequest) (*projectmanagerpb.RegisterProjectResponse, error)
RegisterProject registers a new project..
Click to show internal directories.
Click to hide internal directories.