github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/css/v1/snapshots/results.go (about)

     1  package snapshots
     2  
     3  import (
     4  	"time"
     5  )
     6  
     7  // Snapshot contains all the information associated with a Cluster Snapshot.
     8  type Snapshot struct {
     9  	ID            string `json:"id"`
    10  	Name          string `json:"name"`
    11  	Type          string `json:"backupType"`
    12  	Method        string `json:"backupMethod"`
    13  	Description   string `json:"description"`
    14  	ClusterID     string `json:"clusterId"`
    15  	ClusterName   string `json:"clusterName"`
    16  	Indices       string `json:"indices"`
    17  	TotalShards   int    `json:"totalShards"`
    18  	FailedShards  int    `json:"failedShards"`
    19  	KeepDays      int    `json:"backupKeepDay"`
    20  	Period        string `json:"backupPeriod"`
    21  	Bucket        string `json:"bucketName"`
    22  	Version       string `json:"version"`
    23  	Status        string `json:"status"`
    24  	RestoreStatus string `json:"restoreStatus"`
    25  	// type of the data search engine
    26  	DataStore DataStore `json:"datastore"`
    27  	// the information about times
    28  	ExpectedStartTime time.Time `json:"-"`
    29  	StartTime         time.Time `json:"-"`
    30  	EndTime           time.Time `json:"-"`
    31  	Created           string    `json:"created"`
    32  	Updated           string    `json:"updated"`
    33  }
    34  
    35  type DataStore struct {
    36  	Type    string `json:"type"`
    37  	Version string `json:"version"`
    38  }