service

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExistTypeMicroservice = "microservice"
	ExistTypeSchema       = "schema"
)

Variables

This section is empty.

Functions

func AddDependenciesReqValidator

func AddDependenciesReqValidator() *validate.Validator

func AddRulesReqValidator

func AddRulesReqValidator() *validate.Validator

func AddTagsReqValidator

func AddTagsReqValidator() *validate.Validator

func BatchFindInstanceReqValidator

func BatchFindInstanceReqValidator() *validate.Validator

func CommitSchemaInfo

func CommitSchemaInfo(domainProject string, serviceID string, schema *pb.Schema) []registry.PluginOp

func CreateDependenciesReqValidator

func CreateDependenciesReqValidator() *validate.Validator

func CreateServiceReqValidator

func CreateServiceReqValidator() *validate.Validator

func DeleteRulesReqValidator

func DeleteRulesReqValidator() *validate.Validator

func DeleteTagReqValidator

func DeleteTagReqValidator() *validate.Validator

func ExistenceReqValidator

func ExistenceReqValidator() *validate.Validator

func FindInstanceReqValidator

func FindInstanceReqValidator() *validate.Validator

func GetInstanceReqValidator

func GetInstanceReqValidator() *validate.Validator

func GetRulesReqValidator

func GetRulesReqValidator() *validate.Validator

func GetSchemaReqValidator

func GetSchemaReqValidator() *validate.Validator

func GetSchemasFromDatabase

func GetSchemasFromDatabase(ctx context.Context, domainProject string, serviceID string) ([]*pb.Schema, error)

func GetServiceReqValidator

func GetServiceReqValidator() *validate.Validator

func GetTagsReqValidator

func GetTagsReqValidator() *validate.Validator

func HeartbeatReqValidator

func HeartbeatReqValidator() *validate.Validator

func MicroServiceKeyValidator

func MicroServiceKeyValidator() *validate.Validator

func ModifySchemaReqValidator

func ModifySchemaReqValidator() *validate.Validator

func ModifySchemasReqValidator

func ModifySchemasReqValidator() *validate.Validator

func RegisterInstanceReqValidator

func RegisterInstanceReqValidator() *validate.Validator

func UpdateInstancePropsReqValidator

func UpdateInstancePropsReqValidator() *validate.Validator

func UpdateInstanceReqValidator

func UpdateInstanceReqValidator() *validate.Validator

func UpdateRuleReqValidator

func UpdateRuleReqValidator() *validate.Validator

func UpdateServicePropsReqValidator

func UpdateServicePropsReqValidator() *validate.Validator

func UpdateTagReqValidator

func UpdateTagReqValidator() *validate.Validator

func Validate

func Validate(v interface{}) error

func ValidateAccountLogin

func ValidateAccountLogin(a *rbacframe.Account) error

func ValidateChangePWD

func ValidateChangePWD(a *rbacframe.Account) error

func ValidateCreateAccount

func ValidateCreateAccount(a *rbacframe.Account) error

Types

type InstanceService

type InstanceService struct {
}

func (*InstanceService) BatchFind

func (*InstanceService) ClusterHealth

func (s *InstanceService) ClusterHealth(ctx context.Context) (*pb.GetInstancesResponse, error)

func (*InstanceService) Find

func (*InstanceService) GetInstances

func (*InstanceService) GetOneInstance

func (*InstanceService) Heartbeat

func (*InstanceService) HeartbeatSet

func (*InstanceService) Register

func (*InstanceService) Unregister

func (*InstanceService) UpdateInstanceProperties

func (*InstanceService) UpdateStatus

func (*InstanceService) Watch

func (*InstanceService) WatchPreOpera

func (s *InstanceService) WatchPreOpera(ctx context.Context, in *pb.WatchInstanceRequest) error

func (*InstanceService) WebSocketListAndWatch

func (s *InstanceService) WebSocketListAndWatch(ctx context.Context, in *pb.WatchInstanceRequest, conn *websocket.Conn)

