services

package
v0.0.15-r6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

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.

Index

Constants

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

Variables

View Source
var DefaultBillingPlanSettings = sc.Setting[InstanceBillingPlanSettings]{
	Value: InstanceBillingPlanSettings{
		Required: true,
	},
	Description: "Instances Billing Plans Settings",
	Public:      false,
}

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) *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) 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) 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)

Directories

Path Synopsis
Package proto is a reverse proxy.
Package proto is a reverse proxy.

Jump to

Keyboard shortcuts

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