Documentation ¶
Index ¶
- Variables
- type ConfigurationItem
- type ConfigurationItemType
- type DB
- func (db *DB) AddCI(data map[string]string) (*ConfigurationItem, error)
- func (db *DB) AddRelationship(from string, to string, relationship string, data map[string]string) (*Relationship, error)
- func (db *DB) Close() error
- func (db *DB) DeleteCI(id string) error
- func (db *DB) DeleteRelationship(id string) error
- func (db *DB) GetCI(id string) (ConfigurationItem, error)
- func (db *DB) GetCITypes() ([]ConfigurationItemType, error)
- func (db *DB) GetCIsByType(id string) ([]ConfigurationItem, error)
- func (db *DB) GetCis() ([]ConfigurationItem, error)
- func (db *DB) GetRelationship(id string) (*Relationship, error)
- func (db *DB) GetRelationshipTypes() ([]string, error)
- func (db *DB) GetRelationships() ([]Relationship, error)
- func (db *DB) GetRelationshipsByCI(id string) ([]Relationship, error)
- func (db *DB) GetRelationshipsByType(relationship string) ([]Relationship, error)
- func (db *DB) UpdateCI(id string, data map[string]string) error
- func (db *DB) UpdateCITypeName(id string, name string) error
- func (db *DB) UpdateRelationship(id string, data map[string]string) (*Relationship, error)
- type Relationship
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key not found")
View Source
var ErrNameAlreadyExists = errors.New("name already exists")
View Source
var ErrReservedBucketName = errors.New("bucket name is reserved")
View Source
var RESERVED_BUCKET_NAMES = []string{
"cis", "citypes", "cisbytype", "reltypes", "reltypeindex",
"relsincoming", "relsoutgoing",
}
Functions ¶
This section is empty.
Types ¶
type ConfigurationItem ¶
type ConfigurationItem struct { ID string `json:"id"` Version int `json:"version"` Data map[string]string `json:"data"` Type ConfigurationItemType `json:"type"` }
type ConfigurationItemType ¶
type DB ¶
func (*DB) AddRelationship ¶
func (*DB) DeleteRelationship ¶
func (*DB) GetCITypes ¶
func (db *DB) GetCITypes() ([]ConfigurationItemType, error)
Get all CI types
func (*DB) GetCIsByType ¶
func (db *DB) GetCIsByType(id string) ([]ConfigurationItem, error)
func (*DB) GetCis ¶
func (db *DB) GetCis() ([]ConfigurationItem, error)
func (*DB) GetRelationship ¶
func (db *DB) GetRelationship(id string) (*Relationship, error)
func (*DB) GetRelationshipTypes ¶
Get all relationship types.
func (*DB) GetRelationships ¶
func (db *DB) GetRelationships() ([]Relationship, error)
func (*DB) GetRelationshipsByCI ¶
func (db *DB) GetRelationshipsByCI(id string) ([]Relationship, error)
Get all relationships attached to a given node.
func (*DB) GetRelationshipsByType ¶
func (db *DB) GetRelationshipsByType(relationship string) ([]Relationship, error)
Get all relationships of a given type.
func (*DB) UpdateCITypeName ¶
Update name on CI type
func (*DB) UpdateRelationship ¶
Click to show internal directories.
Click to hide internal directories.