Versions in this module Expand all Collapse all v0 v0.0.4 Aug 10, 2023 v0.0.3 May 18, 2023 v0.0.2 Mar 5, 2023 v0.0.1 May 18, 2023 Changes in this version + const AppName + type DeleteHostRequest struct + Id string + func NewDeleteHostRequest(id string) *DeleteHostRequest + type Describe struct + CPU int + GPUAmount int + GPUSpec string + Memory int + OSName string + OSType string + SerialNumber string + type DescribeHostRequest struct + Id string + func NewDescribeHostRequest(id string) *DescribeHostRequest + type Host struct + func NewHost() *Host + func (h *Host) InjectDefault() + func (h *Host) Validate() error + type HostSet struct + Items []*Host + Total int + func NewHostSet() *HostSet + func (s *HostSet) Add(item *Host) + type QueryHostRequest struct + KeyWords string + PageNumber int + PageSize int + func NewQueryHostFromHTPP(r *http.Request) *QueryHostRequest + func NewQueryHostRequest() *QueryHostRequest + func (req *QueryHostRequest) GetPageSize() uint + func (req *QueryHostRequest) OffSet() int64 + type Resource struct + Accout string + CreateAt int64 + Description string + ExpireAt int64 + Id string + Name string + PrivateIP string + PublicIP string + Region string + Status string + SyncAt int64 + Type string + UpdateAt int64 + Vendor string + type Service interface + CreateHost func(context.Context, *Host) (*Host, error) + DeleteHost func(context.Context, *DeleteHostRequest) error + DescribeHost func(context.Context, *DescribeHostRequest) (*Host, error) + QueryHost func(context.Context, *QueryHostRequest) (*HostSet, error) + UpdateHost func(context.Context, *UpdateHostRequest) (*Host, error) + type UpdateHostRequest struct + Host *Host + Id string + func NewUpdateHostRequest(id string, host *Host) *UpdateHostRequest + type Vendor int + const Aliyun + const Huawei + const PrivateIDC + const Tencent