impl

package
v0.0.0-...-852afa5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

func (*HostServiceImpl) CreateHost

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

创建主机

func (*HostServiceImpl) DeleteHost

func (host *HostServiceImpl) DeleteHost(ctx context.Context, delete *host.DeleteHostRequest) (*host.Host, error)

主机删除

func (*HostServiceImpl) DescribeHost

func (host *HostServiceImpl) DescribeHost(ctx context.Context, query *host.QueryHostRequest) (*host.Host, error)

查询主机详情

func (*HostServiceImpl) QueryHost

func (host *HostServiceImpl) QueryHost(ctx context.Context, query *host.QueryHostRequest) (*host.HostSet, error)

查询主机列表(这里为了方便做扩展, 引入HostSet)

func (*HostServiceImpl) UpdateHost

func (host *HostServiceImpl) UpdateHost(ctx context.Context, update *host.UpdateHostRequest) (*host.Host, error)

主机更新

Jump to

Keyboard shortcuts

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