metadata

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMetaDataByRegion

func DeleteMetaDataByRegion(region string) (err error)

func DelteMetaData

func DelteMetaData(md MetaData) (err error)

DelteMetaData 删除指定区域的元数据

func SaveMetaData

func SaveMetaData(md MetaData) error

Types

type MetaData

type MetaData struct {
	ID        bson.ObjectId `json:"id,omitempty" bson:"_id,omitempty"`
	Sid       string        `json:"secret_id"`
	Skey      string        `json:"secret_key"`
	Region    string        `json:"region"`
	ClusterID string        `json:"cluster_id"`
}

func GetMetaDataByRegion

func GetMetaDataByRegion(region string) (md *MetaData, err error)

GetMetaDataByRegion 查询指定区域的元数据 如果region为空, 则默认输出第一条MetaData数据

Jump to

Keyboard shortcuts

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