Documentation ¶
Overview ¶
Package models implement models
Index ¶
- func DummyConsortium(consortiumDomain string, stakeholders []*models.StakeholderListElement) *models.Consortium
- func DummyConsortiumJSON(consortiumDomain string, stakeholders []*models.StakeholderListElement) (string, error)
- func DummyJWSWrap(data string) string
- func DummyStakeholder(stakeholderDomain string, endpoints []string) *models.Stakeholder
- func DummyStakeholderJSON(stakeholderDomain string, endpoints []string) (string, error)
- func WrapConsortium(consortium *models.Consortium) (string, error)
- func WrapStakeholder(stakeholder *models.Stakeholder) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyConsortium ¶
func DummyConsortium(consortiumDomain string, stakeholders []*models.StakeholderListElement) *models.Consortium
DummyConsortium creates a default consortium object.
func DummyConsortiumJSON ¶
func DummyConsortiumJSON(consortiumDomain string, stakeholders []*models.StakeholderListElement) (string, error)
DummyConsortiumJSON creates a dummy consortium JSON config.
func DummyJWSWrap ¶
DummyJWSWrap wraps a config JSON in a dummy JWS.
func DummyStakeholder ¶
func DummyStakeholder(stakeholderDomain string, endpoints []string) *models.Stakeholder
DummyStakeholder creates a dummy stakeholder JSON config.
func DummyStakeholderJSON ¶
DummyStakeholderJSON creates a dummy stakeholder JSON config.
func WrapConsortium ¶
func WrapConsortium(consortium *models.Consortium) (string, error)
WrapConsortium marshals a consortium to JSON and wraps it in a dummy JWS.
func WrapStakeholder ¶
func WrapStakeholder(stakeholder *models.Stakeholder) (string, error)
WrapStakeholder marshals a stakeholder to JSON and wraps it in a dummy JWS.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.