Documentation
¶
Index ¶
- type ClientConfig
- type Provider
- func (p *Provider) BucketACL(ctx context.Context, action, container, level string) (schema.BucketACLResult, error)
- func (p *Provider) BucketDump(ctx context.Context, action, bucketName string) ([]schema.BucketResult, error)
- func (p *Provider) DBManagement(ctx context.Context, action, instanceID string) (schema.DatabaseActionResult, error)
- func (p *Provider) EventDump(ctx context.Context, action, args string) (schema.EventActionResult, error)
- func (p *Provider) ExecuteCloudVMCommand(ctx context.Context, instanceID, cmd string) (schema.CommandResult, error)
- func (p *Provider) IAMCredential(ctx context.Context, action, principal, credentialID string) (schema.IAMCredentialResult, error)
- func (p *Provider) Name() string
- func (p *Provider) Resources(ctx context.Context) (schema.Resources, error)
- func (p *Provider) RoleBinding(ctx context.Context, action, principal, role, scope string) (schema.RoleBindingResult, error)
- func (p *Provider) UserManagement(action, username, password string) (schema.IAMResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶ added in v0.2.5
type ClientConfig struct {
APIOptions []api.Option
COSOptions []cos.Option
SkipCredentialCache bool
}
ClientConfig injects transport options while preserving provider behavior.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a data provider for tencent API
func NewWithConfig ¶ added in v0.2.5
func NewWithConfig(options schema.Options, cfg ClientConfig) (*Provider, error)
NewWithConfig creates a provider with injected client configuration.
func (*Provider) BucketACL ¶ added in v0.3.1
func (p *Provider) BucketACL(ctx context.Context, action, container, level string) (schema.BucketACLResult, error)
BucketACL implements schema.BucketACLManager for tencent COS. `level` accepts canned COS ACL values (private / public-read / public-read-write / authenticated-read) or friendly aliases resolved by cos.NormalizeCOSACL.
func (*Provider) BucketDump ¶ added in v0.0.5
func (*Provider) DBManagement ¶ added in v0.1.1
func (p *Provider) DBManagement(ctx context.Context, action, instanceID string) (schema.DatabaseActionResult, error)
DBManagement implements schema.DBManager for Tencent CDB. `useradd` provisions an account from the `rds-account-check` config; `userdel` removes it.
func (*Provider) EventDump ¶ added in v0.0.9
func (p *Provider) EventDump(ctx context.Context, action, args string) (schema.EventActionResult, error)
EventDump implements schema.EventReader for tencent CloudAudit. The `dump` action lists recent operation log entries via `LookUpEvents`. Tencent CloudAudit is read-only, so the `whitelist` action returns a clear unsupported-action error rather than silently no-op.
func (*Provider) ExecuteCloudVMCommand ¶ added in v0.1.1
func (*Provider) IAMCredential ¶ added in v0.3.1
func (p *Provider) IAMCredential(ctx context.Context, action, principal, credentialID string) (schema.IAMCredentialResult, error)
IAMCredential implements schema.IAMCredentialManager for tencent CAM AccessKey lifecycle. `principal` is the CAM user name (required for create and delete; optional for list). `credentialID` is the AccessKeyId.
func (*Provider) RoleBinding ¶ added in v0.3.1
func (p *Provider) RoleBinding(ctx context.Context, action, principal, role, scope string) (schema.RoleBindingResult, error)
RoleBinding implements schema.RoleBindingManager for tencent CAM. `principal` is a CAM sub-user name; `role` is a numeric policyID (or the friendly name "AdministratorAccess" → 1). `scope` is reserved (CAM user attachments are account-wide).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cls wraps Tencent Cloud Log Service for the cloudlist `log` asset.
|
Package cls wraps Tencent Cloud Log Service for the cloudlist `log` asset. |
|
Package sms wraps Tencent Cloud SMS template + sign listing for the cloudlist `sms` asset.
|
Package sms wraps Tencent Cloud SMS template + sign listing for the cloudlist `sms` asset. |