organization

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 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 Organization

type Organization struct {
	// contains filtered or unexported fields
}

Organization represents a loaded organization definition.

func New

func New(name string, ca *identity.Identity, tlsCA *identity.Identity) (*Organization, error)

New creates a new organization.

func (*Organization) Admin

func (o *Organization) Admin() *identity.Identity

Admin returns the admin identity for the organization.

func (*Organization) CA

func (o *Organization) CA() *identity.Identity

CA returns the CA for the organization.

func (*Organization) CAAdmin

func (o *Organization) CAAdmin() *identity.Identity

CAAdmin returns the CA admin identity for the organization.

func (*Organization) GetIdentities

func (o *Organization) GetIdentities() []*identity.Identity

GetIdentities returns all identities for the organization.

func (*Organization) MSPID

func (o *Organization) MSPID() string

MSPID returns the MSP ID for the organization.

func (*Organization) Name

func (o *Organization) Name() string

Name returns the name of the organization.

func (*Organization) SetCAAdmin

func (o *Organization) SetCAAdmin(id *identity.Identity)

SetCAAdmin adds an identity to the organization.

Jump to

Keyboard shortcuts

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