Documentation ¶
Index ¶
- Constants
- type HostServiceimpl
- func (i *HostServiceimpl) Config()
- func (i *HostServiceimpl) CreateHost(ctx context.Context, ins *host.Host) (*host.Host, error)
- func (i *HostServiceimpl) DeleteHost(ctx context.Context, req *host.DeleteHostRequest) (*host.Host, error)
- func (i *HostServiceimpl) DescribeHost(ctx context.Context, req *host.DescribeHostRequest) (*host.Host, error)
- func (i *HostServiceimpl) Name() string
- func (i *HostServiceimpl) QueryHost(ctx context.Context, req *host.QueryHostRequest) (*host.HostSet, error)
- func (i *HostServiceimpl) UpdateHost(ctx context.Context, req *host.UpdateHostRequest) (*host.Host, error)
Constants ¶
View Source
const ( InsertResourceSQL = `` /* 219-byte string literal not displayed */ InsertDescribeSQL = `` /* 148-byte string literal not displayed */ // QueryHostSQL = `select // r.*,h.cpu, h.memory, h.gpu_spec, h.gpu_amount, h.os_type, h.os_name, h.serial_number // from // resource as r // left join host as h on r.id = h.resource_id QueryHostSQL = `` /* 168-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 ¶
业务处理层
func (*HostServiceimpl) DeleteHost ¶
func (i *HostServiceimpl) DeleteHost(ctx context.Context, req *host.DeleteHostRequest) (*host.Host, error)
func (*HostServiceimpl) DescribeHost ¶
func (i *HostServiceimpl) DescribeHost(ctx context.Context, req *host.DescribeHostRequest) ( *host.Host, error)
func (*HostServiceimpl) Name ¶
func (i *HostServiceimpl) Name() string
func (*HostServiceimpl) QueryHost ¶
func (i *HostServiceimpl) QueryHost(ctx context.Context, req *host.QueryHostRequest) ( *host.HostSet, error)
func (*HostServiceimpl) UpdateHost ¶
func (i *HostServiceimpl) UpdateHost(ctx context.Context, req *host.UpdateHostRequest) ( *host.Host, error)
Click to show internal directories.
Click to hide internal directories.