umem

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeURedisConfigRequest

type ChangeURedisConfigRequest struct {
	request.CommonBase

	// 资源ID
	GroupId *string `required:"true"`

	// 配置文件ID
	ConfigId *string `required:"true"`
}

ChangeURedisConfigRequest is request schema for ChangeURedisConfig action

type ChangeURedisConfigResponse

type ChangeURedisConfigResponse struct {
	response.CommonBase

	// 返回码
	RetCode int

	// 操作名称
	Action string
}

ChangeURedisConfigResponse is response schema for ChangeURedisConfig action

type CheckUMemSpaceAllowanceRequest added in v0.6.9

type CheckUMemSpaceAllowanceRequest struct {
	request.CommonBase

	// 创建实例的容量大小;分布式memcache最低8G, 分布式redis最低16G,两者最高都是1000G
	Size *int `required:"true"`

	// 创建实例的数量,[1-10]
	Count *int `required:"true"`

	// redis memcache
	Protocol *string `required:"false"`
}

CheckUMemSpaceAllowanceRequest is request schema for CheckUMemSpaceAllowance action

type CheckUMemSpaceAllowanceResponse added in v0.6.9

type CheckUMemSpaceAllowanceResponse struct {
	response.CommonBase

	// 可创建的数量
	Count int
}

CheckUMemSpaceAllowanceResponse is response schema for CheckUMemSpaceAllowance action

type CheckUMemcacheAllowanceRequest added in v0.6.9

type CheckUMemcacheAllowanceRequest struct {
	request.CommonBase

	// 创建实例的容量大小, 单位:GB 目前仅支持1/2/4/8/16五种规格
	Size *int `required:"true"`

	// 创建实例的数量,[1-10]
	Count *int `required:"true"`
}

CheckUMemcacheAllowanceRequest is request schema for CheckUMemcacheAllowance action

type CheckUMemcacheAllowanceResponse added in v0.6.9

type CheckUMemcacheAllowanceResponse struct {
	response.CommonBase

	// 可创建的数量
	Count int
}

CheckUMemcacheAllowanceResponse is response schema for CheckUMemcacheAllowance action

type CheckURedisAllowanceRequest added in v0.6.10

type CheckURedisAllowanceRequest struct {
	request.CommonBase

	// 创建实例的容量大小, 单位:GB 目前仅支持1/2/4/8/16/32六种规格
	Size *string `required:"true"`

	// 创建实例的数量,[1-10]
	Count *int `required:"true"`

	//
	Protocol *string `required:"false"`

	// 是否是跨机房URedis(默认false)
	RegionFlag *bool `required:"false"`

	//
	SlaveZone *string `required:"false"`
}

CheckURedisAllowanceRequest is request schema for CheckURedisAllowance action

type CheckURedisAllowanceResponse added in v0.6.10

type CheckURedisAllowanceResponse struct {
	response.CommonBase

	// 可创建的数量
	Count int
}

CheckURedisAllowanceResponse is response schema for CheckURedisAllowance action

type DescribeUMemRequest added in v0.8.0

type DescribeUMemRequest struct {
	request.CommonBase

	// 协议类型: memcache, redis
	Protocol *string `required:"false"`

	// 分页显示的起始偏移, 默认值为0
	Offset *int `required:"false"`

	// 分页显示的条目数, 默认值为20
	Limit *int `required:"false"`

	// 资源ID
	ResourceId *string `required:"false"`

	//
	ResourceType *string `required:"false"`
}

DescribeUMemRequest is request schema for DescribeUMem action

type DescribeUMemResponse added in v0.8.0

type DescribeUMemResponse struct {
	response.CommonBase

	// 根据过滤条件得到的总数
	TotalCount int

	// UMem实例列表, 详细参见UMemDataSet
	DataSet []UMemDataSet
}

DescribeUMemResponse is response schema for DescribeUMem action

type DescribeURedisConfigRequest

type DescribeURedisConfigRequest struct {
	request.CommonBase

	// 是否是跨机房URedis(默认false)
	RegionFlag *bool `required:"true"`

	// Redis版本号
	Version *string `required:"false"`

	// 配置文件ID
	ConfigId *string `required:"false"`

	// 页显示的起始偏移, 默认值为0
	Offset *int `required:"false"`

	// 页显示的条目数, 默认值为10
	Limit *int `required:"false"`
}

