models

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheSecretInfo

type CacheSecretInfo struct {
	SecretInfo       *SecretInfo `json:"secretInfo"`
	Stage            string      `json:"stage"`
	RefreshTimestamp int64       `json:"refreshTimestamp"`
}

func (*CacheSecretInfo) Clone

func (csi *CacheSecretInfo) Clone() *CacheSecretInfo

type ClientKeyCredential added in v1.0.1

type ClientKeyCredential struct {
	Signer     auth.Signer
	Credential auth.Credential
}

func NewClientKeyCredential added in v1.0.1

func NewClientKeyCredential(signer auth.Signer, credential auth.Credential) *ClientKeyCredential

type ClientKeyInfo added in v1.0.1

type ClientKeyInfo struct {
	KeyId          string
	PrivateKeyData string
}

func NewClientKeyInfo added in v1.0.1

func NewClientKeyInfo(keyId string, privateKeyData string) *ClientKeyInfo

type CredentialsProperties added in v1.0.1

type CredentialsProperties struct {
	Credential       auth.Credential
	SecretNameSlice  []string
	RegionInfoSlice  []*RegionInfo
	SourceProperties map[string]string

	DkmsConfigsMap map[*RegionInfo]*DkmsConfig
	PrivateKeyPath string
	Password       string
}

func NewCredentialsProperties added in v1.0.1

func NewCredentialsProperties(credential auth.Credential, secretNameSlice []string, regionInfoSlice []*RegionInfo, sourceProperties map[string]string) *CredentialsProperties

type DkmsConfig added in v1.1.0

type DkmsConfig struct {
	*dedicatedkmsopenapi.Config
	IgnoreSslCerts           bool
	PasswordFromEnvVariable  string
	PasswordFromFilePathName string
	CaCert                   string
	PasswordFromFilePath     string
}

type RegionInfo

type RegionInfo struct {
	// region id
	RegionId string
	// 表示程序运行的网络是否为VPC网络
	Vpc bool
	// 终端地址信息
	Endpoint string
	// KMS类型,0:KMS 1:DKMS
	KmsType int32
}

func NewRegionInfoWithEndpoint

func NewRegionInfoWithEndpoint(regionId string, endpoint string) *RegionInfo

func NewRegionInfoWithKmsType added in v1.1.0

func NewRegionInfoWithKmsType(regionId string, vpc bool, endpoint string, kmsType int32) *RegionInfo

func NewRegionInfoWithRegionId

func NewRegionInfoWithRegionId(regionId string) *RegionInfo

func NewRegionInfoWithVpcEndpoint

func NewRegionInfoWithVpcEndpoint(regionId string, vpc bool, endpoint string) *RegionInfo

type RegionInfoExtend

type RegionInfoExtend struct {
	*RegionInfo
	Escaped   float64
	Reachable bool
}

type SecretInfo

type SecretInfo struct {
	SecretName            string `json:"secretName"`
	VersionId             string `json:"versionId"`
	SecretValue           string `json:"secretValue"`
	SecretValueByteBuffer []byte `json:"secretValueByteBuffer"`
	SecretDataType        string `json:"secretDataType"`
	CreateTime            string `json:"createTime"`
	SecretType            string `json:"secretType"`
	AutomaticRotation     string `json:"automaticRotation"`
	ExtendedConfig        string `json:"extendedConfig"`
	RotationInterval      string `json:"rotationInterval"`
	NextRotationDate      string `json:"nextRotationDate"`
}

func (*SecretInfo) Clone

func (si *SecretInfo) Clone() *SecretInfo

Jump to

Keyboard shortcuts

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