identity

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnrollRequest

type EnrollRequest struct {
	Name     string          `json:"name"`
	Secret   string          `json:"secret"`
	CAName   string          `json:"caname"`
	Profile  string          `json:"profile"`
	AttrReqs map[string]bool `json:"attributes"`
}

type Identity

type Identity struct {
	RegisterResponse
	MaxEnrollments int               `json:"maxEnrollments"`
	Type           string            `json:"type"`
	Affiliation    string            `json:"affiliation"`
	Attributes     map[string]string `json:"attributes"`
	CAName         string            `json:"caname"`
	Organization   string            `json:"organization,omitempty"`
	MSPID          string            `json:"mspId,omitempty"`
	EnrollmentCert []byte            `json:"enrollmentCert,omitempty"`
	CACert         []byte            `json:"caCert,omitempty"`
}

type RegisterResponse

type RegisterResponse struct {
	Name   string `json:"name"`
	Secret string `json:"secret,omitempty"`
}

type Response added in v0.9.18

type Response struct {
	Name    string `json:"name"`
	Success bool   `json:"success"`
}

type RevokeRequest added in v0.9.10

type RevokeRequest struct {
	Name   string `json:"name"`
	Reason string `json:"reason"`
	CAName string `json:"caname"`
	GenCRL bool   `json:"generateCRL"`
}

type RevokeResponse added in v0.9.10

type RevokeResponse struct {
	RevokedCerts []map[string]string `json:"revokedCerts"`
	CRL          []byte              `json:"CRL"`
}

Jump to

Keyboard shortcuts

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