Versions in this module Expand all Collapse all v0 v0.0.2 Apr 23, 2024 v0.0.1 Apr 11, 2024 Changes in this version + const BypassDomain + const BypassFilePath + const BypassHeader + const BypassInfoInput + const BypassInfoUrlParam + const BypassParam + const BypassPath + const BypassResponse + const BypassResponseData + const BypassUrlParam + const TerraformProviderName + const TerraformProviderVersion + var TagsHash = func(v interface{}) int + var VkeTagsResponseHash = func(v interface{}) int + func BeforeTosPutAcl(d *schema.ResourceData, call SdkCall, data *map[string]interface{}, err error) (bool, error) + func CallProcess(calls []SdkCall, d *schema.ResourceData, client *SdkClient, ...) (err error) + func CheckResourceUtilRemoved(d *schema.ResourceData, readResourceFunc ReadResourceFunc, ...) error + func ClbAclEntryHash(v interface{}) int + func Convert(d *schema.ResourceData, k string, v interface{}, t RequestConvert, index int, ...) (err error) + func DataSourceToRequest(d *schema.ResourceData, r *schema.Resource, info DataSourceInfo) (req map[string]interface{}, err error) + func DefaultMapValue(source *map[string]interface{}, key string, ...) + func DownLineToFilter(s string) string + func DownLineToHump(s string) string + func DownLineToHumpAndFirstLower(s string) string + func DownLineToSpace(s string) string + func FilterSystemTags(tags []interface{}) []interface + func GetFinalKey(t RequestConvert, k string, isRoot bool) string + func GetSetDifference(key string, d *schema.ResourceData, f schema.SchemaSetFunc, supportUpdate bool) (add *schema.Set, remove *schema.Set, modify *schema.Set, ...) + func HumpToDownLine(s string) string + func InitLocks() + func MergeDateSourceToResource(source map[string]*schema.Schema, target *map[string]*schema.Schema) + func ObtainSdkValue(keyPattern string, obj interface{}) (interface{}, error) + func ReleaseLock(key string) + func RequestConvertDefault(v interface{}, k string, t RequestConvert, req *map[string]interface{}, ...) error + func RequestConvertListFilter(v interface{}, k string, t RequestConvert, index int, ...) (int, error) + func RequestConvertListN(v interface{}, k string, t RequestConvert, req *map[string]interface{}, ...) error + func RequestConvertSingleN(v interface{}, k string, t RequestConvert, req *map[string]interface{}, ...) error + func RequestConvertWithFilter(v interface{}, k string, t RequestConvert, index int, ...) (int, error) + func RequestConvertWithN(v interface{}, k string, t RequestConvert, req *map[string]interface{}, ...) error + func RequestCreateConvert(d *schema.ResourceData, k string, t RequestConvert, index int, ...) (int, error) + func RequestUpdateConvert(d *schema.ResourceData, k string, t RequestConvert, index int, ...) (int, error) + func ResourceDateToRequest(d *schema.ResourceData, resource *schema.Resource, isUpdate bool, ...) (map[string]interface{}, error) + func ResourceFlowLimitExceededError(err error) bool + func ResourceNotFoundError(err error) bool + func ResponseToDataSource(d *schema.ResourceData, r *schema.Resource, info DataSourceInfo, ...) (err error) + func ResponseToResourceData(d *schema.ResourceData, resource *schema.Resource, data interface{}, ...) (rd interface{}, err error) + func SortAndStartTransJson(source map[string]interface{}) (map[string]interface{}, error) + func TagsSchema() *schema.Schema + func TagsSchemaComputed() *schema.Schema + func TosAccountAclHash(v interface{}) int + func TryLock(key string) + func UnsubscribeProductConflictError(err error) bool + func UnsubscribeProductError(err error) bool + func WithNextTokenQuery(condition map[string]interface{}, maxResultsParam string, ...) (data []interface{}, err error) + func WithPageNumberQuery(condition map[string]interface{}, pageSizeParam string, pageNumParam string, ...) (data []interface{}, err error) + func WithPageOffsetQuery(condition map[string]interface{}, limitParam string, pageParam string, ...) (data []interface{}, err error) + func WithSimpleQuery(condition map[string]interface{}, call PageCall) (data []interface{}, err error) + type AfterCallFunc func(d *schema.ResourceData, client *SdkClient, resp *map[string]interface{}, ...) error + type BeforeCallFunc func(d *schema.ResourceData, client *SdkClient, call SdkCall) (bool, error) + type BypassSvc struct + Session *session.Session + func NewBypassClient(session *session.Session) *BypassSvc + func (u *BypassSvc) DoBypassSvcCall(info BypassSvcInfo, input *map[string]interface{}) (output *map[string]interface{}, err error) + func (u *BypassSvc) NewTlsClient() *client.Client + func (u *BypassSvc) NewTosClient(info *BypassSvcInfo) *client.Client + type BypassSvcInfo struct + Client *client.Client + ContentPath string + ContentType ContentType + Domain string + Header map[string]string + HttpMethod HttpMethod + Path []string + UrlParam map[string]string + type CallErrorFunc func(d *schema.ResourceData, client *SdkClient, call SdkCall, baseErr error) error + type CallFunc func(d *schema.ResourceData, client *SdkClient, call SdkCall) error + type Callback struct + Call SdkCall + Err error + func SetResourceTags(serviceClient *SdkClient, addAction, RemoveAction, resourceType string, ...) []Callback + type Config struct + AccessKey string + CustomerEndpoints map[string]string + CustomerHeaders map[string]string + DisableSSL bool + Endpoint string + ProxyUrl string + Region string + SecretKey string + SessionToken string + func (c *Config) Client() (*SdkClient, error) + type ContentType int + const ApplicationJSON + const Default + type Credentials struct + AccessKeyID string + Region string + SecretAccessKey string + Service string + SessionToken string + type DataSourceInfo struct + CollectField string + ContentType RequestContentType + EachResource EachResource + ExtraData ExtraData + IdField string + NameField string + RequestConverts map[string]RequestConvert + ResponseConverts map[string]ResponseConvert + ServiceCategory ServiceCategory + type DecodeNextToken func(source string) string + type Dispatcher struct + func DefaultDispatcher() *Dispatcher + func (d *Dispatcher) Create(resourceService ResourceService, resourceDate *schema.ResourceData, ...) (err error) + func (d *Dispatcher) Data(resourceService ResourceService, resourceDate *schema.ResourceData, ...) (err error) + func (d *Dispatcher) Delete(resourceService ResourceService, resourceDate *schema.ResourceData, ...) (err error) + func (d *Dispatcher) Read(resourceService ResourceService, resourceDate *schema.ResourceData, ...) (err error) + func (d *Dispatcher) Update(resourceService ResourceService, resourceDate *schema.ResourceData, ...) (err error) + type EachResource func([]interface{}, *schema.ResourceData) ([]interface{}, error) + type ExecuteCallFunc func(d *schema.ResourceData, client *SdkClient, call SdkCall) (*map[string]interface{}, error) + type ExtraData func([]interface{}) ([]interface{}, error) + type ExtraRefreshFunc func(d *schema.ResourceData, client *SdkClient, call SdkCall) (map[ResourceService]*StateRefresh, error) + type FieldRequestConvert func(*schema.ResourceData, interface{}) interface + type FieldResponseConvert func(interface{}) interface + func ConvertTosAccountAcl() FieldResponseConvert + func ConvertTosPublicAcl() FieldResponseConvert + type GetUniversalInfo func(actionName string) UniversalInfo + type HttpMethod int + const DELETE + const GET + const HEAD + const POST + const PUT + type LockId func(d *schema.ResourceData) string + type NextTokenCall func(map[string]interface{}) ([]interface{}, string, error) + type PageCall func(map[string]interface{}) ([]interface{}, error) + type Project struct + Client *SdkClient + func NewProjectService(c *SdkClient) *Project + func (p *Project) ModifyProject(trn *ProjectTrn, resourceData *schema.ResourceData, r *schema.Resource, ...) []Callback + func (p *Project) ModifyProjectOld(trn ProjectTrn, resourceData *schema.ResourceData, resource *schema.Resource, ...) []Callback + type ProjectTrn struct + ProjectResponseField string + ProjectSchemaField string + ResourceID string + ResourceType string + ServiceName string + type ProjectUpdateEnabled interface + ProjectTrn func() *ProjectTrn + type Rate struct + Limiter *rate.Limiter + Semaphore *semaphore.Weighted + func GetRateInfoMap(svc, action, version string) *Rate + type ReadResourceFunc func(d *schema.ResourceData, resourceId string) (map[string]interface{}, error) + type RequestContentType int + const ContentTypeDefault + const ContentTypeJson + type RequestConvert struct + Convert FieldRequestConvert + ConvertType RequestConvertType + ForceGet bool + Ignore bool + NextLevelConvert map[string]RequestConvert + SpecialParam *SpecialParam + StartIndex int + TargetField string + type RequestConvertMode int + const RequestConvertAll + const RequestConvertIgnore + const RequestConvertInConvert + type RequestConvertType int + const ConvertDefault + const ConvertJsonArray + const ConvertJsonObject + const ConvertJsonObjectArray + const ConvertListN + const ConvertListUnique + const ConvertSingleN + const ConvertWithN + type ResourceResponseHandler func() (map[string]interface{}, map[string]ResponseConvert, error) + type ResourceService interface + CreateResource func(*schema.ResourceData, *schema.Resource) []Callback + DatasourceResources func(*schema.ResourceData, *schema.Resource) DataSourceInfo + GetClient func() *SdkClient + ModifyResource func(*schema.ResourceData, *schema.Resource) []Callback + ReadResource func(*schema.ResourceData, string) (map[string]interface{}, error) + ReadResourceId func(string) string + ReadResources func(map[string]interface{}) ([]interface{}, error) + RefreshResourceState func(*schema.ResourceData, []string, time.Duration, string) *resource.StateChangeConf + RemoveResource func(*schema.ResourceData, *schema.Resource) []Callback + WithResourceResponseHandlers func(map[string]interface{}) []ResourceResponseHandler + type ResponseConvert struct + Chain string + Convert FieldResponseConvert + Ignore bool + KeepDefault bool + TargetField string + type SdkCall struct + Action string + AfterCall AfterCallFunc + AfterLocked CallFunc + AfterRefresh CallFunc + BeforeCall BeforeCallFunc + CallError CallErrorFunc + ContentType RequestContentType + Convert map[string]RequestConvert + ConvertMode RequestConvertMode + ExecuteCall ExecuteCallFunc + ExtraRefresh map[ResourceService]*StateRefresh + ExtraRefreshCall ExtraRefreshFunc + LockId LockId + Refresh *StateRefresh + RequestIdField string + SdkParam *map[string]interface{} + ServiceCategory ServiceCategory + func (c *SdkCall) InitReadCall(resourceData *schema.ResourceData, resource *schema.Resource) (err error) + func (c *SdkCall) InitWriteCall(resourceData *schema.ResourceData, resource *schema.Resource, isUpdate bool) (err error) + type SdkClient struct + BypassSvcClient *BypassSvc + Region string + UniversalClient *Universal + type ServiceCategory int + const DefaultServiceCategory + const ServiceBypass + type SpecialParam struct + Index int + Type SpecialParamType + type SpecialParamType int + const DomainParam + const FilePathParam + const HeaderParam + const PathParam + const UrlParam + type StateRefresh struct + ResourceId string + Target []string + Timeout time.Duration + type Universal struct + Session *session.Session + func NewUniversalClient(session *session.Session, endpoints map[string]string) *Universal + func (u *Universal) DoCall(info UniversalInfo, input *map[string]interface{}) (output *map[string]interface{}, err error) + type UniversalInfo struct + Action string + ContentType ContentType + HttpMethod HttpMethod + ServiceName string + Version string + type UnsubscribeEnabled interface + UnsubscribeInfo func(*schema.ResourceData, *schema.Resource) (*UnsubscribeInfo, error) + type UnsubscribeInfo struct + InstanceId string + NeedUnsubscribe bool + Products []string + type UnsubscribeService struct + Client *SdkClient + func NewUnsubscribeService(c *SdkClient) *UnsubscribeService + func (u *UnsubscribeService) UnsubscribeInstance(info *UnsubscribeInfo) []Callback