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 Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶ added in v0.2.5
func NewWithConfig(options schema.Options, cfg ClientConfig) (*Provider, error)
NewWithConfig creates a new provider client with injected transport options. This keeps payload behavior intact while allowing replay/test clients to flow through the real provider and driver stack.
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 volcengine TOS. `level` accepts the canned TOS ACL values (private / public-read / public-read-write) or friendly aliases resolved by tos.NormalizeTOSACL.
func (*Provider) BucketDump ¶
func (*Provider) DBManagement ¶
func (p *Provider) DBManagement(ctx context.Context, action, instanceID string) (schema.DatabaseActionResult, error)
DBManagement implements schema.DBManager for Volcengine RDS. The driver auto-detects the sub-service (mysql / postgres / mssql) from the instanceID prefix; username/password come from the `rds-account-check` config.
func (*Provider) EventDump ¶
func (p *Provider) EventDump(ctx context.Context, action, args string) (schema.EventActionResult, error)
EventDump implements schema.EventReader for Volcengine Audit. Action `dump` lists recent operation events; `whitelist` is unsupported (Audit is read-only).
func (*Provider) ExecuteCloudVMCommand ¶
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 volcengine IAM AccessKey lifecycle. `principal` is the IAM user name (required for create and delete; optional for list).
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 volcengine IAM. `principal` is the IAM user name; `role` is the policy name (e.g. `AdministratorAccess`); `scope` is the policy type (`System` or `Custom`, defaulting to `System`).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package sms wraps Volcengine SMS for the cloudlist `sms` asset.
|
Package sms wraps Volcengine SMS for the cloudlist `sms` asset. |
|
Package tls wraps the Volcengine TLS DescribeProjects action for the cloudlist `log` asset.
|
Package tls wraps the Volcengine TLS DescribeProjects action for the cloudlist `log` asset. |