DescribeURedisConfigRequest is request schema for DescribeURedisConfig action

type DescribeURedisConfigResponse

type DescribeURedisConfigResponse struct {
	response.CommonBase

	// 根据过滤条件得到的总数
	TotalCount int

	// 配置文件列表 参见 URedisConfigSet
	DataSet []URedisConfigSet
}

DescribeURedisConfigResponse is response schema for DescribeURedisConfig action

type ModifyUMemcacheGroupNameRequest

type ModifyUMemcacheGroupNameRequest struct {
	request.CommonBase

	// 组的ID
	GroupId *string `required:"true"`

	// 组名称
	Name *string `required:"true"`
}

ModifyUMemcacheGroupNameRequest is request schema for ModifyUMemcacheGroupName action

type ModifyUMemcacheGroupNameResponse

type ModifyUMemcacheGroupNameResponse struct {
	response.CommonBase
}

ModifyUMemcacheGroupNameResponse is response schema for ModifyUMemcacheGroupName action

type ModifyURedisGroupPasswordRequest

type ModifyURedisGroupPasswordRequest struct {
	request.CommonBase

	// 组的ID
	GroupId *string `required:"true"`

	// 新密码字符串,如要取消密码,此值为空字符串
	Password *string `required:"true"`

	//
	ResourceType *string `required:"false"`
}

ModifyURedisGroupPasswordRequest is request schema for ModifyURedisGroupPassword action

type ModifyURedisGroupPasswordResponse

type ModifyURedisGroupPasswordResponse struct {
	response.CommonBase
}

ModifyURedisGroupPasswordResponse is response schema for ModifyURedisGroupPassword action

type ResizeUMemcacheGroupRequest

type ResizeUMemcacheGroupRequest struct {
	request.CommonBase

	// 组ID
	GroupId *string `required:"true"`

	// 内存大小, 单位:GB 目前仅支持1/2/4/8/16五种规格(暂时只支持扩容)
	Size *int `required:"true"`

	//
	ChargeType *string `required:"false"`

	// 空间类型:single(无热备),double(热备)(默认: double)
	Type *string `required:"false"`

	// 代金券ID
	CouponId *int `required:"false"`
}

ResizeUMemcacheGroupRequest is request schema for ResizeUMemcacheGroup action

type ResizeUMemcacheGroupResponse

type ResizeUMemcacheGroupResponse struct {
	response.CommonBase
}

ResizeUMemcacheGroupResponse is response schema for ResizeUMemcacheGroup action

type RestartURedisGroupRequest added in v0.8.9

type RestartURedisGroupRequest struct {
	request.CommonBase

	// 组的ID
	GroupId *string `required:"true"`
}

RestartURedisGroupRequest is request schema for RestartURedisGroup action

type RestartURedisGroupResponse added in v0.8.9

type RestartURedisGroupResponse struct {
	response.CommonBase
}

RestartURedisGroupResponse is response schema for RestartURedisGroup action

type UMemClient

type UMemClient struct {
	*ucloud.Client
}

UMemClient is the client of UMem

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UMemClient

NewClient will return a instance of UMemClient

func (*UMemClient) ChangeURedisConfig

func (c *UMemClient) ChangeURedisConfig(req *ChangeURedisConfigRequest) (*ChangeURedisConfigResponse, error)

ChangeURedisConfig - 更换Redis配置文件

func (*UMemClient) CheckUMemSpaceAllowance added in v0.6.9

CheckUMemSpaceAllowance - 检查分布式UMem剩余资源,包括分布式redis,分布式memcache

func (*UMemClient) CheckUMemcacheAllowance added in v0.6.9

CheckUMemcacheAllowance - 检查UMemcache剩余资源

func (*UMemClient) CheckURedisAllowance added in v0.6.10

CheckURedisAllowance - 检查主备Redis的资源是否足够创建新实例

func (*UMemClient) DescribeUMem added in v0.8.0

