Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryItem ¶
type HistoryItem struct {
DomainId string `json:"domain_id"`
ResourceId string `json:"resource_id"`
ResourceType string `json:"resource_type"`
CaptureTime string `json:"capture_time"`
Status string `json:"status"`
Relations []Relations `json:"relations"`
Resource ResourceEntity `json:"resource"`
}
func ExtractResources ¶
func ExtractResources(r pagination.NewPage) ([]HistoryItem, error)
func ListAllRecords ¶
func ListAllRecords(client *golangsdk.ServiceClient, opts ListAllOpts) ([]HistoryItem, error)
type ListAllOpts ¶
type ListAllOpts struct {
DomainId string `json:"-"`
ResourceId string `json:"-"`
// Specifies the maximum number of resources to return.
Limit *int `q:"limit"`
// Specifies the pagination parameter.
Marker string `q:"marker"`
// Specifies the start time of the query. If this parameter is not set, the earliest time is used by default.
EarlierTime *int64 `q:"earlier_time"`
// Specifies the end time of the query. If this parameter is not set, the current time is used by default.
LaterTime *int64 `q:"later_time"`
// Specifies the time sequence of the data to be returned. The default value is Reverse.
ChronologicalOrder *int64 `q:"chronological_order"`
}
type ResPage ¶
type ResPage struct {
pagination.NewSinglePageBase
}
type ResourceEntity ¶
type ResourceEntity struct {
ID string `json:"id"`
Name string `json:"name"`
Provider string `json:"provider"`
Type string `json:"type"`
RegionID string `json:"region_id"`
ProjectID string `json:"project_id"`
ProjectName string `json:"project_name"`
EpID string `json:"ep_id"`
EpName string `json:"ep_name"`
Checksum string `json:"checksum"`
Created string `json:"created"`
Updated string `json:"updated"`
ProvisioningState string `json:"provisioning_state"`
State string `json:"state"`
Tags map[string]string `json:"tags"`
Properties map[string]interface{} `json:"properties"`
OSType string `json:"osType,omitempty"`
KeyName string `json:"keyName,omitempty"`
SchedulerHints interface{} `json:"schedulerHints,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.