Documentation ¶
Index ¶
- Constants
- type HostServiceImpl
- func (h *HostServiceImpl) Config()
- func (h *HostServiceImpl) CreateHost(ctx context.Context, ins *host.Host) (*host.Host, error)
- func (h *HostServiceImpl) DeleteHost(ctx context.Context, req *host.DeleteHostRequest) (*host.Host, error)
- func (h *HostServiceImpl) DescribeHost(ctx context.Context, req *host.DescribeHostRequest) (*host.Host, error)
- func (h *HostServiceImpl) Name() string
- func (h *HostServiceImpl) QueryHost(ctx context.Context, req *host.QueryHostRequest) (*host.HostSet, error)
- func (h *HostServiceImpl) SaveHost(ctx context.Context, ins *host.Host) error
- func (h *HostServiceImpl) UpdateHost(ctx context.Context, req *host.UpdateHostRequest) (*host.Host, error)
Constants ¶
View Source
const ( InsertResourceSQL = `` /* 228-byte string literal not displayed */ InsertDescribeSQL = `` /* 135-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostServiceImpl ¶
type HostServiceImpl struct {
// contains filtered or unexported fields
}
接口实现类
func NewHostServiceImpl ¶
func NewHostServiceImpl() *HostServiceImpl
NewHostServiceImpl 保证函数调用之前, 全局Conf对象已经初始化
func (*HostServiceImpl) CreateHost ¶
业务处理层(Controller层) 主机的创建
func (*HostServiceImpl) DeleteHost ¶
func (h *HostServiceImpl) DeleteHost(ctx context.Context, req *host.DeleteHostRequest) (*host.Host, error)
主机删除
func (*HostServiceImpl) DescribeHost ¶
func (h *HostServiceImpl) DescribeHost(ctx context.Context, req *host.DescribeHostRequest) (*host.Host, error)
查询主机详情
func (*HostServiceImpl) QueryHost ¶
func (h *HostServiceImpl) QueryHost(ctx context.Context, req *host.QueryHostRequest) (*host.HostSet, error)
主机的查询
func (*HostServiceImpl) UpdateHost ¶
func (h *HostServiceImpl) UpdateHost(ctx context.Context, req *host.UpdateHostRequest) (*host.Host, error)
主机更新
Click to show internal directories.
Click to hide internal directories.