snap

package
v0.0.0-...-7ebef60 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SnapHost = "snapshot.api.qcloud.com"
	SnaoPath = "/v2/index.php"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindAutoSnapshotPolicyArg

type BindAutoSnapshotPolicyArg struct {
	AspId         string   `qcloud_arg:"aspId"`
	StorageIdList []string `qcloud_arg:"storageIdList"`
}

type BindAutoSnapshotPolicyRsp

type BindAutoSnapshotPolicyRsp struct {
	Response
}

type Client

type Client struct {
	*common.Client
}

func NewClient

func NewClient(credential common.CredentialInterface, opts common.Opts) (*Client, error)

func NewClientFromEnv

func NewClientFromEnv() (*Client, error)

func (*Client) BindAutoSnapshotPolicy

func (client *Client) BindAutoSnapshotPolicy(aspId string, storageIdList []string) (*BindAutoSnapshotPolicyRsp, error)

type Response

type Response struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	CodeDesc string `json:"codeDesc"`
}

Jump to

Keyboard shortcuts

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