models

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyCfg

type KeyCfg struct {

	/* 密钥描述配置  */
	KeyDescCfg *KeyDescCfg `json:"keyDescCfg"`

	/* 密钥轮换配置  */
	KeyRotateCfg *KeyRotateCfg `json:"keyRotateCfg"`
}

type KeyDescCfg

type KeyDescCfg struct {

	/* key名称,默认为""  */
	KeyName string `json:"keyName"`

	/* key描述,默认为""  */
	KeyDesc string `json:"keyDesc"`
}

type KeyDetail

type KeyDetail struct {

	/* KeyID  */
	KeyId string `json:"keyId"`

	/* Key名称  */
	KeyName string `json:"keyName"`

	/* 轮换周期 (Optional) */
	RotationCycle int `json:"rotationCycle"`

	/* Key版本的个数  */
	KeyVersionCount int `json:"keyVersionCount"`

	/* Key版本详情的列表  */
	KeyVersionList []KeyVersionItem `json:"keyVersionList"`
}

type KeyInfo

type KeyInfo struct {

	/* KeyID  */
	KeyId string `json:"keyId"`

	/* Key名称  */
	KeyName string `json:"keyName"`

	/* Key当前状态: 0:已启用、1:已禁用、2:计划删除  */
	KeyStatus int `json:"keyStatus"`

	/* Key创建时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	CreateTime string `json:"createTime"`

	/* Key的用途  */
	KeyDesc string `json:"keyDesc"`

	/* Key的轮换周期,为0则永久不轮换  */
	RotationCycle int `json:"rotationCycle"`

	/* 计划删除的时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	DeleteTime string `json:"deleteTime"`
}

type KeyRotateCfg

type KeyRotateCfg struct {

	/* 是否自动轮换,默认为false  */
	AutoRotate bool `json:"autoRotate"`

	/* 自动轮换周期,单位为(天),默认为0(永不轮换)  */
	RotationCycle int `json:"rotationCycle"`
}

type KeyVersionItem

type KeyVersionItem struct {

	/* 版本号  */
	KeyVersion string `json:"keyVersion"`

	/* 创建时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	CreateTime string `json:"createTime"`

	/* Key当前状态: 0:已启用、1:已禁用、2:计划删除  */
	KeyStatus int `json:"keyStatus"`

	/* 计划删除的时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	DeleteTime string `json:"deleteTime"`
}

type SecretCfg

type SecretCfg struct {

	/* 机密数据描述信息配置  */
	SecretDescCfg *SecretDescCfg `json:"secretDescCfg"`

	/* 机密数据有效时间段配置  */
	SecretTimeCfg *SecretTimeCfg `json:"secretTimeCfg"`

	/* secret内容  */
	SecretData string `json:"secretData"`
}

type SecretDescCfg

type SecretDescCfg struct {

	/* secret名称,默认为""  */
	SecretName string `json:"secretName"`

	/* secret描述,默认为""  */
	SecretDesc string `json:"secretDesc"`
}

type SecretDetail

type SecretDetail struct {

	/* 密钥的基本信息  */
	SecretInfo SecretInfo `json:"secretInfo"`

	/* Secret版本的个数  */
	SecretVersionCount int `json:"secretVersionCount"`

	/* Secret版本详情的列表  */
	SecretVersionList []SecretVersionItem `json:"secretVersionList"`
}

type SecretInfo

type SecretInfo struct {

	/* SecretID  */
	SecretId string `json:"secretId"`

	/* Secret名称  */
	SecretName string `json:"secretName"`

	/* Secret用途描述  */
	SecretDesc string `json:"secretDesc"`

	/* Secret当前状态: 0: 已启用、1: 已禁用  */
	SecretStatus int `json:"secretStatus"`

	/* Secret创建时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	CreateTime string `json:"createTime"`
}

type SecretTimeCfg

type SecretTimeCfg struct {

	/* 激活时间,默认为当前时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	StartTime string `json:"startTime"`

	/* 到期时间,默认为永久不到期,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	ExpireTime string `json:"expireTime"`
}

type SecretVersionCfg

type SecretVersionCfg struct {

	/* secret内容  */
	SecretData string `json:"secretData"`

	/* 机密数据有效时间段配置  */
	SecretTimeCfg *SecretTimeCfg `json:"secretTimeCfg"`
}

type SecretVersionItem

type SecretVersionItem struct {

	/* 版本标识  */
	SecretVersion string `json:"secretVersion"`

	/* Secret当前状态: 0: 已启用、1: 已禁用  */
	SecretStatus int `json:"secretStatus"`

	/* Secret激活时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	StartTime string `json:"startTime"`

	/* 到期时间,采用ISO8601标准,格式为: YYYY-MM-DDTHH:mm:ssZ  */
	ExpireTime string `json:"expireTime"`

	/* 密钥的内容  */
	SecretData string `json:"secretData"`
}

Jump to

Keyboard shortcuts

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