...

Package util

import "github.com/hyperledger/fabric-ca/lib/server/db/util"
Overview
Index

Overview ▾

func GetCADataSource

func GetCADataSource(dbtype, datasource string, cacount int) string

GetCADataSource returns a datasource with a unqiue database name

func GetDBName

func GetDBName(datasource string) string

GetDBName gets database name from connection string

func GetError

func GetError(err error, getType string) error

GetError wraps error passed in with context

func IsGetError

func IsGetError(err error) bool

IsGetError returns true of if the error is for is a database get error (not found)

func MaskDBCred

func MaskDBCred(str string) string

MaskDBCred hides DB credentials in connection string

type Levels

Levels contains the levels of identities, affiliations, and certificates

type Levels struct {
    Identity    int
    Affiliation int
    Certificate int
    Credential  int
    RAInfo      int
    Nonce       int
}