mapper

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MapperName = "qsc"
	Key        = "qsc/[%s]"
	RootCAKey  = "rootca"
)

Variables

This section is empty.

Functions

func BuildQSCKey

func BuildQSCKey(qscName string) []byte

func BuildQSCKeyPrefix

func BuildQSCKeyPrefix() []byte

Types

type Mapper

type Mapper struct {
	*mapper.BaseMapper
}

func GetMapper

func GetMapper(ctx context.Context) *Mapper

func NewMapper

func NewMapper() *Mapper

func (*Mapper) Copy

func (mapper *Mapper) Copy() mapper.IMapper

func (*Mapper) Exists

func (mapper *Mapper) Exists(qscName string) bool

func (*Mapper) GetQSCRootCA

func (mapper *Mapper) GetQSCRootCA() crypto.PubKey

获取CA

func (*Mapper) GetQSCs

func (mapper *Mapper) GetQSCs() []types.Info

func (*Mapper) GetQsc

func (mapper *Mapper) GetQsc(qscName string) (qscinfo *types.Info)

func (*Mapper) SaveQsc

func (mapper *Mapper) SaveQsc(qscInfo *types.Info)

func (*Mapper) SetQSCRootCA

func (mapper *Mapper) SetQSCRootCA(pubKey crypto.PubKey)

保存CA

Jump to

Keyboard shortcuts

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