Documentation
¶
Index ¶
- Constants
- Variables
- type Action
- type Build
- type Dep
- type Duration
- 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) RemoveDepStateByID(dep *Dep, sid 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 Output
- type RegexpPattern
- type Run
- type State
- type StateSettings
- type Template
- type TemplateFile
Constants ¶
View Source
const ( ActionCreated = Action(1) ActionRemoved = Action(2) ActionUpdate = Action(3) )
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 Build ¶ added in v0.2.1
type Dep ¶
type Dep struct { Name string `json:"name"` States []*State `json:"states"` Template *Template `json:"template"` }
func NewDepFromSerialized ¶
func (*Dep) UpdateState ¶ added in v0.2.1
type Duration ¶ added in v0.3.1
A JSON Serializable time duration
func (Duration) MarshalJSON ¶ added in v0.3.1
func (*Duration) UnmarshalJSON ¶ added in v0.3.1
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) RemoveDepStateByID ¶ added in v0.3.1
func (*Model) RemoveIsolation ¶
func (*Model) UpdateIsolation ¶
func (*Model) UpsertMetaData ¶
type Output ¶ added in v0.2.1
A JSON Serializable output buffer
func (*Output) MarshalJSON ¶ added in v0.2.1
type RegexpPattern ¶ added in v0.3.1
A JSON Serializable regexp pattern
func (RegexpPattern) MarshalJSON ¶ added in v0.3.1
func (r RegexpPattern) MarshalJSON() ([]byte, error)
func (*RegexpPattern) UnmarshalJSON ¶ added in v0.3.1
func (r *RegexpPattern) UnmarshalJSON(data []byte) error
type Run ¶ added in v0.3.1
type State ¶
type StateSettings ¶ added in v0.3.1
type StateSettings struct { ReadyTimeout Duration `json:"ready_timeout"` ReadyPattern *RegexpPattern `json:"ready_pattern"` HostConfig *dockerclient.HostConfig `json:"host_config"` ContainerConfig *dockerclient.ContainerConfig `json:"container_config"` }
type Template ¶ added in v0.3.1
type Template struct { ID string `json:"id"` Name string `json:"name"` DefaultName string `json:"default_name"` Category string `json:"category"` TemplateFiles map[string]*TemplateFile `json:"template_files"` StateSettings *StateSettings `json:"state_settings"` }
type TemplateFile ¶ added in v0.3.1
type TemplateFile struct {
Content string `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.