Documentation
¶
Index ¶
- Constants
- Variables
- type Action
- type Dep
- type Event
- type Isolation
- type Meta
- type Model
- func (m *Model) FindDepByName(name string) (*Dep, error)
- func (m *Model) FindIsolationByID(ID string) (*Isolation, error)
- func (m *Model) FindIsolationByName(name string) (*Isolation, error)
- func (m *Model) GetAllDeps() ([]*Dep, error)
- func (m *Model) GetAllIsolations() ([]*Isolation, error)
- func (m *Model) GetDBMetaData() (*Meta, error)
- func (m *Model) GetIsolationDepsAndStates(iso *Isolation) (map[*Dep]*State, error)
- func (m *Model) InsertDep(dep *Dep) error
- func (m *Model) InsertIsolation(iso *Isolation) error
- func (m *Model) RemoveDep(dep *Dep) error
- func (m *Model) RemoveDepStateByName(dep *Dep, sname string) error
- func (m *Model) RemoveIsolation(iso *Isolation) error
- func (m *Model) UpdateDep(dep *Dep) error
- func (m *Model) UpdateIsolation(iso *Isolation) error
- func (m *Model) UpsertMetaData() error
- type State
Constants ¶
View Source
const ( ActionCreated = Action(1) ActionRemoved = Action(2) ActionUpdate = Action(3) )
View Source
const (
TypeCustom = "CUSTOM"
)
Variables ¶
View Source
var DatabaseMetaKey = "_db"
View Source
var DepBucketName = "deps"
View Source
var IsolationBucketName = "isolations"
View Source
var MetaBucketName = "meta"
Functions ¶
This section is empty.
Types ¶
type Dep ¶
func NewDepFromSerialized ¶
type Isolation ¶
type Isolation struct { ID string `json:"id"` Name string `json:"name"` States map[string]string `json:"states"` }
func NewIsolation ¶
type Meta ¶
func NewMetaFromSerialized ¶
type Model ¶
func (*Model) FindIsolationByID ¶ added in v0.1.2
func (*Model) FindIsolationByName ¶
func (*Model) GetAllDeps ¶
func (*Model) GetAllIsolations ¶
func (*Model) GetDBMetaData ¶
func (*Model) GetIsolationDepsAndStates ¶
func (*Model) InsertIsolation ¶
func (*Model) RemoveDepStateByName ¶
func (*Model) RemoveIsolation ¶
func (*Model) UpdateIsolation ¶
func (*Model) UpsertMetaData ¶
Click to show internal directories.
Click to hide internal directories.