Documentation
¶
Index ¶
- type Client
- type ContainerStatus
- type GetIdentRequest
- type GetRegistryResponse
- type Info
- type PostIdentRequest
- type PostRegisterRequest
- type Registry
- func (reg *Registry) Delegate(ctx *context.Context, req *http.Request)
- func (reg *Registry) DelegateGetRequest(ctx *context.Context)
- func (reg *Registry) DelegatePostRequest(ctx *context.Context)
- func (reg *Registry) ExposeHttp(r *iris.Application)
- func (reg *Registry) GetRegistry(ctx *context.Context)
- func (reg *Registry) Loop()
- func (reg *Registry) ModifyHost(ctx *context.Context, ident string, req *http.Request) bool
- func (reg *Registry) PostRegister(ctx *context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Ident string
Config *ali_notifier.RegistryConfig
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ident string, cfg *ali_notifier.RegistryConfig) *Client
func (*Client) DetectRecorderStatus ¶
type ContainerStatus ¶
type ContainerStatus struct {
State struct {
Status string `json:"Status"`
Running bool `json:"Running"`
Paused bool `json:"Paused"`
Restarting bool `json:"Restarting"`
OOMKilled bool `json:"OOMKilled"`
Dead bool `json:"Dead"`
Pid int `json:"Pid"`
ExitCode int `json:"ExitCode"`
Error string `json:"Error"`
StartedAt time.Time `json:"StartedAt"`
FinishedAt time.Time `json:"FinishedAt"`
} `json:"State"`
}
type GetIdentRequest ¶
type GetIdentRequest struct {
Server string `url:"server"`
}
type GetRegistryResponse ¶
type GetRegistryResponse struct {
Items []*Info `json:"items"`
}
type PostIdentRequest ¶
type PostIdentRequest struct {
Server string `json:"server"`
}
type PostRegisterRequest ¶
type Registry ¶
type Registry struct {
*server.Server
RegistryConfig *ali_notifier.RegistryConfig
Servers map[string]*ali_notifier.RegistryConfig
Ident string
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) DelegateGetRequest ¶
func (*Registry) DelegatePostRequest ¶
func (*Registry) ExposeHttp ¶
func (reg *Registry) ExposeHttp(r *iris.Application)
func (*Registry) GetRegistry ¶
func (*Registry) ModifyHost ¶
func (*Registry) PostRegister ¶
Click to show internal directories.
Click to hide internal directories.