Documentation
¶
Index ¶
- type Host
- func (h *Host) CreateOrUpdate(host *model.Host) error
- func (h *Host) GetByClusterAndIP(clusterName, privateAddr string) (*apistructs.Host, error)
- func (h *Host) GetByClusterAndPrivateIP(clusterName, privateAddr string) (*model.Host, error)
- func (h *Host) GetHostNumber() (uint64, error)
- func (h *Host) Update(host *model.Host) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Host 资源对象操作封装
func (*Host) CreateOrUpdate ¶
CreateOrUpdate 创建或更新主机信息
func (*Host) GetByClusterAndIP ¶
func (h *Host) GetByClusterAndIP(clusterName, privateAddr string) (*apistructs.Host, error)
GetByClusterAndIP 根据 cluster & privateAddr获取主机信息
func (*Host) GetByClusterAndPrivateIP ¶
GetByClusterAndPrivateIP 根据 cluster & privateAddr获取主机信息
type Option ¶
type Option func(*Host)
Option 定义 Host 对象的配置选项
func WithContainer ¶
WithContainer 配置 container service
func WithTicketService ¶
WithTicketService 配置 ticket service
Click to show internal directories.
Click to hide internal directories.