Documentation ¶
Index ¶
- type Api
- func (a *Api) AddMDNSAdv(ctx context.Context, serviceGroup model.ServiceGroup) error
- func (a *Api) DeleteMDNSAdv(ctx context.Context, id string) error
- func (a *Api) GetHostInfo(ctx context.Context) (model.HostInfo, error)
- func (a *Api) GetHostNet(ctx context.Context) (model.HostNet, error)
- func (a *Api) GetHostResource(ctx context.Context, rID string) (model.HostResource, error)
- func (a *Api) GetMDNSAdv(ctx context.Context, id string) (model.ServiceGroup, error)
- func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo
- func (a *Api) ListHostResources(ctx context.Context, filter model.HostResourceFilter) ([]model.HostResource, error)
- func (a *Api) ListMDNSAdv(ctx context.Context, filter model.ServiceGroupFilter) ([]model.ServiceGroup, error)
- func (a *Api) UpdateMDNSAdv(ctx context.Context, serviceGroup model.ServiceGroup) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func New ¶
func New(hostInfoHandler handler.HostInfoHandler, hostResourceHandler handler.HostResourceHandler, mDNSAdvHdl handler.MDNSAdvHandler, srvInfoHandler srv_info_hdl.SrvInfoHandler) *Api
func (*Api) AddMDNSAdv ¶ added in v0.1.0
func (*Api) DeleteMDNSAdv ¶ added in v0.1.0
func (*Api) GetHostResource ¶ added in v0.1.0
func (*Api) GetMDNSAdv ¶ added in v0.1.0
func (*Api) GetSrvInfo ¶ added in v0.1.17
func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo
func (*Api) ListHostResources ¶ added in v0.1.0
func (a *Api) ListHostResources(ctx context.Context, filter model.HostResourceFilter) ([]model.HostResource, error)
func (*Api) ListMDNSAdv ¶ added in v0.1.0
func (a *Api) ListMDNSAdv(ctx context.Context, filter model.ServiceGroupFilter) ([]model.ServiceGroup, error)
func (*Api) UpdateMDNSAdv ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.