Help us shape the future of Go! Take the 2026 Go Developer Survey

backups

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestOpts golangsdk.RequestOpts = golangsdk.RequestOpts{
	MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"},
}

Functions

This section is empty.

Types

type UpdateOpts

type UpdateOpts struct {
	//Keep Days
	KeepDays *int `json:"keep_days" required:"true"`
	//Start Time
	StartTime string `json:"start_time" required:"true"`
	//Period
	Period string `json:"period" required:"true"`
}

UpdateOpts contains all the values needed to update a Backup.

func (UpdateOpts) ToBackupUpdateMap

func (opts UpdateOpts) ToBackupUpdateMap() (map[string]interface{}, error)

ToBackupUpdateMap builds a update request body from UpdateOpts.

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToBackupUpdateMap() (map[string]interface{}, error)
}

UpdateOptsBuilder allows extensions to add additional parameters to the Update request.

type UpdateResult

type UpdateResult struct {
	golangsdk.ErrResult
}

UpdateResult represents the result of a update operation.

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)

Update accepts a UpdateOpts struct and uses the values to update a Backup.The response code from api is 200

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL