Versions in this module Expand all Collapse all v0 v0.0.8 Sep 14, 2025 Changes in this version + const APP_NAME + const SECRET_KEY + const SYNCER_PREFIX + const TASK_LABLE_SECRET_ID + func GetSyncerName(t resource.TYPE) string + func NewSecretSet() *types.Set[*Secret] + func RegistrySyncer(t resource.TYPE, s Syncer) + type CreateSecretRequest struct + Address string + ApiKey string + ApiSecret string + Enabled *bool + Name string + Regions []string + ResourceType []resource.TYPE + SyncLimit int64 + Vendor resource.VENDOR + func NewCreateSecretRequest() *CreateSecretRequest + func (r *CreateSecretRequest) DecryptedApiSecret() error + func (r *CreateSecretRequest) EncryptedApiSecret() error + func (r *CreateSecretRequest) GetEnabled() bool + func (r *CreateSecretRequest) GetSyncLimit() int64 + func (r *CreateSecretRequest) SetEnabled(v bool) *CreateSecretRequest + func (r *CreateSecretRequest) SetIsEncrypted(v bool) *CreateSecretRequest + type DescribeSecretRequest struct + Id string + func NewDescribeSecretRequest(id string) *DescribeSecretRequest + type QuerySecretRequest struct + func NewQuerySecretRequest() *QuerySecretRequest + type QuerySyncLogRequest struct + TaskId int + type ResourceResponse struct + InstanceId string + Message string + Resource *resource.Resource + Success bool + func (t ResourceResponse) String() string + type Secret struct + func NewSecret(in *CreateSecretRequest) *Secret + func (s *Secret) SetDefault() *Secret + func (s *Secret) String() string + func (s *Secret) TableName() string + type Service interface + CreateSecret func(context.Context, *CreateSecretRequest) (*Secret, error) + DescribeSecret func(context.Context, *DescribeSecretRequest) (*Secret, error) + QuerySecret func(context.Context, *QuerySecretRequest) (*types.Set[*Secret], error) + SyncResource func(context.Context, *SyncResourceRequest) (*types.Set[*task.Task], error) + func GetService() Service + type SyncRecord struct + type SyncResourceHandleFunc func(ResourceResponse) + type SyncResourceRequest struct + Id string + func NewSyncResourceRequest(id string) *SyncResourceRequest + type SyncResourceTask struct + type Syncer interface + Sync func(ctx context.Context, ins *Secret, region string, rt resource.TYPE) *task.Task + func GetSyncer(t resource.TYPE) Syncer