Documentation ¶
Index ¶
- Constants
- func AppendUnique(slice []string, val string) []string
- type InviteKey
- type NodeIndex
- type NodeIndexData
- type OrgIndex
- func (index *OrgIndex) AddAdmin(name, id string) error
- func (index *OrgIndex) AddCA(name, id string) error
- func (index *OrgIndex) AddCATags(ca string, i interface{}) error
- func (index *OrgIndex) AddCSR(name, id string) error
- func (index *OrgIndex) AddCSRTags(csr string, i interface{}) error
- func (index *OrgIndex) AddCert(name, id string) error
- func (index *OrgIndex) AddCertTags(cert string, i interface{}) error
- func (index *OrgIndex) AddEntityTags(entity string, i interface{}) error
- func (index *OrgIndex) AddInviteKey(id, key, name string) error
- func (index *OrgIndex) AddNode(name, id string) error
- func (index *OrgIndex) AddPairingKey(id, key string, i interface{}) error
- func (index *OrgIndex) ClearCATags(ca string) error
- func (index *OrgIndex) ClearCSRTags(csr string) error
- func (index *OrgIndex) ClearCertTags(cert string) error
- func (index *OrgIndex) Dump() string
- func (index *OrgIndex) GetAdmin(name string) (string, error)
- func (index *OrgIndex) GetAdmins() (map[string]string, error)
- func (index *OrgIndex) GetCA(name string) (string, error)
- func (index *OrgIndex) GetCAs() map[string]string
- func (index *OrgIndex) GetCSR(name string) (string, error)
- func (index *OrgIndex) GetCSRs() map[string]string
- func (index *OrgIndex) GetCert(name string) (string, error)
- func (index *OrgIndex) GetCerts() map[string]string
- func (index *OrgIndex) GetInviteKey(id string) (*InviteKey, error)
- func (index *OrgIndex) GetNode(name string) (string, error)
- func (index *OrgIndex) GetNodes() map[string]string
- func (index *OrgIndex) GetPairingKey(id string) (*PairingKey, error)
- func (index *OrgIndex) GetPairingKeys() map[string]*PairingKey
- func (index *OrgIndex) Id() string
- func (index *OrgIndex) Load(jsonString interface{}) error
- func (index *OrgIndex) RemoveAdmin(name string) error
- func (index *OrgIndex) RemoveCA(name string) error
- func (index *OrgIndex) RemoveCSR(name string) error
- func (index *OrgIndex) RemoveCert(name string) error
- func (index *OrgIndex) RemoveNode(name string) error
- func (index *OrgIndex) RemovePairingKey(id string) error
- type OrgIndexData
- type PairingKey
Constants ¶
View Source
const NodeIndexDefault string = `` /* 230-byte string literal not displayed */
View Source
const NodeIndexSchema string = `` /* 1744-byte string literal not displayed */
View Source
const OrgIndexDefault string = `` /* 583-byte string literal not displayed */
View Source
const OrgIndexSchema string = `` /* 3823-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AppendUnique ¶
Types ¶
type NodeIndex ¶
type NodeIndex struct { document.Document Data NodeIndexData }
func (*NodeIndex) AddCertTags ¶
type NodeIndexData ¶
type NodeIndexData struct { Scope string `json:"scope"` Version int `json:"version"` Type string `json:"type"` Options string `json:"options"` Body struct { Id string `json:"id"` ParentId string `json:"parent-id"` Tags struct { CertForward map[string][]string `json:"cert-forward"` CertReverse map[string][]string `json:"cert-reverse"` } `json:"tags"` } `json:"body"` }
type OrgIndex ¶
type OrgIndex struct { document.Document Data OrgIndexData }
func (*OrgIndex) AddCSRTags ¶
func (*OrgIndex) AddCertTags ¶
func (*OrgIndex) AddEntityTags ¶
func (*OrgIndex) AddInviteKey ¶
func (*OrgIndex) AddPairingKey ¶
func (*OrgIndex) ClearCATags ¶
func (*OrgIndex) ClearCSRTags ¶
func (*OrgIndex) ClearCertTags ¶
func (*OrgIndex) GetPairingKey ¶
func (index *OrgIndex) GetPairingKey(id string) (*PairingKey, error)
func (*OrgIndex) GetPairingKeys ¶
func (index *OrgIndex) GetPairingKeys() map[string]*PairingKey
func (*OrgIndex) RemoveAdmin ¶
func (*OrgIndex) RemoveCert ¶
func (*OrgIndex) RemoveNode ¶
func (*OrgIndex) RemovePairingKey ¶
type OrgIndexData ¶
type OrgIndexData struct { Scope string `json:"scope"` Version int `json:"version"` Type string `json:"type"` Options string `json:"options"` Body struct { Id string `json:"id"` ParentId string `json:"parent-id"` PairingKeys map[string]*PairingKey `json:"pairing-keys"` InviteKeys map[string]*InviteKey `json:"invite-keys"` Nodes map[string]string `json:"nodes"` Admins map[string]string `json:"admins"` CAs map[string]string `json:"cas"` Certs map[string]string `json:"certs"` CSRs map[string]string `json:"csrs"` Tags struct { CAForward map[string][]string `json:"ca-forward"` CAReverse map[string][]string `json:"ca-reverse"` EntityForward map[string][]string `json:"entity-forward"` EntityReverse map[string][]string `json:"entity-reverse"` CertForward map[string][]string `json:"cert-forward"` CertReverse map[string][]string `json:"cert-reverse"` CSRForward map[string][]string `json:"csr-forward"` CSRReverse map[string][]string `json:"csr-reverse"` } `json:"tags"` } `json:"body"` }
type PairingKey ¶
Click to show internal directories.
Click to hide internal directories.