Documentation ¶
Index ¶
- func NewService(appInfoRepository appinfo.Repository, vmRepository virtualmachine.VMRepository) apiV1.JannaAPIServer
- func RegisterServer(gserver *grpc.Server, service apiV1.JannaAPIServer, logger log.Logger)
- type Service
- func (s Service) AppInfo(ctx context.Context, in *apiV1.AppInfoRequest) (*apiV1.AppInfoResponse, error)
- func (s Service) VMDeploy(ctx context.Context, in *apiV1.VMDeployRequest) (*apiV1.VMDeployResponse, error)
- func (s Service) VMInfo(ctx context.Context, in *apiV1.VMInfoRequest) (*apiV1.VMInfoResponse, error)
- func (s Service) VMList(ctx context.Context, in *apiV1.VMListRequest) (*apiV1.VMListResponse, error)
- func (s Service) VMPower(ctx context.Context, in *apiV1.VMPowerRequest) (*apiV1.VMPowerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(appInfoRepository appinfo.Repository, vmRepository virtualmachine.VMRepository) apiV1.JannaAPIServer
func RegisterServer ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements apiV1.JannaAPIServer
func (Service) AppInfo ¶
func (s Service) AppInfo(ctx context.Context, in *apiV1.AppInfoRequest) (*apiV1.AppInfoResponse, error)
func (Service) VMDeploy ¶
func (s Service) VMDeploy(ctx context.Context, in *apiV1.VMDeployRequest) (*apiV1.VMDeployResponse, error)
func (Service) VMInfo ¶
func (s Service) VMInfo(ctx context.Context, in *apiV1.VMInfoRequest) (*apiV1.VMInfoResponse, error)
func (Service) VMList ¶
func (s Service) VMList(ctx context.Context, in *apiV1.VMListRequest) (*apiV1.VMListResponse, error)
func (Service) VMPower ¶
func (s Service) VMPower(ctx context.Context, in *apiV1.VMPowerRequest) (*apiV1.VMPowerResponse, error)
Click to show internal directories.
Click to hide internal directories.