controllers

package
v0.0.0-...-73c8340 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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

IsProjectAvailable checks to see if a project is available.

func (*Server) RegisterProject

RegisterProject registers a new project..

Jump to

Keyboard shortcuts

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