Documentation ¶
Index ¶
- func GetAppNameAPI(rw http.ResponseWriter, req *http.Request) (int, string)
- type Annotation
- type AppInfo
- type AppsData
- type Container
- type ContainerForBackupctl
- type ContainerForProxy
- type ContainerForWebrouter
- type ContainerInfo
- type CoreInfo
- type CoreInfoForBackupctl
- func (ci *CoreInfoForBackupctl) Decode(r []byte) error
- func (ci *CoreInfoForBackupctl) Encode() ([]byte, error)
- func (ci *CoreInfoForBackupctl) Key(r *http.Request) (string, error)
- func (ci *CoreInfoForBackupctl) Make(data map[string]interface{}) (api.API, bool, error)
- func (ci *CoreInfoForBackupctl) URI() string
- func (ci *CoreInfoForBackupctl) WatcherName() string
- type CoreInfoForRebellion
- type CoreInfoForWebrouter
- type Dependency
- type Depends
- type DependsItem
- type GeneralConfig
- func (gc *GeneralConfig) Decode(r []byte) error
- func (gc *GeneralConfig) Encode() ([]byte, error)
- func (gc *GeneralConfig) Key(r *http.Request) (string, error)
- func (gc *GeneralConfig) Make(conf map[string]interface{}) (api.API, bool, error)
- func (gc *GeneralConfig) URI() string
- func (gc *GeneralConfig) WatcherName() string
- type GeneralContainers
- func (gc *GeneralContainers) Decode(r []byte) error
- func (gc *GeneralContainers) Encode() ([]byte, error)
- func (gc *GeneralContainers) Key(r *http.Request) (string, error)
- func (gc *GeneralContainers) Make(data map[string]interface{}) (api.API, bool, error)
- func (gc *GeneralContainers) URI() string
- func (gc *GeneralContainers) WatcherName() string
- type GeneralCoreInfo
- func (gci *GeneralCoreInfo) Decode(r []byte) error
- func (gci *GeneralCoreInfo) Encode() ([]byte, error)
- func (gci *GeneralCoreInfo) Key(r *http.Request) (string, error)
- func (gci *GeneralCoreInfo) Make(data map[string]interface{}) (api.API, bool, error)
- func (gci *GeneralCoreInfo) URI() string
- func (gci *GeneralCoreInfo) WatcherName() string
- type GeneralNodes
- func (gn *GeneralNodes) Decode(r []byte) error
- func (gn *GeneralNodes) Encode() ([]byte, error)
- func (gn *GeneralNodes) Key(r *http.Request) (string, error)
- func (gn *GeneralNodes) Make(data map[string]interface{}) (api.API, bool, error)
- func (gn *GeneralNodes) URI() string
- func (gn *GeneralNodes) WatcherName() string
- type GeneralPodGroup
- func (gpg *GeneralPodGroup) Decode(r []byte) error
- func (gpg *GeneralPodGroup) Encode() ([]byte, error)
- func (gpg *GeneralPodGroup) Key(r *http.Request) (string, error)
- func (gpg *GeneralPodGroup) Make(data map[string]interface{}) (api.API, bool, error)
- func (gpg *GeneralPodGroup) URI() string
- func (gpg *GeneralPodGroup) WatcherName() string
- type LocalSpec
- func (ls *LocalSpec) BanWatch()
- func (ls *LocalSpec) Decode(r []byte) error
- func (ls *LocalSpec) Encode() ([]byte, error)
- func (ls *LocalSpec) Key(r *http.Request) (string, error)
- func (ls *LocalSpec) Make(data map[string]interface{}) (api.API, bool, error)
- func (ls *LocalSpec) URI() string
- func (ls *LocalSpec) WatcherName() string
- type Pod
- type PodGroup
- type PodInfo
- type PodInfoForBackupctl
- type PodInfoForRebellion
- type PodInfoForWebrouter
- type Port
- type Ports
- type ProcInfo
- type ProxyData
- func (pd *ProxyData) Decode(r []byte) error
- func (pd *ProxyData) Encode() ([]byte, error)
- func (pd *ProxyData) Key(r *http.Request) (string, error)
- func (pd *ProxyData) Make(data map[string]interface{}) (api.API, bool, error)
- func (pd *ProxyData) URI() string
- func (pd *ProxyData) WatcherName() string
- type RebellionAPIProvider
- func (ap *RebellionAPIProvider) Decode(r []byte) error
- func (ap *RebellionAPIProvider) Encode() ([]byte, error)
- func (ap *RebellionAPIProvider) Key(r *http.Request) (string, error)
- func (ap *RebellionAPIProvider) Make(data map[string]interface{}) (api.API, bool, error)
- func (ap *RebellionAPIProvider) URI() string
- func (ap *RebellionAPIProvider) WatcherName() string
- type StreamProc
- type StreamRouterInfo
- func (si *StreamRouterInfo) Decode(r []byte) error
- func (si *StreamRouterInfo) Encode() ([]byte, error)
- func (si *StreamRouterInfo) Key(r *http.Request) (string, error)
- func (si *StreamRouterInfo) Make(data map[string]interface{}) (api.API, bool, error)
- func (si *StreamRouterInfo) URI() string
- func (si *StreamRouterInfo) WatcherName() string
- type StreamService
- type StreamUpstream
- type WebrouterInfo
- func (wi *WebrouterInfo) Decode(r []byte) error
- func (wi *WebrouterInfo) Encode() ([]byte, error)
- func (wi *WebrouterInfo) Key(r *http.Request) (string, error)
- func (wi *WebrouterInfo) Make(data map[string]interface{}) (api.API, bool, error)
- func (wi *WebrouterInfo) URI() string
- func (wi *WebrouterInfo) WatcherName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppNameAPI ¶
Types ¶
type Annotation ¶
type Annotation struct {
Ports []Port `json:"ports"`
}
type AppInfo ¶
type AppInfo struct {
Appname string
}
Container info, aim to make it compatible with old api, having to defined a new struct.
type ContainerForBackupctl ¶
type ContainerForProxy ¶
type ContainerForProxy struct { ContainerIp string `json:"container_ip"` ContainerPort int `json:"container_port"` }
Container info, aim to make it compatible with old api, having to defined a new struct.
type ContainerForWebrouter ¶
type ContainerInfo ¶
The ContainerInfo used for dependency
type CoreInfoForBackupctl ¶
type CoreInfoForBackupctl struct {
Data map[string][]PodInfoForBackupctl
}
func (*CoreInfoForBackupctl) Decode ¶
func (ci *CoreInfoForBackupctl) Decode(r []byte) error
func (*CoreInfoForBackupctl) Encode ¶
func (ci *CoreInfoForBackupctl) Encode() ([]byte, error)
func (*CoreInfoForBackupctl) Key ¶
func (ci *CoreInfoForBackupctl) Key(r *http.Request) (string, error)
func (*CoreInfoForBackupctl) URI ¶
func (ci *CoreInfoForBackupctl) URI() string
func (*CoreInfoForBackupctl) WatcherName ¶
func (ci *CoreInfoForBackupctl) WatcherName() string
type CoreInfoForRebellion ¶
type CoreInfoForRebellion struct {
PodInfos []PodInfoForRebellion
}
Coreinfo type
type CoreInfoForWebrouter ¶
type CoreInfoForWebrouter struct {
PodInfos []PodInfoForWebrouter
}
Coreinfo type
type Dependency ¶
type Depends ¶
type Depends struct {
Data map[string]map[string]map[string]DependsItem
}
Depends API
func (*Depends) WatcherName ¶
type DependsItem ¶
type DependsItem struct { Annotation string Containers []ContainerInfo }
type GeneralConfig ¶
Config API
func (*GeneralConfig) Decode ¶
func (gc *GeneralConfig) Decode(r []byte) error
func (*GeneralConfig) Encode ¶
func (gc *GeneralConfig) Encode() ([]byte, error)
func (*GeneralConfig) URI ¶
func (gc *GeneralConfig) URI() string
func (*GeneralConfig) WatcherName ¶
func (gc *GeneralConfig) WatcherName() string
type GeneralContainers ¶
type GeneralContainers struct {
Data map[string]container.Info // data type return by configwatcher
}
node watcher api, /lain/nodes/nodes
func (*GeneralContainers) Decode ¶
func (gc *GeneralContainers) Decode(r []byte) error
func (*GeneralContainers) Encode ¶
func (gc *GeneralContainers) Encode() ([]byte, error)
func (*GeneralContainers) URI ¶
func (gc *GeneralContainers) URI() string
func (*GeneralContainers) WatcherName ¶
func (gc *GeneralContainers) WatcherName() string
type GeneralCoreInfo ¶
Coreinfo API
func (*GeneralCoreInfo) Decode ¶
func (gci *GeneralCoreInfo) Decode(r []byte) error
func (*GeneralCoreInfo) Encode ¶
func (gci *GeneralCoreInfo) Encode() ([]byte, error)
func (*GeneralCoreInfo) URI ¶
func (gci *GeneralCoreInfo) URI() string
func (*GeneralCoreInfo) WatcherName ¶
func (gci *GeneralCoreInfo) WatcherName() string
type GeneralNodes ¶
node watcher api, /lain/nodes/nodes
func (*GeneralNodes) Decode ¶
func (gn *GeneralNodes) Decode(r []byte) error
func (*GeneralNodes) Encode ¶
func (gn *GeneralNodes) Encode() ([]byte, error)
func (*GeneralNodes) URI ¶
func (gn *GeneralNodes) URI() string
func (*GeneralNodes) WatcherName ¶
func (gn *GeneralNodes) WatcherName() string
type GeneralPodGroup ¶
type GeneralPodGroup struct {
Data []PodGroup
}
PodGroup API
func (*GeneralPodGroup) Decode ¶
func (gpg *GeneralPodGroup) Decode(r []byte) error
func (*GeneralPodGroup) Encode ¶
func (gpg *GeneralPodGroup) Encode() ([]byte, error)
func (*GeneralPodGroup) URI ¶
func (gpg *GeneralPodGroup) URI() string
func (*GeneralPodGroup) WatcherName ¶
func (gpg *GeneralPodGroup) WatcherName() string
type LocalSpec ¶
Localspec API, it do not support watch request
func (*LocalSpec) BanWatch ¶
func (ls *LocalSpec) BanWatch()
to realize BanWatcher interface, abandon watch action
func (*LocalSpec) WatcherName ¶
type PodInfo ¶
type PodInfo struct { Annotation string Containers []Container `json:"ContainerInfos"` Dependencies []Dependency InstanceNo int }
type PodInfoForBackupctl ¶
type PodInfoForBackupctl struct { Annotation string Containers []ContainerForBackupctl InstanceNo int }
type PodInfoForRebellion ¶
type PodInfoForWebrouter ¶
type PodInfoForWebrouter struct { Annotation string Containers []ContainerForWebrouter `json:"ContainerInfos"` }
type ProcInfo ¶
type ProcInfo struct {
Containers []ContainerForProxy `json:"containers"`
}
type RebellionAPIProvider ¶
type RebellionAPIProvider struct {
Data map[string]CoreInfoForRebellion
}
Coreinfo API
func (*RebellionAPIProvider) Decode ¶
func (ap *RebellionAPIProvider) Decode(r []byte) error
func (*RebellionAPIProvider) Encode ¶
func (ap *RebellionAPIProvider) Encode() ([]byte, error)
func (*RebellionAPIProvider) Key ¶
func (ap *RebellionAPIProvider) Key(r *http.Request) (string, error)
func (*RebellionAPIProvider) URI ¶
func (ap *RebellionAPIProvider) URI() string
func (*RebellionAPIProvider) WatcherName ¶
func (ap *RebellionAPIProvider) WatcherName() string
type StreamProc ¶
type StreamProc struct { Name string Upstreams []StreamUpstream Services []StreamService }
type StreamRouterInfo ¶
type StreamRouterInfo struct {
Data map[string][]StreamProc
}
func (*StreamRouterInfo) Decode ¶
func (si *StreamRouterInfo) Decode(r []byte) error
func (*StreamRouterInfo) Encode ¶
func (si *StreamRouterInfo) Encode() ([]byte, error)
func (*StreamRouterInfo) URI ¶
func (si *StreamRouterInfo) URI() string
func (*StreamRouterInfo) WatcherName ¶
func (si *StreamRouterInfo) WatcherName() string
type StreamService ¶
type StreamUpstream ¶
type WebrouterInfo ¶
type WebrouterInfo struct {
Data map[string]CoreInfoForWebrouter
}
Coreinfo API
func (*WebrouterInfo) Decode ¶
func (wi *WebrouterInfo) Decode(r []byte) error
func (*WebrouterInfo) Encode ¶
func (wi *WebrouterInfo) Encode() ([]byte, error)
func (*WebrouterInfo) URI ¶
func (wi *WebrouterInfo) URI() string
func (*WebrouterInfo) WatcherName ¶
func (wi *WebrouterInfo) WatcherName() string
Click to show internal directories.
Click to hide internal directories.