mysql

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SymmetricEncrypt

func SymmetricEncrypt(writeHost, localPassword string) string

SymmetricEncrypt 一个简单的对称加密生成连接 mysql 实例的 token, 使用了大量的硬编码.

Types

type KMSWrapper

type KMSWrapper interface {
	CreateKey() (*kmstypes.CreateKeyResponse, error)
	Encrypt(plaintext, keyID string) (*kmstypes.EncryptResponse, error)
	Decrypt(ciphertextBase64, keyID string) (*kmstypes.DecryptResponse, error)
}

func NewKMSWrapper

func NewKMSWrapper(bdl *bundle.Bundle) KMSWrapper

type PermissionWrapper

type PermissionWrapper interface {
	CheckPermission(req *apistructs.PermissionCheckRequest) (*apistructs.PermissionCheckResponseData, error)
	CreateAuditEvent(audits *apistructs.AuditCreateRequest) error
	GetProject(id uint64) (*apistructs.ProjectDTO, error)
	GetApp(id uint64) (*apistructs.ApplicationDTO, error)
}

Jump to

Keyboard shortcuts

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