registry

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: 27 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.

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.

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

This section is empty.

Variables

This section is empty.

Functions

func MakeAccountMessage

func MakeAccountMessage(acc graph.Account) *accountspb.Account

func MergeMaps

func MergeMaps[K comparable](old map[K]interface{}, new map[K]interface{}) map[K]interface{}

Types

type AccountPostCreateSettings

type AccountPostCreateSettings struct {
	CreateNamespace bool `json:"create-ns"`
}

type AccountsServiceServer

type AccountsServiceServer struct {
	pb.UnimplementedAccountsServiceServer

	SIGNING_KEY []byte
	// contains filtered or unexported fields
}

func NewAccountsServer

func NewAccountsServer(log *zap.Logger, db driver.Database, rdb *redis.Client) *AccountsServiceServer

func (*AccountsServiceServer) Create

func (*AccountsServiceServer) Delete

func (*AccountsServiceServer) EnsureRootExists

func (s *AccountsServiceServer) EnsureRootExists(passwd string) error

func (*AccountsServiceServer) Get

func (*AccountsServiceServer) List

func (*AccountsServiceServer) SetCredentials

func (*AccountsServiceServer) SetupSettingsClient

func (s *AccountsServiceServer) SetupSettingsClient(settingsClient settingspb.SettingsServiceClient, internal_token string)

func (*AccountsServiceServer) Suspend

func (*AccountsServiceServer) Token

func (*AccountsServiceServer) Unsuspend

func (*AccountsServiceServer) Update

Update Account Supports updating Title and Data

Updating Data rules:
	1. If Data is nil - it'll be skipped
	2. If Data is not nil but has no keys - it'll be wiped
	3. If value of one of the Data keys is nil - it'll be deleted from Data

type NamespacesServiceServer

type NamespacesServiceServer struct {
	pb.UnimplementedNamespacesServiceServer
	// contains filtered or unexported fields
}

func NewNamespacesServer

func NewNamespacesServer(log *zap.Logger, db driver.Database) *NamespacesServiceServer

func (*NamespacesServiceServer) Create

func (*NamespacesServiceServer) Delete

func (*NamespacesServiceServer) Join

func (*NamespacesServiceServer) List

func (*NamespacesServiceServer) Patch added in v0.0.18

Jump to

Keyboard shortcuts

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