index

package
v0.0.0-...-5f4467c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2017 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

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

func AppendUnique(slice []string, val string) []string

Types

type InviteKey

type InviteKey struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

type NodeIndex

type NodeIndex struct {
	document.Document
	Data NodeIndexData
}

func NewNode

func NewNode(jsonString interface{}) (*NodeIndex, error)

func (*NodeIndex) AddCertTags

func (index *NodeIndex) AddCertTags(cert string, i interface{}) error

func (*NodeIndex) Dump

func (index *NodeIndex) Dump() string

func (*NodeIndex) Id

func (index *NodeIndex) Id() string

func (*NodeIndex) Load

func (index *NodeIndex) Load(jsonString interface{}) error

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 NewOrg

func NewOrg(jsonString interface{}) (*OrgIndex, error)

func (*OrgIndex) AddAdmin

func (index *OrgIndex) AddAdmin(name, id string) error

func (*OrgIndex) AddCA

func (index *OrgIndex) AddCA(name, id string) error

func (*OrgIndex) AddCATags

func (index *OrgIndex) AddCATags(ca string, i interface{}) error

func (*OrgIndex) AddCSR

func (index *OrgIndex) AddCSR(name, id string) error

func (*OrgIndex) AddCSRTags

func (index *OrgIndex) AddCSRTags(csr string, i interface{}) error

func (*OrgIndex) AddCert

func (index *OrgIndex) AddCert(name, id string) error

func (*OrgIndex) AddCertTags

func (index *OrgIndex) AddCertTags(cert string, i interface{}) error

func (*OrgIndex) AddEntityTags

func (index *OrgIndex) AddEntityTags(entity string, i interface{}) error

func (*OrgIndex) AddInviteKey

func (index *OrgIndex) AddInviteKey(id, key, name string) error

func (*OrgIndex) AddNode

func (index *OrgIndex) AddNode(name, id string) error

func (*OrgIndex) AddPairingKey

func (index *OrgIndex) AddPairingKey(id, key string, i interface{}) error

func (*OrgIndex) ClearCATags

func (index *OrgIndex) ClearCATags(ca string) error

func (*OrgIndex) ClearCSRTags

func (index *OrgIndex) ClearCSRTags(csr string) error

func (*OrgIndex) ClearCertTags

func (index *OrgIndex) ClearCertTags(cert string) error

func (*OrgIndex) Dump

func (index *OrgIndex) Dump() string

func (*OrgIndex) GetAdmin

func (index *OrgIndex) GetAdmin(name string) (string, error)

func (*OrgIndex) GetAdmins

func (index *OrgIndex) GetAdmins() (map[string]string, error)

func (*OrgIndex) GetCA

func (index *OrgIndex) GetCA(name string) (string, error)

func (*OrgIndex) GetCAs

func (index *OrgIndex) GetCAs() map[string]string

func (*OrgIndex) GetCSR

func (index *OrgIndex) GetCSR(name string) (string, error)

func (*OrgIndex) GetCSRs

func (index *OrgIndex) GetCSRs() map[string]string

func (*OrgIndex) GetCert

func (index *OrgIndex) GetCert(name string) (string, error)

func (*OrgIndex) GetCerts

func (index *OrgIndex) GetCerts() map[string]string

func (*OrgIndex) GetInviteKey

func (index *OrgIndex) GetInviteKey(id string) (*InviteKey, error)

func (*OrgIndex) GetNode

func (index *OrgIndex) GetNode(name string) (string, error)

func (*OrgIndex) GetNodes

func (index *OrgIndex) GetNodes() map[string]string

func (*OrgIndex) GetPairingKey

func (index *OrgIndex) GetPairingKey(id string) (*PairingKey, error)

func (*OrgIndex) GetPairingKeys

func (index *OrgIndex) GetPairingKeys() map[string]*PairingKey

func (*OrgIndex) Id

func (index *OrgIndex) Id() string

func (*OrgIndex) Load

func (index *OrgIndex) Load(jsonString interface{}) error

func (*OrgIndex) RemoveAdmin

func (index *OrgIndex) RemoveAdmin(name string) error

func (*OrgIndex) RemoveCA

func (index *OrgIndex) RemoveCA(name string) error

func (*OrgIndex) RemoveCSR

func (index *OrgIndex) RemoveCSR(name string) error

func (*OrgIndex) RemoveCert

func (index *OrgIndex) RemoveCert(name string) error

func (*OrgIndex) RemoveNode

func (index *OrgIndex) RemoveNode(name string) error

func (*OrgIndex) RemovePairingKey

func (index *OrgIndex) RemovePairingKey(id string) error

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

type PairingKey struct {
	Key  string   `json:"key"`
	Tags []string `json:"tags"`
}

Jump to

Keyboard shortcuts

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