func (c *UMemClient) DescribeUMem(req *DescribeUMemRequest) (*DescribeUMemResponse, error)

DescribeUMem - 获取UMem列表

func (*UMemClient) DescribeURedisConfig

DescribeURedisConfig - 查询主备Redis所有配置文件

func (*UMemClient) ModifyUMemcacheGroupName

ModifyUMemcacheGroupName - 修改UMemcache名称

func (*UMemClient) ModifyURedisGroupPassword

ModifyURedisGroupPassword - 修改主备密码/重置密码

func (*UMemClient) NewChangeURedisConfigRequest

func (c *UMemClient) NewChangeURedisConfigRequest() *ChangeURedisConfigRequest

NewChangeURedisConfigRequest will create request of ChangeURedisConfig action.

func (*UMemClient) NewCheckUMemSpaceAllowanceRequest added in v0.6.9

func (c *UMemClient) NewCheckUMemSpaceAllowanceRequest() *CheckUMemSpaceAllowanceRequest

NewCheckUMemSpaceAllowanceRequest will create request of CheckUMemSpaceAllowance action.

func (*UMemClient) NewCheckUMemcacheAllowanceRequest added in v0.6.9

func (c *UMemClient) NewCheckUMemcacheAllowanceRequest() *CheckUMemcacheAllowanceRequest

NewCheckUMemcacheAllowanceRequest will create request of CheckUMemcacheAllowance action.

func (*UMemClient) NewCheckURedisAllowanceRequest added in v0.6.10

func (c *UMemClient) NewCheckURedisAllowanceRequest() *CheckURedisAllowanceRequest

NewCheckURedisAllowanceRequest will create request of CheckURedisAllowance action.

func (*UMemClient) NewDescribeUMemRequest added in v0.8.0

func (c *UMemClient) NewDescribeUMemRequest() *DescribeUMemRequest

NewDescribeUMemRequest will create request of DescribeUMem action.

func (*UMemClient) NewDescribeURedisConfigRequest

func (c *UMemClient) NewDescribeURedisConfigRequest() *DescribeURedisConfigRequest

NewDescribeURedisConfigRequest will create request of DescribeURedisConfig action.

func (*UMemClient) NewModifyUMemcacheGroupNameRequest

func (c *UMemClient) NewModifyUMemcacheGroupNameRequest() *ModifyUMemcacheGroupNameRequest

NewModifyUMemcacheGroupNameRequest will create request of ModifyUMemcacheGroupName action.

func (*UMemClient) NewModifyURedisGroupPasswordRequest

func (c *UMemClient) NewModifyURedisGroupPasswordRequest() *ModifyURedisGroupPasswordRequest

NewModifyURedisGroupPasswordRequest will create request of ModifyURedisGroupPassword action.

func (*UMemClient) NewResizeUMemcacheGroupRequest

func (c *UMemClient) NewResizeUMemcacheGroupRequest() *ResizeUMemcacheGroupRequest

NewResizeUMemcacheGroupRequest will create request of ResizeUMemcacheGroup action.

func (*UMemClient) NewRestartURedisGroupRequest added in v0.8.9

func (c *UMemClient) NewRestartURedisGroupRequest() *RestartURedisGroupRequest

NewRestartURedisGroupRequest will create request of RestartURedisGroup action.

func (*UMemClient) ResizeUMemcacheGroup

ResizeUMemcacheGroup - 调整内存空间容量

func (*UMemClient) RestartURedisGroup added in v0.8.9

func (c *UMemClient) RestartURedisGroup(req *RestartURedisGroupRequest) (*RestartURedisGroupResponse, error)

RestartURedisGroup - 重启主备实例

type UMemDataSet added in v0.8.0

