import "github.com/hyperledger/fabric-ca/lib/spi"
affiliation.go
Affiliation is the API for a user's affiliation
type Affiliation interface { GetName() string GetPrekey() string GetLevel() int }
func NewAffiliation(name, prekey string, level int) Affiliation
NewAffiliation returns an affiliationImpl object