Documentation ¶
Overview ¶
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2021-2022 Nikita Ivanovski info@slnt-opp.xyz
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type InstancesGroupDriverContext
- type MonitoringRoutineConf
- type Routine
- type ServicesServer
- func (s *ServicesServer) Create(ctx context.Context, request *pb.CreateRequest) (*pb.Service, error)
- func (s *ServicesServer) Delete(ctx context.Context, request *pb.DeleteRequest) (response *pb.DeleteResponse, err error)
- func (s *ServicesServer) DoTestServiceConfig(ctx context.Context, log *zap.Logger, request *pb.CreateRequest) (*pb.TestConfigResponse, *graph.Namespace, error)
- func (s *ServicesServer) Down(ctx context.Context, request *pb.DownRequest) (*pb.DownResponse, error)
- func (s *ServicesServer) Get(ctx context.Context, request *pb.GetRequest) (res *pb.Service, err error)
- func (s *ServicesServer) GetProvisions(ctx context.Context, req *pb.GetProvisionsRequest) (*pb.GetProvisionsResponse, error)
- func (s *ServicesServer) GetStates(ctx context.Context, request *pb.GetStatesRequest) (*stpb.GetStatesResponse, error)
- func (s *ServicesServer) GetStatesInternal(ctx context.Context, service *pb.Service) (*stpb.GetStatesResponse, error)
- func (s *ServicesServer) List(ctx context.Context, request *pb.ListRequest) (response *pb.ListResponse, err error)
- func (s *ServicesServer) MonitoringRoutine(ctx context.Context)
- func (s *ServicesServer) MonitoringRoutineState() Routine
- func (s *ServicesServer) PerformServiceAction(ctx context.Context, req *pb.PerformActionRequest) (res *pb.PerformActionResponse, err error)
- func (s *ServicesServer) RegisterDriver(type_key string, client driverpb.DriverServiceClient)
- func (s *ServicesServer) TestConfig(ctx context.Context, request *pb.CreateRequest) (*pb.TestConfigResponse, error)
- func (s *ServicesServer) Up(ctx context.Context, request *pb.UpRequest) (*pb.UpResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstancesGroupDriverContext ¶
type InstancesGroupDriverContext struct {
// contains filtered or unexported fields
}
type MonitoringRoutineConf ¶
type MonitoringRoutineConf struct {
Frequency int `json:"freq"` // Frequency in Seconds
}
type ServicesServer ¶
type ServicesServer struct { pb.UnimplementedServicesServiceServer // contains filtered or unexported fields }
func NewServicesServer ¶
func NewServicesServer(log *zap.Logger, db driver.Database, gc stpb.StatesServiceClient) *ServicesServer
func (*ServicesServer) Create ¶
func (s *ServicesServer) Create(ctx context.Context, request *pb.CreateRequest) (*pb.Service, error)
func (*ServicesServer) Delete ¶
func (s *ServicesServer) Delete(ctx context.Context, request *pb.DeleteRequest) (response *pb.DeleteResponse, err error)
func (*ServicesServer) DoTestServiceConfig ¶
func (s *ServicesServer) DoTestServiceConfig(ctx context.Context, log *zap.Logger, request *pb.CreateRequest) (*pb.TestConfigResponse, *graph.Namespace, error)
func (*ServicesServer) Down ¶
func (s *ServicesServer) Down(ctx context.Context, request *pb.DownRequest) (*pb.DownResponse, error)
func (*ServicesServer) Get ¶
func (s *ServicesServer) Get(ctx context.Context, request *pb.GetRequest) (res *pb.Service, err error)
func (*ServicesServer) GetProvisions ¶
func (s *ServicesServer) GetProvisions(ctx context.Context, req *pb.GetProvisionsRequest) (*pb.GetProvisionsResponse, error)
func (*ServicesServer) GetStates ¶
func (s *ServicesServer) GetStates(ctx context.Context, request *pb.GetStatesRequest) (*stpb.GetStatesResponse, error)
Gets statuses Instanses of Servce from pkg/statuses
func (*ServicesServer) GetStatesInternal ¶
func (s *ServicesServer) GetStatesInternal(ctx context.Context, service *pb.Service) (*stpb.GetStatesResponse, error)
func (*ServicesServer) List ¶
func (s *ServicesServer) List(ctx context.Context, request *pb.ListRequest) (response *pb.ListResponse, err error)
func (*ServicesServer) MonitoringRoutine ¶
func (s *ServicesServer) MonitoringRoutine(ctx context.Context)
func (*ServicesServer) MonitoringRoutineState ¶
func (s *ServicesServer) MonitoringRoutineState() Routine
func (*ServicesServer) PerformServiceAction ¶
func (s *ServicesServer) PerformServiceAction(ctx context.Context, req *pb.PerformActionRequest) (res *pb.PerformActionResponse, err error)
func (*ServicesServer) RegisterDriver ¶
func (s *ServicesServer) RegisterDriver(type_key string, client driverpb.DriverServiceClient)
func (*ServicesServer) TestConfig ¶
func (s *ServicesServer) TestConfig(ctx context.Context, request *pb.CreateRequest) (*pb.TestConfigResponse, error)
func (*ServicesServer) Up ¶
func (s *ServicesServer) Up(ctx context.Context, request *pb.UpRequest) (*pb.UpResponse, error)