services

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Copyright © 2021-2023 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

Constants

View Source
const IBPSKey = "instance-billing-plan-settings"

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceBillingPlanSettings

type InstanceBillingPlanSettings struct {
	Required bool `json:"required"` // each instance must have it
}

type InstancesGroupDriverContext

type InstancesGroupDriverContext struct {
	// contains filtered or unexported fields
}

type ServicesServer

type ServicesServer struct {
	pb.UnimplementedServicesServiceServer
	// contains filtered or unexported fields
}

func NewServicesServer

func NewServicesServer(_log *zap.Logger, db driver.Database, ps *pubsub.PubSub) *ServicesServer

func (*ServicesServer) CheckRequestorStatus added in v0.0.18

func (s *ServicesServer) CheckRequestorStatus(ctx context.Context, id driver.DocumentID) bool

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, service *pb.Service) (*pb.TestConfigResponse, 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) List

func (s *ServicesServer) List(ctx context.Context, request *pb.ListRequest) (response *pb.Services, err error)

func (*ServicesServer) RegisterDriver

func (s *ServicesServer) RegisterDriver(type_key string, client driverpb.DriverServiceClient)

func (*ServicesServer) SetupBillingClient

func (s *ServicesServer) SetupBillingClient(bC bpb.BillingServiceClient)

func (*ServicesServer) SetupSettingsClient

func (s *ServicesServer) SetupSettingsClient(stC stpb.SettingsServiceClient, internal_token string)

func (*ServicesServer) Stream

func (*ServicesServer) Suspend

func (s *ServicesServer) Suspend(ctx context.Context, request *pb.SuspendRequest) (*pb.SuspendResponse, error)

func (*ServicesServer) TestConfig

func (s *ServicesServer) TestConfig(ctx context.Context, request *pb.CreateRequest) (*pb.TestConfigResponse, error)

func (*ServicesServer) Unsuspend

func (s *ServicesServer) Unsuspend(ctx context.Context, request *pb.UnsuspendRequest) (*pb.UnsuspendResponse, error)

func (*ServicesServer) Up

func (s *ServicesServer) Up(ctx context.Context, request *pb.UpRequest) (*pb.UpResponse, error)

func (*ServicesServer) Update

func (s *ServicesServer) Update(ctx context.Context, service *pb.Service) (*pb.Service, error)

Jump to

Keyboard shortcuts

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