sms

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: 7 Imported by: 0

Documentation

Overview

Package sms wraps Tencent Cloud SMS template + sign listing for the cloudlist `sms` asset.

Tencent's SMS API requires explicit ID sets to query — there is no "list all templates" endpoint with empty filter. We pass an empty IDSet which the service treats as "no targets" and surfaces nothing useful, so callers must populate IDs externally; this driver is therefore a best- effort enumeration. CSPM detection still benefits from the schema slot being filled (templates the operator already knows about).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Credential  auth.Credential
	Region      string
	SignIDs     []uint64
	TemplateIDs []uint64
	// contains filtered or unexported fields
}

func (*Driver) GetResource

func (d *Driver) GetResource(ctx context.Context) (schema.Sms, error)

GetResource fills schema.Sms with sign + template summaries. With empty SignIDs / TemplateIDs the response will be empty (Tencent requires explicit IDs); the schema slot is still populated so cloudlist output is consistent.

func (*Driver) SetClientOptions

func (d *Driver) SetClientOptions(opts ...api.Option)

Jump to

Keyboard shortcuts

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