Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Cluster() ClusterAPI ETCDBackup() ETCDBackupAPI }
type APIImpl ¶
type APIImpl struct {
// contains filtered or unexported fields
}
func (*APIImpl) Cluster ¶
func (api *APIImpl) Cluster() ClusterAPI
func (*APIImpl) ETCDBackup ¶
func (api *APIImpl) ETCDBackup() ETCDBackupAPI
type ClusterAPI ¶
func NewClusterAPI ¶
func NewClusterAPI(client *resty.Client) ClusterAPI
type ClusterAPIImpl ¶
type ClusterAPIImpl struct {
// contains filtered or unexported fields
}
func (*ClusterAPIImpl) GetByName ¶
func (api *ClusterAPIImpl) GetByName(name string) (*Cluster, error)
func (*ClusterAPIImpl) List ¶
func (api *ClusterAPIImpl) List() ([]*Cluster, error)
type ClustersResponse ¶
type ClustersResponse struct {
Data []*Cluster `json:"data,omitempty"`
}
type ETCDBackup ¶
type ETCDBackupAPI ¶
type ETCDBackupAPI interface { List() ([]*ETCDBackup, error) ListByClusterID(clusterID string) ([]*ETCDBackup, error) }
func NewETCDBackupAPI ¶
func NewETCDBackupAPI(client *resty.Client) ETCDBackupAPI
type ETCDBackupAPIImpl ¶
type ETCDBackupAPIImpl struct {
// contains filtered or unexported fields
}
func (*ETCDBackupAPIImpl) List ¶
func (api *ETCDBackupAPIImpl) List() ([]*ETCDBackup, error)
func (*ETCDBackupAPIImpl) ListByClusterID ¶
func (api *ETCDBackupAPIImpl) ListByClusterID(clusterID string) ([]*ETCDBackup, error)
type ETCDBackupResp ¶
type ETCDBackupResp struct {
Data []*ETCDBackup `json:"data,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.