Documentation ¶
Index ¶
- type Server
- type Service
- func (sv *Service) CreateProject(ctx context.Context, request *services.CreateProjectRequest) (*services.CreateProjectResponse, error)
- func (sv *Service) DeleteProject(ctx context.Context, request *services.DeleteProjectRequest) (*services.DeleteProjectResponse, error)
- func (sv *Service) GetProject(ctx context.Context, request *services.GetProjectRequest) (*services.GetProjectResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { ReadService services.ReadService WriteService services.WriteService UserAgentKV *asfservices.UserAgentKVPlugin FQNameService *asfservices.FQNameTranslationPlugin InTransactionDoer asfservices.InTransactionDoer Log *logrus.Entry }
Server implementation.
func (*Server) RegisterGRPCAPI ¶
func (s *Server) RegisterGRPCAPI(r apiserver.GRPCRouter)
RegisterGRPCAPI does nothing, as the Neutron plugin does not use GRPC.
func (*Server) RegisterHTTPAPI ¶
func (s *Server) RegisterHTTPAPI(r apiserver.HTTPRouter)
RegisterHTTPAPI registers Neutron endpoints.
type Service ¶
type Service struct { services.BaseService Keystone keystoneClient ReadService services.ReadService MetadataGetter asfservices.MetadataGetter WriteService services.WriteService InTransactionDoer asfservices.InTransactionDoer }
Service handles neutron specific logic
func (*Service) CreateProject ¶
func (sv *Service) CreateProject( ctx context.Context, request *services.CreateProjectRequest, ) (*services.CreateProjectResponse, error)
CreateProject creates the project and ensures its default security group exists.
func (*Service) DeleteProject ¶
func (sv *Service) DeleteProject( ctx context.Context, request *services.DeleteProjectRequest, ) (*services.DeleteProjectResponse, error)
DeleteProject deletes the project with its default security group.
func (*Service) GetProject ¶
func (sv *Service) GetProject( ctx context.Context, request *services.GetProjectRequest, ) (*services.GetProjectResponse, error)
GetProject ensures that projects in keystone exists in contrail and returns it
Click to show internal directories.
Click to hide internal directories.