type UMemDataSet struct {

	// 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
	Zone string

	// 表示实例是主库还是从库,master,slave
	Role string

	// UMEM实例列表 UMemSlaveDataSet 如果没有slave,则没有该字段
	DataSet []UMemSlaveDataSet

	// 是否拥有只读Slave
	OwnSlave string

	// vpc
	VPCId string

	// 子网
	SubnetId string

	// 资源ID
	ResourceId string

	// 资源名称
	Name string

	// 创建时间
	CreateTime int

	// 到期时间
	ExpireTime int

	// 空间类型:single(无热备),double(热备)
	Type string

	// 协议类型: memcache, redis
	Protocol string

	// 容量单位GB
	Size int

	// 使用量单位MB
	UsedSize int

	// 实例状态                                  Starting                  // 创建中       Creating                  // 初始化中     CreateFail                // 创建失败     Fail                      // 创建失败     Deleting                  // 删除中       DeleteFail                // 删除失败     Running                   // 运行         Resizing                  // 容量调整中   ResizeFail                // 容量调整失败 Configing                 // 配置中       ConfigFail                // 配置失败Restarting                // 重启中SetPasswordFail    //设置密码失败
	State string

	// 计费模式,Year, Month, Dynamic, Trial
	ChargeType string

	// IP端口信息请,参见UMemSpaceAddressSet
	Address []UMemSpaceAddressSet

	// 业务组名称
	Tag string

	// distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版
	ResourceType string

	// 节点的配置ID
	ConfigId string

	// 是否需要自动备份,enable,disable
	AutoBackup string

	// 自动备份开始时间,单位小时计,范围[0-23]
	BackupTime int

	// 是否开启高可用,enable,disable
	HighAvailability string

	// Redis版本信息
	Version string

	// 主备Redis,提供两种类型:同机房高可用Redis,和同地域跨机房高可用Redis
	URedisType string

	// 跨机房URedis,slave redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
	SlaveZone string
}

UMemDataSet - DescribeUMem

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UMemSlaveDataSet added in v0.8.1

type UMemSlaveDataSet struct {

	// 实例所在可用区,或者master redis所在可用区,参见 [可用区列表](../summary/regionlist.html)
	Zone string

	// 子网
	SubnetId string

	// vpc
	VPCId string

	//
	VirtualIP string

	// 主实例id
	MasterGroupId string

	// 资源id
	GroupId string

	// 端口
	Port int

	// 实力大小
	MemorySize int

	// 资源名称
	GroupName string

	// 表示实例是主库还是从库,master,slave
	Role string

	// 修改时间
	ModifyTime int

	// 资源名称
	Name string

	// 创建时间
	CreateTime int

	// 到期时间
	ExpireTime int

	// 容量单位GB
	Size int

	// 使用量单位MB
	UsedSize int

	// 实例状态                                  Starting                  // 创建中       Creating                  // 初始化中     CreateFail                // 创建失败     Fail                      // 创建失败     Deleting                  // 删除中       DeleteFail                // 删除失败     Running                   // 运行         Resizing                  // 容量调整中   ResizeFail                // 容量调整失败 Configing                 // 配置中       ConfigFail                // 配置失败Restarting                // 重启中SetPasswordFail  //设置密码失败
	State string

	// 计费模式,Year, Month, Dynamic, Trial
	ChargeType string

	// 业务组名称
	Tag string

	// distributed: 分布式版Redis,或者分布式Memcache;single:主备版Redis,或者单机Memcache;performance:高性能版
	ResourceType string

	// 节点的配置ID
	ConfigId string

	// Redis版本信息
	Version string
}

UMemSlaveDataSet - DescribeUMem

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type UMemSpaceAddressSet added in v0.8.0

type UMemSpaceAddressSet struct {

	// UMem实例访问IP
	IP string

	// UMem实例访问Port
	Port int
}

UMemSpaceAddressSet - DescribeUMemSpace

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

type URedisConfigSet

type URedisConfigSet struct {

	// 配置ID
	ConfigId string

	// 配置名称
	Name string

	// 配置描述
	Description string

	// 配置对应的Redis版本
	Version string

	// 置是否可以修改
	IsModify string

	// 配置所处的状态
	State string

	// 创建时间 (UNIX时间戳)
	CreateTime int

	// 修改时间 (UNIX时间戳)
	ModifyTime int

	// 是否是跨机房URedis(默认false)
	RegionFlag bool

	// 配置文件所在的可用区
	Zone string
}

URedisConfigSet - 主备Redis配置文件信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn for detail.

Jump to

Keyboard shortcuts

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