func (*InstanceService) WebSocketWatch

func (s *InstanceService) WebSocketWatch(ctx context.Context, in *pb.WatchInstanceRequest, conn *websocket.Conn)

type MicroServiceService

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

func NewMicroServiceService

func NewMicroServiceService(schemaEditable bool, instCtrlServer proto.ServiceInstanceCtrlServerEx) *MicroServiceService

func (*MicroServiceService) AddDependenciesForMicroServices

func (s *MicroServiceService) AddDependenciesForMicroServices(ctx context.Context, in *pb.AddDependenciesRequest) (*pb.AddDependenciesResponse, error)

func (*MicroServiceService) AddOrUpdateDependencies

func (s *MicroServiceService) AddOrUpdateDependencies(ctx context.Context, dependencyInfos []*pb.ConsumerDependency, override bool) (*pb.Response, error)

func (*MicroServiceService) AddRule

func (*MicroServiceService) AddTags

func (*MicroServiceService) Create

func (*MicroServiceService) CreateDependenciesForMicroServices

func (s *MicroServiceService) CreateDependenciesForMicroServices(ctx context.Context, in *pb.CreateDependenciesRequest) (*pb.CreateDependenciesResponse, error)

func (*MicroServiceService) CreateServiceEx

func (s *MicroServiceService) CreateServiceEx(ctx context.Context, in *pb.CreateServiceRequest, serviceID string) (*pb.CreateServiceResponse, error)

func (*MicroServiceService) CreateServicePri

func (*MicroServiceService) Delete

func (*MicroServiceService) DeleteRule

func (*MicroServiceService) DeleteSchema

func (*MicroServiceService) DeleteServicePri

func (s *MicroServiceService) DeleteServicePri(ctx context.Context, serviceID string, force bool) (*pb.Response, error)

func (*MicroServiceService) DeleteServices

func (s *MicroServiceService) DeleteServices(ctx context.Context, request *pb.DelServicesRequest) (*pb.DelServicesResponse, error)

func (*MicroServiceService) DeleteTags

func (*MicroServiceService) Exist

func (*MicroServiceService) GetAllSchemaInfo

func (*MicroServiceService) GetConsumerDependencies

func (*MicroServiceService) GetOne

func (*MicroServiceService) GetProviderDependencies

func (*MicroServiceService) GetRule

func (*MicroServiceService) GetSchemaInfo

func (*MicroServiceService) GetServices

func (*MicroServiceService) GetTags

func (*MicroServiceService) ModifySchema

ModifySchema modifies a specific schema 1. When the service is in production environment and schema is not editable: If the request contains a new schemaID (the number of schemaIDs of the service is also required to be 0, or the request will be rejected), the new schemaID will be automatically added to the service information. Schema is only allowed to add. 2. Other cases: If the request contains a new schemaID, the new schemaID will be automatically added to the service information. Schema is allowed to add/modify.

func (*MicroServiceService) ModifySchemas

ModifySchemas covers all the schemas of a service. To cover the old schemas, ModifySchemas adds new schemas into, delete and modify the old schemas. 1. When the service is in production environment and schema is not editable: If the request contains a new schemaID (the number of schemaIDs of the service is also required to be 0, or the request will be rejected), the new schemaID will be automatically added to the service information. Schema is only allowed to add. 2. Other cases: If the request contains a new schemaID, the new schemaID will be automatically added to the service information. Schema is allowed to add/delete/modify.

func (*MicroServiceService) UpdateProperties

func (*MicroServiceService) UpdateRule

func (*MicroServiceService) UpdateTag

Directories

Path Synopsis
dep
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.
Package kv supplies kv store
Package kv supplies kv store
ms
dao
Package rbac is dao layer API to help service center manage account, policy and role info
Package rbac is dao layer API to help service center manage account, policy and role info
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.

Jump to

Keyboard shortcuts

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