alibaba

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig added in v0.2.3

type ClientConfig struct {
	APIOptions          []_api.Option
	OSSOptions          []_oss.Option
	SLSHTTPClient       *http.Client
	SkipCredentialCache bool
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider is a data provider for alibaba API

func New

func New(options schema.Options) (*Provider, error)

New creates a new provider client for alibaba API

func NewWithConfig added in v0.2.3

func NewWithConfig(options schema.Options, cfg ClientConfig) (*Provider, error)

NewWithConfig creates a new provider client for alibaba API 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 alibaba OSS. `container` is a bucket name; `level` is the canned OSS ACL value (private, public-read, public-read-write) or a friendly alias resolved by NormalizeOSSACL.

func (*Provider) BucketDump added in v0.0.5

func (p *Provider) BucketDump(ctx context.Context, action, bucketName string) ([]schema.BucketResult, error)

func (*Provider) DBManagement added in v0.1.1

func (p *Provider) DBManagement(ctx context.Context, action, instanceID string) (schema.DatabaseActionResult, error)

func (*Provider) EventDump added in v0.0.9

func (p *Provider) EventDump(ctx context.Context, action, args string) (schema.EventActionResult, error)

func (*Provider) ExecuteCloudVMCommand added in v0.1.1

func (p *Provider) ExecuteCloudVMCommand(ctx context.Context, instanceID, cmd string) (schema.CommandResult, error)

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 alibaba RAM AccessKey lifecycle. `principal` is the RAM user name (required for create and delete; optional for list — empty falls back to the calling principal).

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the provider

func (*Provider) Resources

func (p *Provider) Resources(ctx context.Context) (schema.Resources, error)

Resources returns the provider for a resource deployment source.

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 alibaba RAM. `principal` is a RAM user name, `role` is the policy name, and `scope` is the policy type (System or Custom; defaults to System).

func (*Provider) UserManagement added in v0.0.4

func (p *Provider) UserManagement(action, username, password string) (schema.IAMResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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