Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient) pagination.Pager
List will list all backup triggers
Types ¶
type CreateOpts ¶
type CreateOpts struct { Name string `json:"name" required:"true"` PlanID string `json:"plan_id" required:"true"` Properties *PropertiesOpts `json:"properties" required:"true"` }
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r CreateResult)
Create performs request to create backup trigger
func Update ¶
func Update(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r CreateResult)
Update performs request to update backup trigger
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*TriggerResponse, error)
type OptsBuilder ¶
type Page ¶
type Page struct {
pagination.SinglePageBase
}
Page represents a page of backup triggers
type PropertiesOpts ¶
type TriggerCreate ¶
type TriggerCreate struct {
TriggerInfo *CreateOpts `json:"trigger_info" required:"true"`
}
func (*TriggerCreate) Map ¶
func (opts *TriggerCreate) Map() (map[string]interface{}, error)
Map converts opts to a map (for a request body)
type TriggerResp ¶
type TriggerResp struct {
TriggerInfo TriggerResponse `json:"trigger_info"`
}
type TriggerResponse ¶
type TriggerResponse struct { ID string `json:"id" required:"true"` PlanID string `json:"plan_id" required:"true"` Name string `json:"name" required:"true"` Properties *PropertiesOpts `json:"properties" required:"true"` }
func ExtractTriggers ¶
func ExtractTriggers(r pagination.Page) ([]TriggerResponse, error)
ExtractTriggers retrieves a slice of backup TriggerResponse structs from a paginated collection.
type TriggerUpdate ¶
type TriggerUpdate struct {
TriggerInfo *UpdateOpts `json:"trigger_info" required:"true"`
}
func (*TriggerUpdate) Map ¶
func (opts *TriggerUpdate) Map() (map[string]interface{}, error)
Map converts opts to a map (for a request body)
type UpdateOpts ¶
Click to show internal directories.
Click to hide internal directories.