Versions in this module Expand all Collapse all v1 v1.1.0 Mar 8, 2023 Changes in this version + const AppName + type DeleteHostRequest struct + Xid string + func NewDeleteHostRequest(xid string) *DeleteHostRequest + func (req *DeleteHostRequest) Validate() error + type Host struct + CPU string + Description string + ExpireAt int64 + Memory string + Name string + OSName string + OSType string + PrivateIP string + PublicIP string + Region string + ResourceId string + SerialNumber string + Vendor Vendor + func NewHost() *Host + func (h *Host) DeleteDefault() + func (h *Host) InsertDefault() + func (h *Host) Put(obj *Host) error + func (h *Host) UpdateDefault() + func (h *Host) Validate() error + type HostSet struct + Items []*Host + Total int + func NewHostSet() *HostSet + func (s *HostSet) Add(item *Host) + type ListHostRequest struct + PageNumber int + PageSize int + PrivateIp string + SerialNumber string + func NewListHostRequest() *ListHostRequest + func (req *ListHostRequest) GetPageSize() uint + func (req *ListHostRequest) OffSet() int64 + func (req *ListHostRequest) Validate() error + type QueryHostRequest struct + Xid string + func NewQueryHostRequest(xid string) *QueryHostRequest + func (req *QueryHostRequest) Validate() error + type Service interface + CreateHost func(context.Context, *Host) error + DeleteHost func(context.Context, *DeleteHostRequest) error + ListHost func(context.Context, *ListHostRequest) (*HostSet, error) + QueryHost func(context.Context, *QueryHostRequest) (*Host, error) + UpdateHost func(context.Context, *Host) (*Host, error) + type Vendor int + const ALIYUN + const PRIVATE_IDC + const TXYUN