Documentation ¶
Overview ¶
Copyright © 2016 Nuxeo SA (http://nuxeo.com/) and others.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func GetDomainFromNode(node *etcd.Node) (*Domain, error)
- func GetServiceFromPath(servicePath string, kapi etcd.KeysAPI) (*Service, error)
- func NewDomain(domainNode *etcd.Node) (*Domain, error)
- func NewStatus(service *Service, node *etcd.Node) *Status
- func SetServicePrefix(servicePrefix string)
- type Watcher
- func (w *Watcher) DestroyDomain(d *Domain) error
- func (w *Watcher) DestroyService(sc *Service) error
- func (w *Watcher) Init()
- func (w *Watcher) Listen() chan *ModelEvent
- func (w *Watcher) LoadAllDomains() (map[string]*Domain, error)
- func (w *Watcher) LoadAllServices() (map[string]*Service, error)
- func (w *Watcher) LoadDomain(domainName string) (*Domain, error)
- func (w *Watcher) LoadService(serviceName string) (*Service, error)
- func (w *Watcher) PersistDomain(d *Domain) (*Domain, error)
- func (w *Watcher) PersistService(s *Service) (*Service, error)
Constants ¶
View Source
const (
TIME_FORMAT = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func GetDomainFromNode ¶
func GetServiceFromPath ¶
func SetServicePrefix ¶
func SetServicePrefix(servicePrefix string)
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher implements the PersistenceDriver interface of the Arken Model and allows to store the model in etcd.
func NewWatcher ¶
func (*Watcher) DestroyDomain ¶
func (*Watcher) DestroyService ¶
func (*Watcher) LoadAllDomains ¶
func (*Watcher) LoadAllServices ¶
func (*Watcher) LoadDomain ¶
func (*Watcher) LoadService ¶
func (*Watcher) PersistDomain ¶
func (*Watcher) PersistService ¶
Click to show internal directories.
Click to hide internal directories.