impl

package
v0.0.0-...-e06e715 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Config

func (i *HostServiceimpl) Config()

只需要保证,全局对象Config和全局Logger已经加载完成

func (*HostServiceimpl) CreateHost

func (i *HostServiceimpl) CreateHost(ctx context.Context, ins *host.Host) (*host.Host, error)

业务处理层

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL