├── vendor ├── github.com │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── .gitignore │ │ │ ├── go_below_17.go │ │ │ ├── go_above_17.go │ │ │ ├── .travis.yml │ │ │ ├── go_below_19.go │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ ├── Gopkg.lock │ │ │ ├── Gopkg.toml │ │ │ ├── safe_struct.go │ │ │ ├── reflect2_kind.go │ │ │ ├── unsafe_ptr.go │ │ │ ├── safe_field.go │ │ │ ├── unsafe_eface.go │ │ │ ├── unsafe_iface.go │ │ │ ├── unsafe_struct.go │ │ │ └── safe_type.go │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ ├── log.go │ │ │ ├── executor.go │ │ │ ├── go_below_19.go │ │ │ └── README.md │ ├── urfave │ │ └── cli │ │ │ └── v2 │ │ │ ├── .flake8 │ │ │ ├── .gitignore │ │ │ ├── go.mod │ │ │ ├── sort.go │ │ │ ├── cli.go │ │ │ ├── LICENSE │ │ │ ├── args.go │ │ │ └── go.sum │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ ├── build.sh │ │ │ ├── Gopkg.lock │ │ │ ├── Gopkg.toml │ │ │ ├── fuzzy_mode_convert_table.md │ │ │ ├── jsoniter.go │ │ │ ├── pool.go │ │ │ ├── LICENSE │ │ │ ├── any_nil.go │ │ │ ├── any_int64.go │ │ │ ├── any_int32.go │ │ │ ├── any_uint64.go │ │ │ ├── iter_array.go │ │ │ ├── any_uint32.go │ │ │ ├── any_float.go │ │ │ ├── any_invalid.go │ │ │ ├── reflect_dynamic.go │ │ │ └── reflect_json_raw_message.go │ ├── russross │ │ └── blackfriday │ │ │ └── v2 │ │ │ ├── go.mod │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── esc.go │ │ │ ├── doc.go │ │ │ └── LICENSE.txt │ ├── shurcooL │ │ └── sanitized_anchor_name │ │ │ ├── go.mod │ │ │ ├── .travis.yml │ │ │ ├── main.go │ │ │ ├── README.md │ │ │ └── LICENSE │ ├── jmespath │ │ └── go-jmespath │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── README.md │ │ │ ├── LICENSE │ │ │ ├── toktype_string.go │ │ │ ├── astnodetype_string.go │ │ │ ├── Makefile │ │ │ └── api.go │ ├── aliyun │ │ └── alibaba-cloud-sdk-go │ │ │ ├── sdk │ │ │ ├── auth │ │ │ │ ├── signers │ │ │ │ │ ├── session_credential.go │ │ │ │ │ ├── signer_bearer_token.go │ │ │ │ │ ├── signer_v2.go │ │ │ │ │ ├── signer_access_key.go │ │ │ │ │ ├── algorithms.go │ │ │ │ │ ├── signer_sts_token.go │ │ │ │ │ └── credential_updater.go │ │ │ │ ├── credentials │ │ │ │ │ ├── bearer_token_credential.go │ │ │ │ │ ├── sts_credential.go │ │ │ │ │ ├── rsa_key_pair_credential.go │ │ │ │ │ ├── provider │ │ │ │ │ │ ├── provider.go │ │ │ │ │ │ ├── provider_chain.go │ │ │ │ │ │ └── env.go │ │ │ │ │ ├── ecs_ram_role.go │ │ │ │ │ └── access_key_credential.go │ │ │ │ └── credential.go │ │ │ ├── utils │ │ │ │ └── debug.go │ │ │ ├── errors │ │ │ │ ├── error.go │ │ │ │ └── signature_does_not_match_wrapper.go │ │ │ ├── requests │ │ │ │ └── types.go │ │ │ └── endpoints │ │ │ │ ├── local_global_resolver.go │ │ │ │ ├── mapping_resolver.go │ │ │ │ └── local_regional_resolver.go │ │ │ └── services │ │ │ └── alidns │ │ │ ├── endpoint.go │ │ │ ├── struct_logs.go │ │ │ ├── struct_values.go │ │ │ ├── struct_domains.go │ │ │ ├── struct_previews.go │ │ │ ├── struct_instances.go │ │ │ ├── struct_strategies.go │ │ │ ├── struct_domain_logs.go │ │ │ ├── struct_record_logs.go │ │ │ ├── struct_tags_in_describe_tags.go │ │ │ ├── struct_custom_lines.go │ │ │ ├── struct_dns_products.go │ │ │ ├── struct_new_dns_servers.go │ │ │ ├── struct_switch_infos.go │ │ │ ├── struct_available_ttls.go │ │ │ ├── struct_domain_groups.go │ │ │ ├── struct_gtm_instances.go │ │ │ ├── struct_tag_resources.go │ │ │ ├── struct_tags_in_describe_domains.go │ │ │ ├── struct_original_dns_servers.go │ │ │ ├── struct_recovery_plans.go │ │ │ ├── struct_slb_sub_domains.go │ │ │ ├── struct_fault_addr_pools.go │ │ │ ├── struct_dns_servers_in_add_domain.go │ │ │ ├── struct_domain_transfers.go │ │ │ ├── struct_expect_dns_servers.go │ │ │ ├── struct_instance_domains.go │ │ │ ├── struct_addrs_in_describe_gtm_recovery_plan.go │ │ │ ├── struct_lines_in_describe_gtm_access_strategy.go │ │ │ ├── struct_dns_servers_in_describe_domain_ns.go │ │ │ ├── struct_dns_servers_in_describe_domains.go │ │ │ ├── struct_batch_result_details.go │ │ │ ├── struct_lines_in_describe_gtm_access_strategies.go │ │ │ ├── struct_tag.go │ │ │ ├── struct_dns_servers_in_describe_domain_info.go │ │ │ ├── struct_switch_info.go │ │ │ ├── struct_addrs_in_describe_gtm_instance_address_pool.go │ │ │ ├── struct_domain_records_in_describe_domain_records.go │ │ │ ├── struct_ip_segment_list_in_describe_custom_line.go │ │ │ ├── struct_record_lines_in_describe_domain_info.go │ │ │ ├── struct_domain_records_in_describe_sub_domain_records.go │ │ │ ├── struct_ip_segment.go │ │ │ ├── struct_ip_segment_list_in_describe_custom_lines.go │ │ │ ├── struct_record_lines_in_describe_support_lines.go │ │ │ ├── struct_statistics_in_describe_domain_statistics.go │ │ │ ├── struct_statistics_in_describe_record_statistics.go │ │ │ ├── struct_dns_servers_in_describe_dns_product_instance.go │ │ │ ├── struct_statistics_in_describe_doh_account_statistics.go │ │ │ ├── struct_statistics_in_describe_doh_domain_statistics.go │ │ │ ├── struct_addr_pools_in_describe_gtm_instance_address_pools.go │ │ │ ├── struct_isp_city_nodes_in_describe_gtm_monitor_config.go │ │ │ ├── struct_lines_in_describe_gtm_access_strategy_available_config.go │ │ │ ├── struct_statistics_in_describe_doh_sub_domain_statistics.go │ │ │ ├── struct_statistics_in_describe_domain_statistics_summary.go │ │ │ ├── struct_statistics_in_describe_record_statistics_summary.go │ │ │ ├── struct_statistics_in_describe_doh_domain_statistics_summary.go │ │ │ ├── struct_addr_pools_in_describe_gtm_recovery_plan_available_config.go │ │ │ ├── struct_domain_group.go │ │ │ ├── struct_statistics_in_describe_doh_sub_domain_statistics_summary.go │ │ │ ├── struct_addr_pools_in_describe_gtm_access_strategy_available_config.go │ │ │ ├── struct_isp_city_nodes_in_describe_gtm_monitor_available_config.go │ │ │ ├── struct_instance_domain.go │ │ │ ├── struct_slb_sub_domain.go │ │ │ ├── struct_tag_resource.go │ │ │ ├── struct_preview.go │ │ │ ├── struct_record_line.go │ │ │ ├── struct_instance.go │ │ │ ├── struct_record_log.go │ │ │ ├── struct_line.go │ │ │ ├── struct_fault_addr_pool.go │ │ │ ├── struct_domain_transfer.go │ │ │ ├── struct_domain_log.go │ │ │ ├── struct_custom_line.go │ │ │ ├── struct_log.go │ │ │ ├── struct_addr.go │ │ │ ├── struct_record.go │ │ │ ├── struct_isp_city_node.go │ │ │ ├── struct_statistic.go │ │ │ ├── struct_addr_pool.go │ │ │ ├── struct_batch_result_detail.go │ │ │ ├── struct_recovery_plan.go │ │ │ └── struct_gtm_instance.go │ └── cpuguy83 │ │ └── go-md2man │ │ └── v2 │ │ ├── md2man │ │ └── md2man.go │ │ └── LICENSE.md ├── gopkg.in │ ├── yaml.v2 │ │ ├── go.mod │ │ ├── .travis.yml │ │ ├── NOTICE │ │ ├── writerc.go │ │ └── LICENSE.libyaml │ └── ini.v1 │ │ ├── .gitignore │ │ ├── Makefile │ │ ├── .travis.yml │ │ ├── error.go │ │ └── README.md └── modules.txt ├── .idea ├── .gitignore ├── misc.xml ├── vcs.xml ├── modules.xml └── aliddns.iml ├── scripts ├── entrypoint.sh └── install_remove │ ├── postremove.sh │ ├── postinstall.sh │ ├── preinstall.sh │ └── preremove.sh ├── .gitignore ├── snap.login.enc ├── aliddns.yaml ├── go.mod ├── Dockerfile ├── systemd └── aliddns.service ├── models └── models.go ├── .github └── workflows │ ├── test.yml │ └── release.yml ├── LICENSE └── aliddns.rb /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /workspace.xml -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | aliddns $@ 3 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /test.yaml 2 | /test/main.go 3 | /snap.login 4 | /dist/ 5 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 120 3 | -------------------------------------------------------------------------------- /snap.login.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenIoTHub/aliddns/HEAD/snap.login.enc -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/russross/blackfriday/v2 2 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /scripts/install_remove/postremove.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo postremove.sh 4 | #rm -rf /etc/aliddns -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/shurcooL/sanitized_anchor_name 2 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/.gitignore: -------------------------------------------------------------------------------- 1 | /jpgo 2 | jmespath-fuzz.zip 3 | cpu.out 4 | go-jmespath.test 5 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | *.swp 3 | *.8 4 | *.6 5 | _obj 6 | _test* 7 | markdown 8 | tags 9 | -------------------------------------------------------------------------------- /scripts/install_remove/postinstall.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo postinstall.sh 4 | systemctl enable aliddns 5 | systemctl start aliddns -------------------------------------------------------------------------------- /scripts/install_remove/preinstall.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo preinstall.sh: 4 | #systemctl stop aliddns 5 | #systemctl disable aliddns -------------------------------------------------------------------------------- /scripts/install_remove/preremove.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo preremove.sh: 4 | systemctl stop aliddns 5 | systemctl disable aliddns -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/go.mod: -------------------------------------------------------------------------------- 1 | module "gopkg.in/yaml.v2" 2 | 3 | require ( 4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/.gitignore: -------------------------------------------------------------------------------- 1 | *.coverprofile 2 | *.orig 3 | node_modules/ 4 | vendor 5 | .idea 6 | internal/*/built-example 7 | coverage.txt 8 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/.gitignore: -------------------------------------------------------------------------------- 1 | testdata/conf_out.ini 2 | ini.sublime-project 3 | ini.sublime-workspace 4 | testdata/conf_reflect.ini 5 | .idea 6 | /.vscode 7 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | - 1.4 7 | 8 | install: go get -v -t ./... 9 | script: make test 10 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /aliddns.yaml: -------------------------------------------------------------------------------- 1 | accessid: '*AccessId' 2 | accesskey: '*AccessKey' 3 | maindomain: '*example.com' 4 | subdomainname: '*www' 5 | checkupdateinterval: 30 6 | protocol: all 7 | ipv4apiurl: "" 8 | ipv6apiurl: "" 9 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - 1.7 8 | - 1.8 9 | - 1.9 10 | - tip 11 | 12 | go_import_path: gopkg.in/yaml.v2 13 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/OpenIoTHub/aliddns 2 | 3 | go 1.15 4 | 5 | require ( 6 | github.com/aliyun/alibaba-cloud-sdk-go v1.61.483 7 | github.com/urfave/cli/v2 v2.2.0 8 | gopkg.in/yaml.v2 v2.2.2 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_17.go: -------------------------------------------------------------------------------- 1 | //+build !go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/session_credential.go: -------------------------------------------------------------------------------- 1 | package signers 2 | 3 | type SessionCredential struct { 4 | AccessKeyId string 5 | AccessKeySecret string 6 | StsToken string 7 | } 8 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:latest 2 | 3 | RUN apk add --no-cache bash 4 | 5 | ENTRYPOINT ["/entrypoint.sh"] 6 | CMD [ "-h" ] 7 | 8 | COPY scripts/entrypoint.sh /entrypoint.sh 9 | RUN chmod +x /entrypoint.sh 10 | 11 | COPY aliddns /bin/aliddns 12 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_17.go: -------------------------------------------------------------------------------- 1 | //+build go1.7 2 | 3 | package reflect2 4 | 5 | import "unsafe" 6 | 7 | //go:linkname resolveTypeOff reflect.resolveTypeOff 8 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 9 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/urfave/cli/v2 2 | 3 | go 1.11 4 | 5 | require ( 6 | github.com/BurntSushi/toml v0.3.1 7 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d 8 | gopkg.in/yaml.v2 v2.2.2 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/README.md: -------------------------------------------------------------------------------- 1 | # go-jmespath - A JMESPath implementation in Go 2 | 3 | [![Build Status](https://img.shields.io/travis/jmespath/go-jmespath.svg)](https://travis-ci.org/jmespath/go-jmespath) 4 | 5 | 6 | 7 | See http://jmespath.org for more info. 8 | -------------------------------------------------------------------------------- /systemd/aliddns.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Aliyun ddns service 3 | After=network.target 4 | 5 | [Service] 6 | Type=simple 7 | User=nobody 8 | Restart=on-failure 9 | RestartSec=5s 10 | ExecStart=/usr/bin/aliddns -c /etc/aliddns/aliddns.yaml 11 | 12 | [Install] 13 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test bench vet coverage 2 | 3 | build: vet bench 4 | 5 | test: 6 | go test -v -cover -race 7 | 8 | bench: 9 | go test -v -cover -race -test.bench=. -test.benchmem 10 | 11 | vet: 12 | go vet 13 | 14 | coverage: 15 | go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype) 14 | } 15 | -------------------------------------------------------------------------------- /.idea/aliddns.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname makemap reflect.makemap 10 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 11 | 12 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 13 | return makemap(rtype, cap) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/bearer_token_credential.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | type BearerTokenCredential struct { 4 | BearerToken string 5 | } 6 | 7 | // NewBearerTokenCredential return a BearerTokenCredential object 8 | func NewBearerTokenCredential(token string) *BearerTokenCredential { 9 | return &BearerTokenCredential{ 10 | BearerToken: token, 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list github.com/modern-go/reflect2-tests/... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/reflect2 $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go: -------------------------------------------------------------------------------- 1 | package md2man 2 | 3 | import ( 4 | "github.com/russross/blackfriday/v2" 5 | ) 6 | 7 | // Render converts a markdown document into a roff formatted document. 8 | func Render(doc []byte) []byte { 9 | renderer := NewRoffRenderer() 10 | 11 | return blackfriday.Run(doc, 12 | []blackfriday.Option{blackfriday.WithRenderer(renderer), 13 | blackfriday.WithExtensions(renderer.GetExtensions())}...) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.6.x 5 | - 1.7.x 6 | - 1.8.x 7 | - 1.9.x 8 | - 1.10.x 9 | - 1.11.x 10 | 11 | script: 12 | - go get golang.org/x/tools/cmd/cover 13 | - go get github.com/smartystreets/goconvey 14 | - mkdir -p $HOME/gopath/src/gopkg.in 15 | - ln -s $HOME/gopath/src/github.com/go-ini/ini $HOME/gopath/src/gopkg.in/ini.v1 16 | - cd $HOME/gopath/src/gopkg.in/ini.v1 17 | - go test -v -cover -race 18 | -------------------------------------------------------------------------------- /models/models.go: -------------------------------------------------------------------------------- 1 | package models 2 | 3 | type ConfigModel struct { 4 | AccessId string // 阿里云的 Access Id 5 | AccessKey string // 阿里云的 Access Key 6 | MainDomain string // 需要更新的主域名,例如 iotserv.com 7 | SubDomainName string // 需要更新的具体子域名,例如 www 8 | CheckUpdateInterval int // 检查域名是否改变的时间间隔,单位秒,默认30秒 9 | Protocol string // "ipv4"或"ipv6"或"all",默认"all" 10 | Ipv4ApiUrl string // 获取 IPv4 的 API 地址 11 | Ipv6ApiUrl string // 获取 IPv6 的 API 地址 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.x 5 | - master 6 | matrix: 7 | allow_failures: 8 | - go: master 9 | fast_finish: true 10 | install: 11 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 12 | script: 13 | - go get -t -v ./... 14 | - diff -u <(echo -n) <(gofmt -d -s .) 15 | - go tool vet . 16 | - go test -v -race ./... 17 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - "1.10.x" 5 | - "1.11.x" 6 | - tip 7 | matrix: 8 | fast_finish: true 9 | allow_failures: 10 | - go: tip 11 | install: 12 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 13 | script: 14 | - go get -t -v ./... 15 | - diff -u <(echo -n) <(gofmt -d -s .) 16 | - go tool vet . 17 | - go test -v ./... 18 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_credential.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | type StsTokenCredential struct { 4 | AccessKeyId string 5 | AccessKeySecret string 6 | AccessKeyStsToken string 7 | } 8 | 9 | func NewStsTokenCredential(accessKeyId, accessKeySecret, accessKeyStsToken string) *StsTokenCredential { 10 | return &StsTokenCredential{ 11 | AccessKeyId: accessKeyId, 12 | AccessKeySecret: accessKeySecret, 13 | AccessKeyStsToken: accessKeyStsToken, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/rsa_key_pair_credential.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | type RsaKeyPairCredential struct { 4 | PrivateKey string 5 | PublicKeyId string 6 | SessionExpiration int 7 | } 8 | 9 | func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential { 10 | return &RsaKeyPairCredential{ 11 | PrivateKey: privateKey, 12 | PublicKeyId: publicKeyId, 13 | SessionExpiration: sessionExpiration, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "daee8a88b3498b61c5640056665b8b9eea062006f5e596bbb6a3ed9119a11ec7" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/endpoint.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | // EndpointMap Endpoint Data 4 | var EndpointMap map[string]string 5 | 6 | // EndpointType regional or central 7 | var EndpointType = "central" 8 | 9 | // GetEndpointMap Get Endpoint Data Map 10 | func GetEndpointMap() map[string]string { 11 | if EndpointMap == nil { 12 | EndpointMap = map[string]string{} 13 | } 14 | return EndpointMap 15 | } 16 | 17 | // GetEndpointType Get Endpoint Type Value 18 | func GetEndpointType() string { 19 | return EndpointType 20 | } 21 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015 James Saryerwinnie 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/sort.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import "unicode" 4 | 5 | // lexicographicLess compares strings alphabetically considering case. 6 | func lexicographicLess(i, j string) bool { 7 | iRunes := []rune(i) 8 | jRunes := []rune(j) 9 | 10 | lenShared := len(iRunes) 11 | if lenShared > len(jRunes) { 12 | lenShared = len(jRunes) 13 | } 14 | 15 | for index := 0; index < lenShared; index++ { 16 | ir := iRunes[index] 17 | jr := jRunes[index] 18 | 19 | if lir, ljr := unicode.ToLower(ir), unicode.ToLower(jr); lir != ljr { 20 | return lir < ljr 21 | } 22 | 23 | if ir != jr { 24 | return ir < jr 25 | } 26 | } 27 | 28 | return i < j 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/executor.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import "context" 4 | 5 | // Executor replace go keyword to start a new goroutine 6 | // the goroutine should cancel itself if the context passed in has been cancelled 7 | // the goroutine started by the executor, is owned by the executor 8 | // we can cancel all executors owned by the executor just by stop the executor itself 9 | // however Executor interface does not Stop method, the one starting and owning executor 10 | // should use the concrete type of executor, instead of this interface. 11 | type Executor interface { 12 | // Go starts a new goroutine controlled by the context 13 | Go(handler func(ctx context.Context)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [[projects]] 11 | name = "github.com/modern-go/reflect2" 12 | packages = ["."] 13 | revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" 14 | version = "1.0.1" 15 | 16 | [solve-meta] 17 | analyzer-name = "dep" 18 | analyzer-version = 1 19 | inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" 20 | solver-name = "gps-cdcl" 21 | solver-version = 1 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credential.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package auth 16 | 17 | type Credential interface { 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider.go: -------------------------------------------------------------------------------- 1 | package provider 2 | 3 | import ( 4 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" 5 | ) 6 | 7 | //Environmental virables that may be used by the provider 8 | const ( 9 | ENVAccessKeyID = "ALIBABA_CLOUD_ACCESS_KEY_ID" 10 | ENVAccessKeySecret = "ALIBABA_CLOUD_ACCESS_KEY_SECRET" 11 | ENVCredentialFile = "ALIBABA_CLOUD_CREDENTIALS_FILE" 12 | ENVEcsMetadata = "ALIBABA_CLOUD_ECS_METADATA" 13 | PATHCredentialFile = "~/.alibabacloud/credentials" 14 | ) 15 | 16 | // When you want to customize the provider, you only need to implement the method of the interface. 17 | type Provider interface { 18 | Resolve() (auth.Credential, error) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/debug.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "strings" 7 | ) 8 | 9 | type Debug func(format string, v ...interface{}) 10 | 11 | var hookGetEnv = func() string { 12 | return os.Getenv("DEBUG") 13 | } 14 | 15 | var hookPrint = func(input string) { 16 | fmt.Println(input) 17 | } 18 | 19 | func Init(flag string) Debug { 20 | enable := false 21 | 22 | env := hookGetEnv() 23 | parts := strings.Split(env, ",") 24 | for _, part := range parts { 25 | if part == flag { 26 | enable = true 27 | break 28 | } 29 | } 30 | 31 | return func(format string, v ...interface{}) { 32 | if enable { 33 | hookPrint(fmt.Sprintf(format, v...)) 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/esc.go: -------------------------------------------------------------------------------- 1 | package blackfriday 2 | 3 | import ( 4 | "html" 5 | "io" 6 | ) 7 | 8 | var htmlEscaper = [256][]byte{ 9 | '&': []byte("&"), 10 | '<': []byte("<"), 11 | '>': []byte(">"), 12 | '"': []byte("""), 13 | } 14 | 15 | func escapeHTML(w io.Writer, s []byte) { 16 | var start, end int 17 | for end < len(s) { 18 | escSeq := htmlEscaper[s[end]] 19 | if escSeq != nil { 20 | w.Write(s[start:end]) 21 | w.Write(escSeq) 22 | start = end + 1 23 | } 24 | end++ 25 | } 26 | if start < len(s) && end <= len(s) { 27 | w.Write(s[start:end]) 28 | } 29 | } 30 | 31 | func escLink(w io.Writer, text []byte) { 32 | unesc := html.UnescapeString(string(text)) 33 | escapeHTML(w, []byte(unesc)) 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/toktype_string.go: -------------------------------------------------------------------------------- 1 | // generated by stringer -type=tokType; DO NOT EDIT 2 | 3 | package jmespath 4 | 5 | import "fmt" 6 | 7 | const _tokType_name = "tUnknowntStartDottFiltertFlattentLparentRparentLbrackettRbrackettLbracetRbracetOrtPipetNumbertUnquotedIdentifiertQuotedIdentifiertCommatColontLTtLTEtGTtGTEtEQtNEtJSONLiteraltStringLiteraltCurrenttExpreftAndtNottEOF" 8 | 9 | var _tokType_index = [...]uint8{0, 8, 13, 17, 24, 32, 39, 46, 55, 64, 71, 78, 81, 86, 93, 112, 129, 135, 141, 144, 148, 151, 155, 158, 161, 173, 187, 195, 202, 206, 210, 214} 10 | 11 | func (i tokType) String() string { 12 | if i < 0 || i >= tokType(len(_tokType_index)-1) { 13 | return fmt.Sprintf("tokType(%d)", i) 14 | } 15 | return _tokType_name[_tokType_index[i]:_tokType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/writerc.go: -------------------------------------------------------------------------------- 1 | package yaml 2 | 3 | // Set the writer error and return false. 4 | func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool { 5 | emitter.error = yaml_WRITER_ERROR 6 | emitter.problem = problem 7 | return false 8 | } 9 | 10 | // Flush the output buffer. 11 | func yaml_emitter_flush(emitter *yaml_emitter_t) bool { 12 | if emitter.write_handler == nil { 13 | panic("write handler not set") 14 | } 15 | 16 | // Check if the buffer is empty. 17 | if emitter.buffer_pos == 0 { 18 | return true 19 | } 20 | 21 | if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil { 22 | return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) 23 | } 24 | emitter.buffer_pos = 0 25 | return true 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/cli.go: -------------------------------------------------------------------------------- 1 | // Package cli provides a minimal framework for creating and organizing command line 2 | // Go applications. cli is designed to be easy to understand and write, the most simple 3 | // cli application can be written as follows: 4 | // func main() { 5 | // (&cli.App{}).Run(os.Args) 6 | // } 7 | // 8 | // Of course this application does not do much, so let's make this an actual application: 9 | // func main() { 10 | // app := &cli.App{ 11 | // Name: "greet", 12 | // Usage: "say a greeting", 13 | // Action: func(c *cli.Context) error { 14 | // fmt.Println("Greetings") 15 | // return nil 16 | // }, 17 | // } 18 | // 19 | // app.Run(os.Args) 20 | // } 21 | package cli 22 | 23 | //go:generate go run flag-gen/main.go flag-gen/assets_vfsdata.go 24 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map implements a thread safe map for go version below 1.9 using mutex 8 | type Map struct { 9 | lock sync.RWMutex 10 | data map[interface{}]interface{} 11 | } 12 | 13 | // NewMap creates a thread safe map 14 | func NewMap() *Map { 15 | return &Map{ 16 | data: make(map[interface{}]interface{}, 32), 17 | } 18 | } 19 | 20 | // Load is same as sync.Map Load 21 | func (m *Map) Load(key interface{}) (elem interface{}, found bool) { 22 | m.lock.RLock() 23 | elem, found = m.data[key] 24 | m.lock.RUnlock() 25 | return 26 | } 27 | 28 | // Load is same as sync.Map Store 29 | func (m *Map) Store(key interface{}, elem interface{}) { 30 | m.lock.Lock() 31 | m.data[key] = elem 32 | m.lock.Unlock() 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/error.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package errors 16 | 17 | type Error interface { 18 | error 19 | HttpStatus() int 20 | ErrorCode() string 21 | Message() string 22 | OriginError() error 23 | } 24 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | pull_request: 7 | branches: [ master ] 8 | 9 | jobs: 10 | aliddns: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - 14 | name: Checkout 15 | uses: actions/checkout@v2 16 | with: 17 | fetch-depth: 0 18 | - 19 | name: Set up Go 20 | uses: actions/setup-go@v4 21 | with: 22 | go-version: '^1.20.0' 23 | - name: Test golang src 24 | run: go test ./... 25 | - name: Build golang src 26 | run: go build 27 | - name: clean 28 | run: rm aliddns 29 | - 30 | name: Run GoReleaser 31 | uses: goreleaser/goreleaser-action@v2 32 | with: 33 | version: latest 34 | args: build --clean --snapshot -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | 22 | ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"] 23 | 24 | [[constraint]] 25 | name = "github.com/modern-go/reflect2" 26 | version = "1.0.1" 27 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/ecs_ram_role.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential { 4 | return &EcsRamRoleCredential{ 5 | RoleName: oldCred.RoleName, 6 | } 7 | } 8 | 9 | type EcsRamRoleCredential struct { 10 | RoleName string 11 | } 12 | 13 | func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential { 14 | return &EcsRamRoleCredential{ 15 | RoleName: roleName, 16 | } 17 | } 18 | 19 | // Deprecated: Use EcsRamRoleCredential in this package instead. 20 | type StsRoleNameOnEcsCredential struct { 21 | RoleName string 22 | } 23 | 24 | // Deprecated: Use NewEcsRamRoleCredential in this package instead. 25 | func NewStsRoleNameOnEcsCredential(roleName string) *StsRoleNameOnEcsCredential { 26 | return &StsRoleNameOnEcsCredential{ 27 | RoleName: roleName, 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/astnodetype_string.go: -------------------------------------------------------------------------------- 1 | // generated by stringer -type astNodeType; DO NOT EDIT 2 | 3 | package jmespath 4 | 5 | import "fmt" 6 | 7 | const _astNodeType_name = "ASTEmptyASTComparatorASTCurrentNodeASTExpRefASTFunctionExpressionASTFieldASTFilterProjectionASTFlattenASTIdentityASTIndexASTIndexExpressionASTKeyValPairASTLiteralASTMultiSelectHashASTMultiSelectListASTOrExpressionASTAndExpressionASTNotExpressionASTPipeASTProjectionASTSubexpressionASTSliceASTValueProjection" 8 | 9 | var _astNodeType_index = [...]uint16{0, 8, 21, 35, 44, 65, 73, 92, 102, 113, 121, 139, 152, 162, 180, 198, 213, 229, 245, 252, 265, 281, 289, 307} 10 | 11 | func (i astNodeType) String() string { 12 | if i < 0 || i >= astNodeType(len(_astNodeType_index)-1) { 13 | return fmt.Sprintf("astNodeType(%d)", i) 14 | } 15 | return _astNodeType_name[_astNodeType_index[i]:_astNodeType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/provider_chain.go: -------------------------------------------------------------------------------- 1 | package provider 2 | 3 | import ( 4 | "errors" 5 | 6 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" 7 | ) 8 | 9 | type ProviderChain struct { 10 | Providers []Provider 11 | } 12 | 13 | var defaultproviders = []Provider{ProviderEnv, ProviderProfile, ProviderInstance} 14 | var DefaultChain = NewProviderChain(defaultproviders) 15 | 16 | func NewProviderChain(providers []Provider) Provider { 17 | return &ProviderChain{ 18 | Providers: providers, 19 | } 20 | } 21 | 22 | func (p *ProviderChain) Resolve() (auth.Credential, error) { 23 | for _, provider := range p.Providers { 24 | creds, err := provider.Resolve() 25 | if err != nil { 26 | return nil, err 27 | } else if err == nil && creds == nil { 28 | continue 29 | } 30 | return creds, err 31 | } 32 | return nil, errors.New("No credential found") 33 | 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://golang.github.io/dep/docs/Gopkg.toml.html 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | # 22 | # [prune] 23 | # non-go = false 24 | # go-tests = true 25 | # unused-packages = true 26 | 27 | ignored = [] 28 | 29 | [[constraint]] 30 | name = "github.com/modern-go/concurrent" 31 | version = "1.0.0" 32 | 33 | [prune] 34 | go-tests = true 35 | unused-packages = true 36 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/safe_struct.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | type safeStructType struct { 4 | safeType 5 | } 6 | 7 | func (type2 *safeStructType) FieldByName(name string) StructField { 8 | field, found := type2.Type.FieldByName(name) 9 | if !found { 10 | panic("field " + name + " not found") 11 | } 12 | return &safeField{StructField: field} 13 | } 14 | 15 | func (type2 *safeStructType) Field(i int) StructField { 16 | return &safeField{StructField: type2.Type.Field(i)} 17 | } 18 | 19 | func (type2 *safeStructType) FieldByIndex(index []int) StructField { 20 | return &safeField{StructField: type2.Type.FieldByIndex(index)} 21 | } 22 | 23 | func (type2 *safeStructType) FieldByNameFunc(match func(string) bool) StructField { 24 | field, found := type2.Type.FieldByNameFunc(match) 25 | if !found { 26 | panic("field match condition not found in " + type2.Type.String()) 27 | } 28 | return &safeField{StructField: field} 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/env.go: -------------------------------------------------------------------------------- 1 | package provider 2 | 3 | import ( 4 | "errors" 5 | "os" 6 | 7 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" 8 | 9 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" 10 | ) 11 | 12 | type EnvProvider struct{} 13 | 14 | var ProviderEnv = new(EnvProvider) 15 | 16 | func NewEnvProvider() Provider { 17 | return &EnvProvider{} 18 | } 19 | 20 | func (p *EnvProvider) Resolve() (auth.Credential, error) { 21 | accessKeyID, ok1 := os.LookupEnv(ENVAccessKeyID) 22 | accessKeySecret, ok2 := os.LookupEnv(ENVAccessKeySecret) 23 | if !ok1 || !ok2 { 24 | return nil, nil 25 | } 26 | if accessKeyID == "" || accessKeySecret == "" { 27 | return nil, errors.New("Environmental variable (ALIBABACLOUD_ACCESS_KEY_ID or ALIBABACLOUD_ACCESS_KEY_SECRET) is empty") 28 | } 29 | return credentials.NewAccessKeyCredential(accessKeyID, accessKeySecret), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_logs.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Logs is a nested struct in alidns response 19 | type Logs struct { 20 | Log []Log `json:"Log" xml:"Log"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_values.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Values is a nested struct in alidns response 19 | type Values struct { 20 | Value []string `json:"Value" xml:"Value"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domains.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Domains is a nested struct in alidns response 19 | type Domains struct { 20 | Domain []Domain `json:"Domain" xml:"Domain"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_previews.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Previews is a nested struct in alidns response 19 | type Previews struct { 20 | Preview []Preview `json:"Preview" xml:"Preview"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md: -------------------------------------------------------------------------------- 1 | | json type \ dest type | bool | int | uint | float |string| 2 | | --- | --- | --- | --- |--|--| 3 | | number | positive => true
negative => true
zero => false| 23.2 => 23
-32.1 => -32| 12.1 => 12
-12.1 => 0|as normal|same as origin| 4 | | string | empty string => false
string "0" => false
other strings => true | "123.32" => 123
"-123.4" => -123
"123.23xxxw" => 123
"abcde12" => 0
"-32.1" => -32| 13.2 => 13
-1.1 => 0 |12.1 => 12.1
-12.3 => -12.3
12.4xxa => 12.4
+1.1e2 =>110 |same as origin| 5 | | bool | true => true
false => false| true => 1
false => 0 | true => 1
false => 0 |true => 1
false => 0|true => "true"
false => "false"| 6 | | object | true | 0 | 0 |0|originnal json| 7 | | array | empty array => false
nonempty array => true| [] => 0
[1,2] => 1 | [] => 0
[1,2] => 1 |[] => 0
[1,2] => 1|original json| -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instances.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Instances is a nested struct in alidns response 19 | type Instances struct { 20 | Instance []Instance `json:"Instance" xml:"Instance"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_strategies.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Strategies is a nested struct in alidns response 19 | type Strategies struct { 20 | Strategy []Strategy `json:"Strategy" xml:"Strategy"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/jsoniter.go: -------------------------------------------------------------------------------- 1 | // Package jsoniter implements encoding and decoding of JSON as defined in 2 | // RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. 3 | // Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter 4 | // and variable type declarations (if any). 5 | // jsoniter interfaces gives 100% compatibility with code using standard lib. 6 | // 7 | // "JSON and Go" 8 | // (https://golang.org/doc/articles/json_and_go.html) 9 | // gives a description of how Marshal/Unmarshal operate 10 | // between arbitrary or predefined json objects and bytes, 11 | // and it applies to jsoniter.Marshal/Unmarshal as well. 12 | // 13 | // Besides, jsoniter.Iterator provides a different set of interfaces 14 | // iterating given bytes/string/reader 15 | // and yielding parsed elements one by one. 16 | // This set of interfaces reads input as required and gives 17 | // better performance. 18 | package jsoniter 19 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_logs.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainLogs is a nested struct in alidns response 19 | type DomainLogs struct { 20 | DomainLog []DomainLog `json:"DomainLog" xml:"DomainLog"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_logs.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // RecordLogs is a nested struct in alidns response 19 | type RecordLogs struct { 20 | RecordLog []RecordLog `json:"RecordLog" xml:"RecordLog"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_tags.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // TagsInDescribeTags is a nested struct in alidns response 19 | type TagsInDescribeTags struct { 20 | Tag []Tag `json:"Tag" xml:"Tag"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_lines.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // CustomLines is a nested struct in alidns response 19 | type CustomLines struct { 20 | CustomLine []CustomLine `json:"CustomLine" xml:"CustomLine"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_products.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DnsProducts is a nested struct in alidns response 19 | type DnsProducts struct { 20 | DnsProduct []DnsProduct `json:"DnsProduct" xml:"DnsProduct"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_new_dns_servers.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // NewDnsServers is a nested struct in alidns response 19 | type NewDnsServers struct { 20 | DnsServer []string `json:"DnsServer" xml:"DnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_infos.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // SwitchInfos is a nested struct in alidns response 19 | type SwitchInfos struct { 20 | SwitchInfo []SwitchInfo `json:"SwitchInfo" xml:"SwitchInfo"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/doc.go: -------------------------------------------------------------------------------- 1 | // Package blackfriday is a markdown processor. 2 | // 3 | // It translates plain text with simple formatting rules into an AST, which can 4 | // then be further processed to HTML (provided by Blackfriday itself) or other 5 | // formats (provided by the community). 6 | // 7 | // The simplest way to invoke Blackfriday is to call the Run function. It will 8 | // take a text input and produce a text output in HTML (or other format). 9 | // 10 | // A slightly more sophisticated way to use Blackfriday is to create a Markdown 11 | // processor and to call Parse, which returns a syntax tree for the input 12 | // document. You can leverage Blackfriday's parsing for content extraction from 13 | // markdown documents. You can assign a custom renderer and set various options 14 | // to the Markdown processor. 15 | // 16 | // If you're interested in calling Blackfriday from command line, see 17 | // https://github.com/russross/blackfriday-tool. 18 | package blackfriday 19 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_available_ttls.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // AvailableTtls is a nested struct in alidns response 19 | type AvailableTtls struct { 20 | AvailableTtl []string `json:"AvailableTtl" xml:"AvailableTtl"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_groups.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainGroups is a nested struct in alidns response 19 | type DomainGroups struct { 20 | DomainGroup []DomainGroup `json:"DomainGroup" xml:"DomainGroup"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instances.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // GtmInstances is a nested struct in alidns response 19 | type GtmInstances struct { 20 | GtmInstance []GtmInstance `json:"GtmInstance" xml:"GtmInstance"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resources.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // TagResources is a nested struct in alidns response 19 | type TagResources struct { 20 | TagResource []TagResource `json:"TagResource" xml:"TagResource"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tags_in_describe_domains.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // TagsInDescribeDomains is a nested struct in alidns response 19 | type TagsInDescribeDomains struct { 20 | Tag []Tag `json:"Tag" xml:"Tag"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_original_dns_servers.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // OriginalDnsServers is a nested struct in alidns response 19 | type OriginalDnsServers struct { 20 | DnsServer []string `json:"DnsServer" xml:"DnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plans.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // RecoveryPlans is a nested struct in alidns response 19 | type RecoveryPlans struct { 20 | RecoveryPlan []RecoveryPlan `json:"RecoveryPlan" xml:"RecoveryPlan"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domains.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // SlbSubDomains is a nested struct in alidns response 19 | type SlbSubDomains struct { 20 | SlbSubDomain []SlbSubDomain `json:"SlbSubDomain" xml:"SlbSubDomain"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pools.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // FaultAddrPools is a nested struct in alidns response 19 | type FaultAddrPools struct { 20 | FaultAddrPool []FaultAddrPool `json:"FaultAddrPool" xml:"FaultAddrPool"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_add_domain.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DnsServersInAddDomain is a nested struct in alidns response 19 | type DnsServersInAddDomain struct { 20 | DnsServer []string `json:"DnsServer" xml:"DnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfers.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainTransfers is a nested struct in alidns response 19 | type DomainTransfers struct { 20 | DomainTransfer []DomainTransfer `json:"DomainTransfer" xml:"DomainTransfer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_expect_dns_servers.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // ExpectDnsServers is a nested struct in alidns response 19 | type ExpectDnsServers struct { 20 | ExpectDnsServer []string `json:"ExpectDnsServer" xml:"ExpectDnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domains.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // InstanceDomains is a nested struct in alidns response 19 | type InstanceDomains struct { 20 | InstanceDomain []InstanceDomain `json:"InstanceDomain" xml:"InstanceDomain"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_recovery_plan.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // AddrsInDescribeGtmRecoveryPlan is a nested struct in alidns response 19 | type AddrsInDescribeGtmRecoveryPlan struct { 20 | Addr []Addr `json:"Addr" xml:"Addr"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // LinesInDescribeGtmAccessStrategy is a nested struct in alidns response 19 | type LinesInDescribeGtmAccessStrategy struct { 20 | Line []Line `json:"Line" xml:"Line"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/error.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Unknwon 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"): you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 | // License for the specific language governing permissions and limitations 13 | // under the License. 14 | 15 | package ini 16 | 17 | import ( 18 | "fmt" 19 | ) 20 | 21 | type ErrDelimiterNotFound struct { 22 | Line string 23 | } 24 | 25 | func IsErrDelimiterNotFound(err error) bool { 26 | _, ok := err.(ErrDelimiterNotFound) 27 | return ok 28 | } 29 | 30 | func (err ErrDelimiterNotFound) Error() string { 31 | return fmt.Sprintf("key-value delimiter not found: %s", err.Line) 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_ns.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DnsServersInDescribeDomainNs is a nested struct in alidns response 19 | type DnsServersInDescribeDomainNs struct { 20 | DnsServer []string `json:"DnsServer" xml:"DnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domains.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DnsServersInDescribeDomains is a nested struct in alidns response 19 | type DnsServersInDescribeDomains struct { 20 | DnsServer []string `json:"DnsServer" xml:"DnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_details.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // BatchResultDetails is a nested struct in alidns response 19 | type BatchResultDetails struct { 20 | BatchResultDetail []BatchResultDetail `json:"BatchResultDetail" xml:"BatchResultDetail"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategies.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // LinesInDescribeGtmAccessStrategies is a nested struct in alidns response 19 | type LinesInDescribeGtmAccessStrategies struct { 20 | Line []Line `json:"Line" xml:"Line"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Tag is a nested struct in alidns response 19 | type Tag struct { 20 | Key string `json:"Key" xml:"Key"` 21 | Value string `json:"Value" xml:"Value"` 22 | Values []string `json:"Values" xml:"Values"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_domain_info.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DnsServersInDescribeDomainInfo is a nested struct in alidns response 19 | type DnsServersInDescribeDomainInfo struct { 20 | DnsServer []string `json:"DnsServer" xml:"DnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_switch_info.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // SwitchInfo is a nested struct in alidns response 19 | type SwitchInfo struct { 20 | StrategyName string `json:"StrategyName" xml:"StrategyName"` 21 | Content string `json:"Content" xml:"Content"` 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addrs_in_describe_gtm_instance_address_pool.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // AddrsInDescribeGtmInstanceAddressPool is a nested struct in alidns response 19 | type AddrsInDescribeGtmInstanceAddressPool struct { 20 | Addr []Addr `json:"Addr" xml:"Addr"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_domain_records.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainRecordsInDescribeDomainRecords is a nested struct in alidns response 19 | type DomainRecordsInDescribeDomainRecords struct { 20 | Record []Record `json:"Record" xml:"Record"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_line.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // IpSegmentListInDescribeCustomLine is a nested struct in alidns response 19 | type IpSegmentListInDescribeCustomLine struct { 20 | IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_domain_info.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // RecordLinesInDescribeDomainInfo is a nested struct in alidns response 19 | type RecordLinesInDescribeDomainInfo struct { 20 | RecordLine []RecordLine `json:"RecordLine" xml:"RecordLine"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/main.go: -------------------------------------------------------------------------------- 1 | // Package sanitized_anchor_name provides a func to create sanitized anchor names. 2 | // 3 | // Its logic can be reused by multiple packages to create interoperable anchor names 4 | // and links to those anchors. 5 | // 6 | // At this time, it does not try to ensure that generated anchor names 7 | // are unique, that responsibility falls on the caller. 8 | package sanitized_anchor_name // import "github.com/shurcooL/sanitized_anchor_name" 9 | 10 | import "unicode" 11 | 12 | // Create returns a sanitized anchor name for the given text. 13 | func Create(text string) string { 14 | var anchorName []rune 15 | var futureDash = false 16 | for _, r := range text { 17 | switch { 18 | case unicode.IsLetter(r) || unicode.IsNumber(r): 19 | if futureDash && len(anchorName) > 0 { 20 | anchorName = append(anchorName, '-') 21 | } 22 | futureDash = false 23 | anchorName = append(anchorName, unicode.ToLower(r)) 24 | default: 25 | futureDash = true 26 | } 27 | } 28 | return string(anchorName) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_records_in_describe_sub_domain_records.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainRecordsInDescribeSubDomainRecords is a nested struct in alidns response 19 | type DomainRecordsInDescribeSubDomainRecords struct { 20 | Record []Record `json:"Record" xml:"Record"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // IpSegment is a nested struct in alidns response 19 | type IpSegment struct { 20 | Name string `json:"Name" xml:"Name"` 21 | EndIp string `json:"EndIp" xml:"EndIp"` 22 | StartIp string `json:"StartIp" xml:"StartIp"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_ip_segment_list_in_describe_custom_lines.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // IpSegmentListInDescribeCustomLines is a nested struct in alidns response 19 | type IpSegmentListInDescribeCustomLines struct { 20 | IpSegment []IpSegment `json:"IpSegment" xml:"IpSegment"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_lines_in_describe_support_lines.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // RecordLinesInDescribeSupportLines is a nested struct in alidns response 19 | type RecordLinesInDescribeSupportLines struct { 20 | RecordLine []RecordLine `json:"RecordLine" xml:"RecordLine"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeDomainStatistics is a nested struct in alidns response 19 | type StatisticsInDescribeDomainStatistics struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeRecordStatistics is a nested struct in alidns response 19 | type StatisticsInDescribeRecordStatistics struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_dns_servers_in_describe_dns_product_instance.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DnsServersInDescribeDnsProductInstance is a nested struct in alidns response 19 | type DnsServersInDescribeDnsProductInstance struct { 20 | DnsServer []string `json:"DnsServer" xml:"DnsServer"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_bearer_token.go: -------------------------------------------------------------------------------- 1 | package signers 2 | 3 | import ( 4 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" 5 | ) 6 | 7 | type BearerTokenSigner struct { 8 | credential *credentials.BearerTokenCredential 9 | } 10 | 11 | func NewBearerTokenSigner(credential *credentials.BearerTokenCredential) *BearerTokenSigner { 12 | return &BearerTokenSigner{ 13 | credential: credential, 14 | } 15 | } 16 | 17 | func (signer *BearerTokenSigner) GetExtraParam() map[string]string { 18 | return map[string]string{"BearerToken": signer.credential.BearerToken} 19 | } 20 | 21 | func (*BearerTokenSigner) GetName() string { 22 | return "" 23 | } 24 | func (*BearerTokenSigner) GetType() string { 25 | return "BEARERTOKEN" 26 | } 27 | func (*BearerTokenSigner) GetVersion() string { 28 | return "1.0" 29 | } 30 | func (signer *BearerTokenSigner) GetAccessKeyId() (accessKeyId string, err error) { 31 | return "", nil 32 | } 33 | func (signer *BearerTokenSigner) Sign(stringToSign, secretSuffix string) string { 34 | return "" 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_account_statistics.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeDohAccountStatistics is a nested struct in alidns response 19 | type StatisticsInDescribeDohAccountStatistics struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeDohDomainStatistics is a nested struct in alidns response 19 | type StatisticsInDescribeDohDomainStatistics struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_kind.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | // DefaultTypeOfKind return the non aliased default type for the kind 9 | func DefaultTypeOfKind(kind reflect.Kind) Type { 10 | return kindTypes[kind] 11 | } 12 | 13 | var kindTypes = map[reflect.Kind]Type{ 14 | reflect.Bool: TypeOf(true), 15 | reflect.Uint8: TypeOf(uint8(0)), 16 | reflect.Int8: TypeOf(int8(0)), 17 | reflect.Uint16: TypeOf(uint16(0)), 18 | reflect.Int16: TypeOf(int16(0)), 19 | reflect.Uint32: TypeOf(uint32(0)), 20 | reflect.Int32: TypeOf(int32(0)), 21 | reflect.Uint64: TypeOf(uint64(0)), 22 | reflect.Int64: TypeOf(int64(0)), 23 | reflect.Uint: TypeOf(uint(0)), 24 | reflect.Int: TypeOf(int(0)), 25 | reflect.Float32: TypeOf(float32(0)), 26 | reflect.Float64: TypeOf(float64(0)), 27 | reflect.Uintptr: TypeOf(uintptr(0)), 28 | reflect.String: TypeOf(""), 29 | reflect.UnsafePointer: TypeOf(unsafe.Pointer(nil)), 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_instance_address_pools.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // AddrPoolsInDescribeGtmInstanceAddressPools is a nested struct in alidns response 19 | type AddrPoolsInDescribeGtmInstanceAddressPools struct { 20 | AddrPool []AddrPool `json:"AddrPool" xml:"AddrPool"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_config.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // IspCityNodesInDescribeGtmMonitorConfig is a nested struct in alidns response 19 | type IspCityNodesInDescribeGtmMonitorConfig struct { 20 | IspCityNode []IspCityNode `json:"IspCityNode" xml:"IspCityNode"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_lines_in_describe_gtm_access_strategy_available_config.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // LinesInDescribeGtmAccessStrategyAvailableConfig is a nested struct in alidns response 19 | type LinesInDescribeGtmAccessStrategyAvailableConfig struct { 20 | Line []Line `json:"Line" xml:"Line"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeDohSubDomainStatistics is a nested struct in alidns response 19 | type StatisticsInDescribeDohSubDomainStatistics struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_domain_statistics_summary.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeDomainStatisticsSummary is a nested struct in alidns response 19 | type StatisticsInDescribeDomainStatisticsSummary struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_record_statistics_summary.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeRecordStatisticsSummary is a nested struct in alidns response 19 | type StatisticsInDescribeRecordStatisticsSummary struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_domain_statistics_summary.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeDohDomainStatisticsSummary is a nested struct in alidns response 19 | type StatisticsInDescribeDohDomainStatisticsSummary struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/access_key_credential.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | // Deprecated: Use AccessKeyCredential in this package instead. 4 | type BaseCredential struct { 5 | AccessKeyId string 6 | AccessKeySecret string 7 | } 8 | 9 | type AccessKeyCredential struct { 10 | AccessKeyId string 11 | AccessKeySecret string 12 | } 13 | 14 | // Deprecated: Use NewAccessKeyCredential in this package instead. 15 | func NewBaseCredential(accessKeyId, accessKeySecret string) *BaseCredential { 16 | return &BaseCredential{ 17 | AccessKeyId: accessKeyId, 18 | AccessKeySecret: accessKeySecret, 19 | } 20 | } 21 | 22 | func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential { 23 | return &AccessKeyCredential{ 24 | AccessKeyId: baseCred.AccessKeyId, 25 | AccessKeySecret: baseCred.AccessKeySecret, 26 | } 27 | } 28 | 29 | func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential { 30 | return &AccessKeyCredential{ 31 | AccessKeyId: accessKeyId, 32 | AccessKeySecret: accessKeySecret, 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_recovery_plan_available_config.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // AddrPoolsInDescribeGtmRecoveryPlanAvailableConfig is a nested struct in alidns response 19 | type AddrPoolsInDescribeGtmRecoveryPlanAvailableConfig struct { 20 | AddrPool []AddrPool `json:"AddrPool" xml:"AddrPool"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_group.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainGroup is a nested struct in alidns response 19 | type DomainGroup struct { 20 | GroupId string `json:"GroupId" xml:"GroupId"` 21 | GroupName string `json:"GroupName" xml:"GroupName"` 22 | DomainCount int64 `json:"DomainCount" xml:"DomainCount"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistics_in_describe_doh_sub_domain_statistics_summary.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // StatisticsInDescribeDohSubDomainStatisticsSummary is a nested struct in alidns response 19 | type StatisticsInDescribeDohSubDomainStatisticsSummary struct { 20 | Statistic []Statistic `json:"Statistic" xml:"Statistic"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pools_in_describe_gtm_access_strategy_available_config.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // AddrPoolsInDescribeGtmAccessStrategyAvailableConfig is a nested struct in alidns response 19 | type AddrPoolsInDescribeGtmAccessStrategyAvailableConfig struct { 20 | AddrPool []AddrPool `json:"AddrPool" xml:"AddrPool"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_nodes_in_describe_gtm_monitor_available_config.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // IspCityNodesInDescribeGtmMonitorAvailableConfig is a nested struct in alidns response 19 | type IspCityNodesInDescribeGtmMonitorAvailableConfig struct { 20 | IspCityNode []IspCityNode `json:"IspCityNode" xml:"IspCityNode"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/README.md: -------------------------------------------------------------------------------- 1 | sanitized_anchor_name 2 | ===================== 3 | 4 | [![Build Status](https://travis-ci.org/shurcooL/sanitized_anchor_name.svg?branch=master)](https://travis-ci.org/shurcooL/sanitized_anchor_name) [![GoDoc](https://godoc.org/github.com/shurcooL/sanitized_anchor_name?status.svg)](https://godoc.org/github.com/shurcooL/sanitized_anchor_name) 5 | 6 | Package sanitized_anchor_name provides a func to create sanitized anchor names. 7 | 8 | Its logic can be reused by multiple packages to create interoperable anchor names 9 | and links to those anchors. 10 | 11 | At this time, it does not try to ensure that generated anchor names 12 | are unique, that responsibility falls on the caller. 13 | 14 | Installation 15 | ------------ 16 | 17 | ```bash 18 | go get -u github.com/shurcooL/sanitized_anchor_name 19 | ``` 20 | 21 | Example 22 | ------- 23 | 24 | ```Go 25 | anchorName := sanitized_anchor_name.Create("This is a header") 26 | 27 | fmt.Println(anchorName) 28 | 29 | // Output: 30 | // this-is-a-header 31 | ``` 32 | 33 | License 34 | ------- 35 | 36 | - [MIT License](LICENSE) 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Open IoT Hub 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance_domain.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // InstanceDomain is a nested struct in alidns response 19 | type InstanceDomain struct { 20 | DomainName string `json:"DomainName" xml:"DomainName"` 21 | CreateTime string `json:"CreateTime" xml:"CreateTime"` 22 | CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_slb_sub_domain.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // SlbSubDomain is a nested struct in alidns response 19 | type SlbSubDomain struct { 20 | SubDomain string `json:"SubDomain" xml:"SubDomain"` 21 | RecordCount int64 `json:"RecordCount" xml:"RecordCount"` 22 | Open bool `json:"Open" xml:"Open"` 23 | Type string `json:"Type" xml:"Type"` 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_tag_resource.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // TagResource is a nested struct in alidns response 19 | type TagResource struct { 20 | TagKey string `json:"TagKey" xml:"TagKey"` 21 | TagValue string `json:"TagValue" xml:"TagValue"` 22 | ResourceId string `json:"ResourceId" xml:"ResourceId"` 23 | ResourceType string `json:"ResourceType" xml:"ResourceType"` 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/pool.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "io" 5 | ) 6 | 7 | // IteratorPool a thread safe pool of iterators with same configuration 8 | type IteratorPool interface { 9 | BorrowIterator(data []byte) *Iterator 10 | ReturnIterator(iter *Iterator) 11 | } 12 | 13 | // StreamPool a thread safe pool of streams with same configuration 14 | type StreamPool interface { 15 | BorrowStream(writer io.Writer) *Stream 16 | ReturnStream(stream *Stream) 17 | } 18 | 19 | func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream { 20 | stream := cfg.streamPool.Get().(*Stream) 21 | stream.Reset(writer) 22 | return stream 23 | } 24 | 25 | func (cfg *frozenConfig) ReturnStream(stream *Stream) { 26 | stream.out = nil 27 | stream.Error = nil 28 | stream.Attachment = nil 29 | cfg.streamPool.Put(stream) 30 | } 31 | 32 | func (cfg *frozenConfig) BorrowIterator(data []byte) *Iterator { 33 | iter := cfg.iteratorPool.Get().(*Iterator) 34 | iter.ResetBytes(data) 35 | return iter 36 | } 37 | 38 | func (cfg *frozenConfig) ReturnIterator(iter *Iterator) { 39 | iter.Error = nil 40 | iter.Attachment = nil 41 | cfg.iteratorPool.Put(iter) 42 | } 43 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 json-iterator 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_preview.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Preview is a nested struct in alidns response 19 | type Preview struct { 20 | InstanceId string `json:"InstanceId" xml:"InstanceId"` 21 | Name string `json:"Name" xml:"Name"` 22 | UserDomainName string `json:"UserDomainName" xml:"UserDomainName"` 23 | SwitchInfos SwitchInfos `json:"SwitchInfos" xml:"SwitchInfos"` 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_line.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // RecordLine is a nested struct in alidns response 19 | type RecordLine struct { 20 | LineDisplayName string `json:"LineDisplayName" xml:"LineDisplayName"` 21 | LineCode string `json:"LineCode" xml:"LineCode"` 22 | LineName string `json:"LineName" xml:"LineName"` 23 | FatherCode string `json:"FatherCode" xml:"FatherCode"` 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Brian Goff 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Jeremy Saenz & Contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2015 Dmitri Shuralyov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/Makefile: -------------------------------------------------------------------------------- 1 | 2 | CMD = jpgo 3 | 4 | help: 5 | @echo "Please use \`make ' where is one of" 6 | @echo " test to run all the tests" 7 | @echo " build to build the library and jp executable" 8 | @echo " generate to run codegen" 9 | 10 | 11 | generate: 12 | go generate ./... 13 | 14 | build: 15 | rm -f $(CMD) 16 | go build ./... 17 | rm -f cmd/$(CMD)/$(CMD) && cd cmd/$(CMD)/ && go build ./... 18 | mv cmd/$(CMD)/$(CMD) . 19 | 20 | test: 21 | go test -v ./... 22 | 23 | check: 24 | go vet ./... 25 | @echo "golint ./..." 26 | @lint=`golint ./...`; \ 27 | lint=`echo "$$lint" | grep -v "astnodetype_string.go" | grep -v "toktype_string.go"`; \ 28 | echo "$$lint"; \ 29 | if [ "$$lint" != "" ]; then exit 1; fi 30 | 31 | htmlc: 32 | go test -coverprofile="/tmp/jpcov" && go tool cover -html="/tmp/jpcov" && unlink /tmp/jpcov 33 | 34 | buildfuzz: 35 | go-fuzz-build github.com/jmespath/go-jmespath/fuzz 36 | 37 | fuzz: buildfuzz 38 | go-fuzz -bin=./jmespath-fuzz.zip -workdir=fuzz/testdata 39 | 40 | bench: 41 | go test -bench . -cpuprofile cpu.out 42 | 43 | pprof-cpu: 44 | go tool pprof ./go-jmespath.test ./cpu.out 45 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_instance.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Instance is a nested struct in alidns response 19 | type Instance struct { 20 | InstanceId string `json:"InstanceId" xml:"InstanceId"` 21 | InstanceName string `json:"InstanceName" xml:"InstanceName"` 22 | AddrPools AddrPoolsInDescribeGtmRecoveryPlanAvailableConfig `json:"AddrPools" xml:"AddrPools"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record_log.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // RecordLog is a nested struct in alidns response 19 | type RecordLog struct { 20 | ActionTime string `json:"ActionTime" xml:"ActionTime"` 21 | ActionTimestamp int64 `json:"ActionTimestamp" xml:"ActionTimestamp"` 22 | Action string `json:"Action" xml:"Action"` 23 | Message string `json:"Message" xml:"Message"` 24 | ClientIp string `json:"ClientIp" xml:"ClientIp"` 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_line.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Line is a nested struct in alidns response 19 | type Line struct { 20 | GroupCode string `json:"GroupCode" xml:"GroupCode"` 21 | LineCode string `json:"LineCode" xml:"LineCode"` 22 | LineName string `json:"LineName" xml:"LineName"` 23 | GroupName string `json:"GroupName" xml:"GroupName"` 24 | Status string `json:"Status" xml:"Status"` 25 | FatherCode string `json:"FatherCode" xml:"FatherCode"` 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_nil.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | type nilAny struct { 4 | baseAny 5 | } 6 | 7 | func (any *nilAny) LastError() error { 8 | return nil 9 | } 10 | 11 | func (any *nilAny) ValueType() ValueType { 12 | return NilValue 13 | } 14 | 15 | func (any *nilAny) MustBeValid() Any { 16 | return any 17 | } 18 | 19 | func (any *nilAny) ToBool() bool { 20 | return false 21 | } 22 | 23 | func (any *nilAny) ToInt() int { 24 | return 0 25 | } 26 | 27 | func (any *nilAny) ToInt32() int32 { 28 | return 0 29 | } 30 | 31 | func (any *nilAny) ToInt64() int64 { 32 | return 0 33 | } 34 | 35 | func (any *nilAny) ToUint() uint { 36 | return 0 37 | } 38 | 39 | func (any *nilAny) ToUint32() uint32 { 40 | return 0 41 | } 42 | 43 | func (any *nilAny) ToUint64() uint64 { 44 | return 0 45 | } 46 | 47 | func (any *nilAny) ToFloat32() float32 { 48 | return 0 49 | } 50 | 51 | func (any *nilAny) ToFloat64() float64 { 52 | return 0 53 | } 54 | 55 | func (any *nilAny) ToString() string { 56 | return "" 57 | } 58 | 59 | func (any *nilAny) WriteTo(stream *Stream) { 60 | stream.WriteNil() 61 | } 62 | 63 | func (any *nilAny) Parse() *Iterator { 64 | return nil 65 | } 66 | 67 | func (any *nilAny) GetInterface() interface{} { 68 | return nil 69 | } 70 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_fault_addr_pool.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // FaultAddrPool is a nested struct in alidns response 19 | type FaultAddrPool struct { 20 | AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` 21 | AddrPoolName string `json:"AddrPoolName" xml:"AddrPoolName"` 22 | InstanceId string `json:"InstanceId" xml:"InstanceId"` 23 | Addrs AddrsInDescribeGtmRecoveryPlan `json:"Addrs" xml:"Addrs"` 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/unsafe_ptr.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | type UnsafePtrType struct { 9 | unsafeType 10 | } 11 | 12 | func newUnsafePtrType(cfg *frozenConfig, type1 reflect.Type) *UnsafePtrType { 13 | return &UnsafePtrType{ 14 | unsafeType: *newUnsafeType(cfg, type1), 15 | } 16 | } 17 | 18 | func (type2 *UnsafePtrType) IsNil(obj interface{}) bool { 19 | if obj == nil { 20 | return true 21 | } 22 | objEFace := unpackEFace(obj) 23 | assertType("Type.IsNil argument 1", type2.ptrRType, objEFace.rtype) 24 | return type2.UnsafeIsNil(objEFace.data) 25 | } 26 | 27 | func (type2 *UnsafePtrType) UnsafeIsNil(ptr unsafe.Pointer) bool { 28 | if ptr == nil { 29 | return true 30 | } 31 | return *(*unsafe.Pointer)(ptr) == nil 32 | } 33 | 34 | func (type2 *UnsafePtrType) LikePtr() bool { 35 | return true 36 | } 37 | 38 | func (type2 *UnsafePtrType) Indirect(obj interface{}) interface{} { 39 | objEFace := unpackEFace(obj) 40 | assertType("Type.Indirect argument 1", type2.ptrRType, objEFace.rtype) 41 | return type2.UnsafeIndirect(objEFace.data) 42 | } 43 | 44 | func (type2 *UnsafePtrType) UnsafeIndirect(ptr unsafe.Pointer) interface{} { 45 | return packEFace(type2.rtype, *(*unsafe.Pointer)(ptr)) 46 | } 47 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/args.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | type Args interface { 4 | // Get returns the nth argument, or else a blank string 5 | Get(n int) string 6 | // First returns the first argument, or else a blank string 7 | First() string 8 | // Tail returns the rest of the arguments (not the first one) 9 | // or else an empty string slice 10 | Tail() []string 11 | // Len returns the length of the wrapped slice 12 | Len() int 13 | // Present checks if there are any arguments present 14 | Present() bool 15 | // Slice returns a copy of the internal slice 16 | Slice() []string 17 | } 18 | 19 | type args []string 20 | 21 | func (a *args) Get(n int) string { 22 | if len(*a) > n { 23 | return (*a)[n] 24 | } 25 | return "" 26 | } 27 | 28 | func (a *args) First() string { 29 | return a.Get(0) 30 | } 31 | 32 | func (a *args) Tail() []string { 33 | if a.Len() >= 2 { 34 | tail := []string((*a)[1:]) 35 | ret := make([]string, len(tail)) 36 | copy(ret, tail) 37 | return ret 38 | } 39 | return []string{} 40 | } 41 | 42 | func (a *args) Len() int { 43 | return len(*a) 44 | } 45 | 46 | func (a *args) Present() bool { 47 | return a.Len() != 0 48 | } 49 | 50 | func (a *args) Slice() []string { 51 | ret := make([]string, len(*a)) 52 | copy(ret, *a) 53 | return ret 54 | } 55 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/types.go: -------------------------------------------------------------------------------- 1 | package requests 2 | 3 | import "strconv" 4 | 5 | type Integer string 6 | 7 | func NewInteger(integer int) Integer { 8 | return Integer(strconv.Itoa(integer)) 9 | } 10 | 11 | func (integer Integer) HasValue() bool { 12 | return integer != "" 13 | } 14 | 15 | func (integer Integer) GetValue() (int, error) { 16 | return strconv.Atoi(string(integer)) 17 | } 18 | 19 | func NewInteger64(integer int64) Integer { 20 | return Integer(strconv.FormatInt(integer, 10)) 21 | } 22 | 23 | func (integer Integer) GetValue64() (int64, error) { 24 | return strconv.ParseInt(string(integer), 10, 0) 25 | } 26 | 27 | type Boolean string 28 | 29 | func NewBoolean(bool bool) Boolean { 30 | return Boolean(strconv.FormatBool(bool)) 31 | } 32 | 33 | func (boolean Boolean) HasValue() bool { 34 | return boolean != "" 35 | } 36 | 37 | func (boolean Boolean) GetValue() (bool, error) { 38 | return strconv.ParseBool(string(boolean)) 39 | } 40 | 41 | type Float string 42 | 43 | func NewFloat(f float64) Float { 44 | return Float(strconv.FormatFloat(f, 'f', 6, 64)) 45 | } 46 | 47 | func (float Float) HasValue() bool { 48 | return float != "" 49 | } 50 | 51 | func (float Float) GetValue() (float64, error) { 52 | return strconv.ParseFloat(string(float), 64) 53 | } 54 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_transfer.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainTransfer is a nested struct in alidns response 19 | type DomainTransfer struct { 20 | DomainName string `json:"DomainName" xml:"DomainName"` 21 | CreateTime string `json:"CreateTime" xml:"CreateTime"` 22 | CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` 23 | FromUserId int64 `json:"FromUserId" xml:"FromUserId"` 24 | TargetUserId int64 `json:"TargetUserId" xml:"TargetUserId"` 25 | Id int64 `json:"Id" xml:"Id"` 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_domain_log.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // DomainLog is a nested struct in alidns response 19 | type DomainLog struct { 20 | ActionTime string `json:"ActionTime" xml:"ActionTime"` 21 | ActionTimestamp int64 `json:"ActionTimestamp" xml:"ActionTimestamp"` 22 | DomainName string `json:"DomainName" xml:"DomainName"` 23 | Action string `json:"Action" xml:"Action"` 24 | Message string `json:"Message" xml:"Message"` 25 | ClientIp string `json:"ClientIp" xml:"ClientIp"` 26 | ZoneId string `json:"ZoneId" xml:"ZoneId"` 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_custom_line.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // CustomLine is a nested struct in alidns response 19 | type CustomLine struct { 20 | Id int64 `json:"Id" xml:"Id"` 21 | Name string `json:"Name" xml:"Name"` 22 | CreateTime string `json:"CreateTime" xml:"CreateTime"` 23 | CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` 24 | IpSegments string `json:"IpSegments" xml:"IpSegments"` 25 | Code string `json:"Code" xml:"Code"` 26 | IpSegmentList []IpSegment `json:"IpSegmentList" xml:"IpSegmentList"` 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/v2/go.sum: -------------------------------------------------------------------------------- 1 | github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= 2 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 3 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY= 4 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 5 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 6 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 7 | github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q= 8 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 9 | github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo= 10 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 11 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 12 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 13 | gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= 14 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 15 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_log.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Log is a nested struct in alidns response 19 | type Log struct { 20 | OperTime string `json:"OperTime" xml:"OperTime"` 21 | OperAction string `json:"OperAction" xml:"OperAction"` 22 | EntityType string `json:"EntityType" xml:"EntityType"` 23 | EntityId string `json:"EntityId" xml:"EntityId"` 24 | EntityName string `json:"EntityName" xml:"EntityName"` 25 | OperIp string `json:"OperIp" xml:"OperIp"` 26 | OperTimestamp int64 `json:"OperTimestamp" xml:"OperTimestamp"` 27 | Id int64 `json:"Id" xml:"Id"` 28 | Content string `json:"Content" xml:"Content"` 29 | } 30 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/LICENSE.libyaml: -------------------------------------------------------------------------------- 1 | The following files were ported to Go from C files of libyaml, and thus 2 | are still covered by their original copyright and license: 3 | 4 | apic.go 5 | emitterc.go 6 | parserc.go 7 | readerc.go 8 | scannerc.go 9 | writerc.go 10 | yamlh.go 11 | yamlprivateh.go 12 | 13 | Copyright (c) 2006 Kirill Simonov 14 | 15 | Permission is hereby granted, free of charge, to any person obtaining a copy of 16 | this software and associated documentation files (the "Software"), to deal in 17 | the Software without restriction, including without limitation the rights to 18 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 19 | of the Software, and to permit persons to whom the Software is furnished to do 20 | so, subject to the following conditions: 21 | 22 | The above copyright notice and this permission notice shall be included in all 23 | copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 27 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 28 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 29 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 30 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 31 | SOFTWARE. 32 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_int64.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type int64Any struct { 8 | baseAny 9 | val int64 10 | } 11 | 12 | func (any *int64Any) LastError() error { 13 | return nil 14 | } 15 | 16 | func (any *int64Any) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *int64Any) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *int64Any) ToBool() bool { 25 | return any.val != 0 26 | } 27 | 28 | func (any *int64Any) ToInt() int { 29 | return int(any.val) 30 | } 31 | 32 | func (any *int64Any) ToInt32() int32 { 33 | return int32(any.val) 34 | } 35 | 36 | func (any *int64Any) ToInt64() int64 { 37 | return any.val 38 | } 39 | 40 | func (any *int64Any) ToUint() uint { 41 | return uint(any.val) 42 | } 43 | 44 | func (any *int64Any) ToUint32() uint32 { 45 | return uint32(any.val) 46 | } 47 | 48 | func (any *int64Any) ToUint64() uint64 { 49 | return uint64(any.val) 50 | } 51 | 52 | func (any *int64Any) ToFloat32() float32 { 53 | return float32(any.val) 54 | } 55 | 56 | func (any *int64Any) ToFloat64() float64 { 57 | return float64(any.val) 58 | } 59 | 60 | func (any *int64Any) ToString() string { 61 | return strconv.FormatInt(any.val, 10) 62 | } 63 | 64 | func (any *int64Any) WriteTo(stream *Stream) { 65 | stream.WriteInt64(any.val) 66 | } 67 | 68 | func (any *int64Any) Parse() *Iterator { 69 | return nil 70 | } 71 | 72 | func (any *int64Any) GetInterface() interface{} { 73 | return any.val 74 | } 75 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_int32.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type int32Any struct { 8 | baseAny 9 | val int32 10 | } 11 | 12 | func (any *int32Any) LastError() error { 13 | return nil 14 | } 15 | 16 | func (any *int32Any) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *int32Any) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *int32Any) ToBool() bool { 25 | return any.val != 0 26 | } 27 | 28 | func (any *int32Any) ToInt() int { 29 | return int(any.val) 30 | } 31 | 32 | func (any *int32Any) ToInt32() int32 { 33 | return any.val 34 | } 35 | 36 | func (any *int32Any) ToInt64() int64 { 37 | return int64(any.val) 38 | } 39 | 40 | func (any *int32Any) ToUint() uint { 41 | return uint(any.val) 42 | } 43 | 44 | func (any *int32Any) ToUint32() uint32 { 45 | return uint32(any.val) 46 | } 47 | 48 | func (any *int32Any) ToUint64() uint64 { 49 | return uint64(any.val) 50 | } 51 | 52 | func (any *int32Any) ToFloat32() float32 { 53 | return float32(any.val) 54 | } 55 | 56 | func (any *int32Any) ToFloat64() float64 { 57 | return float64(any.val) 58 | } 59 | 60 | func (any *int32Any) ToString() string { 61 | return strconv.FormatInt(int64(any.val), 10) 62 | } 63 | 64 | func (any *int32Any) WriteTo(stream *Stream) { 65 | stream.WriteInt32(any.val) 66 | } 67 | 68 | func (any *int32Any) Parse() *Iterator { 69 | return nil 70 | } 71 | 72 | func (any *int32Any) GetInterface() interface{} { 73 | return any.val 74 | } 75 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_uint64.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type uint64Any struct { 8 | baseAny 9 | val uint64 10 | } 11 | 12 | func (any *uint64Any) LastError() error { 13 | return nil 14 | } 15 | 16 | func (any *uint64Any) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *uint64Any) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *uint64Any) ToBool() bool { 25 | return any.val != 0 26 | } 27 | 28 | func (any *uint64Any) ToInt() int { 29 | return int(any.val) 30 | } 31 | 32 | func (any *uint64Any) ToInt32() int32 { 33 | return int32(any.val) 34 | } 35 | 36 | func (any *uint64Any) ToInt64() int64 { 37 | return int64(any.val) 38 | } 39 | 40 | func (any *uint64Any) ToUint() uint { 41 | return uint(any.val) 42 | } 43 | 44 | func (any *uint64Any) ToUint32() uint32 { 45 | return uint32(any.val) 46 | } 47 | 48 | func (any *uint64Any) ToUint64() uint64 { 49 | return any.val 50 | } 51 | 52 | func (any *uint64Any) ToFloat32() float32 { 53 | return float32(any.val) 54 | } 55 | 56 | func (any *uint64Any) ToFloat64() float64 { 57 | return float64(any.val) 58 | } 59 | 60 | func (any *uint64Any) ToString() string { 61 | return strconv.FormatUint(any.val, 10) 62 | } 63 | 64 | func (any *uint64Any) WriteTo(stream *Stream) { 65 | stream.WriteUint64(any.val) 66 | } 67 | 68 | func (any *uint64Any) Parse() *Iterator { 69 | return nil 70 | } 71 | 72 | func (any *uint64Any) GetInterface() interface{} { 73 | return any.val 74 | } 75 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/iter_array.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | // ReadArray read array element, tells if the array has more element to read. 4 | func (iter *Iterator) ReadArray() (ret bool) { 5 | c := iter.nextToken() 6 | switch c { 7 | case 'n': 8 | iter.skipThreeBytes('u', 'l', 'l') 9 | return false // null 10 | case '[': 11 | c = iter.nextToken() 12 | if c != ']' { 13 | iter.unreadByte() 14 | return true 15 | } 16 | return false 17 | case ']': 18 | return false 19 | case ',': 20 | return true 21 | default: 22 | iter.ReportError("ReadArray", "expect [ or , or ] or n, but found "+string([]byte{c})) 23 | return 24 | } 25 | } 26 | 27 | // ReadArrayCB read array with callback 28 | func (iter *Iterator) ReadArrayCB(callback func(*Iterator) bool) (ret bool) { 29 | c := iter.nextToken() 30 | if c == '[' { 31 | c = iter.nextToken() 32 | if c != ']' { 33 | iter.unreadByte() 34 | if !callback(iter) { 35 | return false 36 | } 37 | c = iter.nextToken() 38 | for c == ',' { 39 | if !callback(iter) { 40 | return false 41 | } 42 | c = iter.nextToken() 43 | } 44 | if c != ']' { 45 | iter.ReportError("ReadArrayCB", "expect ] in the end, but found "+string([]byte{c})) 46 | return false 47 | } 48 | return true 49 | } 50 | return true 51 | } 52 | if c == 'n' { 53 | iter.skipThreeBytes('u', 'l', 'l') 54 | return true // null 55 | } 56 | iter.ReportError("ReadArrayCB", "expect [ or n, but found "+string([]byte{c})) 57 | return false 58 | } 59 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Addr is a nested struct in alidns response 19 | type Addr struct { 20 | Value string `json:"Value" xml:"Value"` 21 | UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` 22 | AlertStatus string `json:"AlertStatus" xml:"AlertStatus"` 23 | CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` 24 | CreateTime string `json:"CreateTime" xml:"CreateTime"` 25 | AddrId int64 `json:"AddrId" xml:"AddrId"` 26 | Id int64 `json:"Id" xml:"Id"` 27 | UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` 28 | LbaWeight int `json:"LbaWeight" xml:"LbaWeight"` 29 | Mode string `json:"Mode" xml:"Mode"` 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_record.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Record is a nested struct in alidns response 19 | type Record struct { 20 | Value string `json:"Value" xml:"Value"` 21 | TTL int64 `json:"TTL" xml:"TTL"` 22 | Remark string `json:"Remark" xml:"Remark"` 23 | DomainName string `json:"DomainName" xml:"DomainName"` 24 | RR string `json:"RR" xml:"RR"` 25 | Priority int64 `json:"Priority" xml:"Priority"` 26 | RecordId string `json:"RecordId" xml:"RecordId"` 27 | Status string `json:"Status" xml:"Status"` 28 | Locked bool `json:"Locked" xml:"Locked"` 29 | Weight int `json:"Weight" xml:"Weight"` 30 | Line string `json:"Line" xml:"Line"` 31 | Type string `json:"Type" xml:"Type"` 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_uint32.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type uint32Any struct { 8 | baseAny 9 | val uint32 10 | } 11 | 12 | func (any *uint32Any) LastError() error { 13 | return nil 14 | } 15 | 16 | func (any *uint32Any) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *uint32Any) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *uint32Any) ToBool() bool { 25 | return any.val != 0 26 | } 27 | 28 | func (any *uint32Any) ToInt() int { 29 | return int(any.val) 30 | } 31 | 32 | func (any *uint32Any) ToInt32() int32 { 33 | return int32(any.val) 34 | } 35 | 36 | func (any *uint32Any) ToInt64() int64 { 37 | return int64(any.val) 38 | } 39 | 40 | func (any *uint32Any) ToUint() uint { 41 | return uint(any.val) 42 | } 43 | 44 | func (any *uint32Any) ToUint32() uint32 { 45 | return any.val 46 | } 47 | 48 | func (any *uint32Any) ToUint64() uint64 { 49 | return uint64(any.val) 50 | } 51 | 52 | func (any *uint32Any) ToFloat32() float32 { 53 | return float32(any.val) 54 | } 55 | 56 | func (any *uint32Any) ToFloat64() float64 { 57 | return float64(any.val) 58 | } 59 | 60 | func (any *uint32Any) ToString() string { 61 | return strconv.FormatInt(int64(any.val), 10) 62 | } 63 | 64 | func (any *uint32Any) WriteTo(stream *Stream) { 65 | stream.WriteUint32(any.val) 66 | } 67 | 68 | func (any *uint32Any) Parse() *Iterator { 69 | return nil 70 | } 71 | 72 | func (any *uint32Any) GetInterface() interface{} { 73 | return any.val 74 | } 75 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/safe_field.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | type safeField struct { 9 | reflect.StructField 10 | } 11 | 12 | func (field *safeField) Offset() uintptr { 13 | return field.StructField.Offset 14 | } 15 | 16 | func (field *safeField) Name() string { 17 | return field.StructField.Name 18 | } 19 | 20 | func (field *safeField) PkgPath() string { 21 | return field.StructField.PkgPath 22 | } 23 | 24 | func (field *safeField) Type() Type { 25 | panic("not implemented") 26 | } 27 | 28 | func (field *safeField) Tag() reflect.StructTag { 29 | return field.StructField.Tag 30 | } 31 | 32 | func (field *safeField) Index() []int { 33 | return field.StructField.Index 34 | } 35 | 36 | func (field *safeField) Anonymous() bool { 37 | return field.StructField.Anonymous 38 | } 39 | 40 | func (field *safeField) Set(obj interface{}, value interface{}) { 41 | val := reflect.ValueOf(obj).Elem() 42 | val.FieldByIndex(field.Index()).Set(reflect.ValueOf(value).Elem()) 43 | } 44 | 45 | func (field *safeField) UnsafeSet(obj unsafe.Pointer, value unsafe.Pointer) { 46 | panic("unsafe operation is not supported") 47 | } 48 | 49 | func (field *safeField) Get(obj interface{}) interface{} { 50 | val := reflect.ValueOf(obj).Elem().FieldByIndex(field.Index()) 51 | ptr := reflect.New(val.Type()) 52 | ptr.Elem().Set(val) 53 | return ptr.Interface() 54 | } 55 | 56 | func (field *safeField) UnsafeGet(obj unsafe.Pointer) unsafe.Pointer { 57 | panic("does not support unsafe operation") 58 | } 59 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_isp_city_node.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // IspCityNode is a nested struct in alidns response 19 | type IspCityNode struct { 20 | GroupType string `json:"GroupType" xml:"GroupType"` 21 | CityCode string `json:"CityCode" xml:"CityCode"` 22 | DefaultSelected bool `json:"DefaultSelected" xml:"DefaultSelected"` 23 | IspName string `json:"IspName" xml:"IspName"` 24 | GroupName string `json:"GroupName" xml:"GroupName"` 25 | CountryName string `json:"CountryName" xml:"CountryName"` 26 | CityName string `json:"CityName" xml:"CityName"` 27 | Mainland bool `json:"Mainland" xml:"Mainland"` 28 | CountryCode string `json:"CountryCode" xml:"CountryCode"` 29 | IspCode string `json:"IspCode" xml:"IspCode"` 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Blackfriday is distributed under the Simplified BSD License: 2 | 3 | > Copyright © 2011 Russ Ross 4 | > All rights reserved. 5 | > 6 | > Redistribution and use in source and binary forms, with or without 7 | > modification, are permitted provided that the following conditions 8 | > are met: 9 | > 10 | > 1. Redistributions of source code must retain the above copyright 11 | > notice, this list of conditions and the following disclaimer. 12 | > 13 | > 2. Redistributions in binary form must reproduce the above 14 | > copyright notice, this list of conditions and the following 15 | > disclaimer in the documentation and/or other materials provided with 16 | > the distribution. 17 | > 18 | > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19 | > "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20 | > LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21 | > FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22 | > COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 | > INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 24 | > BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25 | > LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26 | > CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 | > LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 28 | > ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 | > POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /vendor/gopkg.in/ini.v1/README.md: -------------------------------------------------------------------------------- 1 | INI [![Build Status](https://travis-ci.org/go-ini/ini.svg?branch=master)](https://travis-ci.org/go-ini/ini) [![Sourcegraph](https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg)](https://sourcegraph.com/github.com/go-ini/ini) 2 | === 3 | 4 | ![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) 5 | 6 | Package ini provides INI file read and write functionality in Go. 7 | 8 | ## Features 9 | 10 | - Load from multiple data sources(`[]byte`, file and `io.ReadCloser`) with overwrites. 11 | - Read with recursion values. 12 | - Read with parent-child sections. 13 | - Read with auto-increment key names. 14 | - Read with multiple-line values. 15 | - Read with tons of helper methods. 16 | - Read and convert values to Go types. 17 | - Read and **WRITE** comments of sections and keys. 18 | - Manipulate sections, keys and comments with ease. 19 | - Keep sections and keys in order as you parse and save. 20 | 21 | ## Installation 22 | 23 | The minimum requirement of Go is **1.6**. 24 | 25 | To use a tagged revision: 26 | 27 | ```sh 28 | $ go get gopkg.in/ini.v1 29 | ``` 30 | 31 | To use with latest changes: 32 | 33 | ```sh 34 | $ go get github.com/go-ini/ini 35 | ``` 36 | 37 | Please add `-u` flag to update in the future. 38 | 39 | ## Getting Help 40 | 41 | - [Getting Started](https://ini.unknwon.io/docs/intro/getting_started) 42 | - [API Documentation](https://gowalker.org/gopkg.in/ini.v1) 43 | 44 | ## License 45 | 46 | This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text. 47 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_global_resolver.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package endpoints 16 | 17 | import ( 18 | "fmt" 19 | "strings" 20 | 21 | "github.com/jmespath/go-jmespath" 22 | ) 23 | 24 | type LocalGlobalResolver struct { 25 | } 26 | 27 | func (resolver *LocalGlobalResolver) GetName() (name string) { 28 | name = "local global resolver" 29 | return 30 | } 31 | 32 | func (resolver *LocalGlobalResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { 33 | // get the global endpoints configs 34 | endpointExpression := fmt.Sprintf("products[?code=='%s'].global_endpoint", strings.ToLower(param.Product)) 35 | endpointData, err := jmespath.Search(endpointExpression, getEndpointConfigData()) 36 | if err == nil && endpointData != nil && len(endpointData.([]interface{})) > 0 { 37 | endpoint = endpointData.([]interface{})[0].(string) 38 | support = len(endpoint) > 0 39 | return 40 | } 41 | support = false 42 | return 43 | } 44 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: 6 | - '*' 7 | 8 | permissions: 9 | contents: write 10 | 11 | jobs: 12 | aliddns: 13 | runs-on: ubuntu-latest 14 | env: 15 | SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} 16 | steps: 17 | - 18 | name: Checkout 19 | uses: actions/checkout@v4 20 | with: 21 | fetch-depth: 0 22 | - 23 | name: Set up Go 24 | uses: actions/setup-go@v4 25 | - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v2 26 | - uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v2 27 | - name: setup-snapcraft 28 | # FIXME: the mkdirs are a hack for https://github.com/goreleaser/goreleaser/issues/1715 29 | run: | 30 | sudo apt-get update 31 | sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft 32 | mkdir -p $HOME/.cache/snapcraft/download 33 | mkdir -p $HOME/.cache/snapcraft/stage-packages 34 | - 35 | name: Login to Docker Hub 36 | uses: docker/login-action@v2 37 | with: 38 | username: openiothub 39 | password: ${{ secrets.DOCKERHUB_TOKEN }} 40 | - 41 | name: Run GoReleaser 42 | uses: goreleaser/goreleaser-action@v5 43 | if: startsWith(github.ref, 'refs/tags/') 44 | with: 45 | version: latest 46 | args: release --clean 47 | env: 48 | GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} 49 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/unsafe_eface.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | type eface struct { 9 | rtype unsafe.Pointer 10 | data unsafe.Pointer 11 | } 12 | 13 | func unpackEFace(obj interface{}) *eface { 14 | return (*eface)(unsafe.Pointer(&obj)) 15 | } 16 | 17 | func packEFace(rtype unsafe.Pointer, data unsafe.Pointer) interface{} { 18 | var i interface{} 19 | e := (*eface)(unsafe.Pointer(&i)) 20 | e.rtype = rtype 21 | e.data = data 22 | return i 23 | } 24 | 25 | type UnsafeEFaceType struct { 26 | unsafeType 27 | } 28 | 29 | func newUnsafeEFaceType(cfg *frozenConfig, type1 reflect.Type) *UnsafeEFaceType { 30 | return &UnsafeEFaceType{ 31 | unsafeType: *newUnsafeType(cfg, type1), 32 | } 33 | } 34 | 35 | func (type2 *UnsafeEFaceType) IsNil(obj interface{}) bool { 36 | if obj == nil { 37 | return true 38 | } 39 | objEFace := unpackEFace(obj) 40 | assertType("Type.IsNil argument 1", type2.ptrRType, objEFace.rtype) 41 | return type2.UnsafeIsNil(objEFace.data) 42 | } 43 | 44 | func (type2 *UnsafeEFaceType) UnsafeIsNil(ptr unsafe.Pointer) bool { 45 | if ptr == nil { 46 | return true 47 | } 48 | return unpackEFace(*(*interface{})(ptr)).data == nil 49 | } 50 | 51 | func (type2 *UnsafeEFaceType) Indirect(obj interface{}) interface{} { 52 | objEFace := unpackEFace(obj) 53 | assertType("Type.Indirect argument 1", type2.ptrRType, objEFace.rtype) 54 | return type2.UnsafeIndirect(objEFace.data) 55 | } 56 | 57 | func (type2 *UnsafeEFaceType) UnsafeIndirect(ptr unsafe.Pointer) interface{} { 58 | return *(*interface{})(ptr) 59 | } 60 | -------------------------------------------------------------------------------- /vendor/modules.txt: -------------------------------------------------------------------------------- 1 | # github.com/aliyun/alibaba-cloud-sdk-go v1.61.483 2 | ## explicit 3 | github.com/aliyun/alibaba-cloud-sdk-go/sdk 4 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth 5 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials 6 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider 7 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers 8 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints 9 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors 10 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests 11 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses 12 | github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils 13 | github.com/aliyun/alibaba-cloud-sdk-go/services/alidns 14 | # github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d 15 | github.com/cpuguy83/go-md2man/v2/md2man 16 | # github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af 17 | github.com/jmespath/go-jmespath 18 | # github.com/json-iterator/go v1.1.5 19 | github.com/json-iterator/go 20 | # github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd 21 | github.com/modern-go/concurrent 22 | # github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 23 | github.com/modern-go/reflect2 24 | # github.com/russross/blackfriday/v2 v2.0.1 25 | github.com/russross/blackfriday/v2 26 | # github.com/shurcooL/sanitized_anchor_name v1.0.0 27 | github.com/shurcooL/sanitized_anchor_name 28 | # github.com/urfave/cli/v2 v2.2.0 29 | ## explicit 30 | github.com/urfave/cli/v2 31 | # gopkg.in/ini.v1 v1.42.0 32 | gopkg.in/ini.v1 33 | # gopkg.in/yaml.v2 v2.2.2 34 | ## explicit 35 | gopkg.in/yaml.v2 36 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/unsafe_iface.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | type iface struct { 9 | itab *itab 10 | data unsafe.Pointer 11 | } 12 | 13 | type itab struct { 14 | ignore unsafe.Pointer 15 | rtype unsafe.Pointer 16 | } 17 | 18 | func IFaceToEFace(ptr unsafe.Pointer) interface{} { 19 | iface := (*iface)(ptr) 20 | if iface.itab == nil { 21 | return nil 22 | } 23 | return packEFace(iface.itab.rtype, iface.data) 24 | } 25 | 26 | type UnsafeIFaceType struct { 27 | unsafeType 28 | } 29 | 30 | func newUnsafeIFaceType(cfg *frozenConfig, type1 reflect.Type) *UnsafeIFaceType { 31 | return &UnsafeIFaceType{ 32 | unsafeType: *newUnsafeType(cfg, type1), 33 | } 34 | } 35 | 36 | func (type2 *UnsafeIFaceType) Indirect(obj interface{}) interface{} { 37 | objEFace := unpackEFace(obj) 38 | assertType("Type.Indirect argument 1", type2.ptrRType, objEFace.rtype) 39 | return type2.UnsafeIndirect(objEFace.data) 40 | } 41 | 42 | func (type2 *UnsafeIFaceType) UnsafeIndirect(ptr unsafe.Pointer) interface{} { 43 | return IFaceToEFace(ptr) 44 | } 45 | 46 | func (type2 *UnsafeIFaceType) IsNil(obj interface{}) bool { 47 | if obj == nil { 48 | return true 49 | } 50 | objEFace := unpackEFace(obj) 51 | assertType("Type.IsNil argument 1", type2.ptrRType, objEFace.rtype) 52 | return type2.UnsafeIsNil(objEFace.data) 53 | } 54 | 55 | func (type2 *UnsafeIFaceType) UnsafeIsNil(ptr unsafe.Pointer) bool { 56 | if ptr == nil { 57 | return true 58 | } 59 | iface := (*iface)(ptr) 60 | if iface.itab == nil { 61 | return true 62 | } 63 | return false 64 | } 65 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/signature_does_not_match_wrapper.go: -------------------------------------------------------------------------------- 1 | package errors 2 | 3 | import ( 4 | "strings" 5 | 6 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" 7 | ) 8 | 9 | const SignatureDostNotMatchErrorCode = "SignatureDoesNotMatch" 10 | const IncompleteSignatureErrorCode = "IncompleteSignature" 11 | const MessageContain = "server string to sign is:" 12 | 13 | var debug utils.Debug 14 | 15 | func init() { 16 | debug = utils.Init("sdk") 17 | } 18 | 19 | type SignatureDostNotMatchWrapper struct { 20 | } 21 | 22 | func (*SignatureDostNotMatchWrapper) tryWrap(error *ServerError, wrapInfo map[string]string) (ok bool) { 23 | clientStringToSign := wrapInfo["StringToSign"] 24 | if (error.errorCode == SignatureDostNotMatchErrorCode || error.errorCode == IncompleteSignatureErrorCode) && clientStringToSign != "" { 25 | message := error.message 26 | if strings.Contains(message, MessageContain) { 27 | str := strings.Split(message, MessageContain) 28 | serverStringToSign := str[1] 29 | 30 | if clientStringToSign == serverStringToSign { 31 | // user secret is error 32 | error.recommend = "InvalidAccessKeySecret: Please check you AccessKeySecret" 33 | } else { 34 | debug("Client StringToSign: %s", clientStringToSign) 35 | debug("Server StringToSign: %s", serverStringToSign) 36 | error.recommend = "This may be a bug with the SDK and we hope you can submit this question in the " + 37 | "github issue(https://github.com/aliyun/alibaba-cloud-sdk-go/issues), thanks very much" 38 | } 39 | } 40 | ok = true 41 | return 42 | } 43 | ok = false 44 | return 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_statistic.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // Statistic is a nested struct in alidns response 19 | type Statistic struct { 20 | HttpCount int64 `json:"HttpCount" xml:"HttpCount"` 21 | TotalCount int64 `json:"TotalCount" xml:"TotalCount"` 22 | V4HttpCount int64 `json:"V4HttpCount" xml:"V4HttpCount"` 23 | V6HttpsCount int64 `json:"V6HttpsCount" xml:"V6HttpsCount"` 24 | Timestamp int64 `json:"Timestamp" xml:"Timestamp"` 25 | IpCount int64 `json:"IpCount" xml:"IpCount"` 26 | HttpsCount int64 `json:"HttpsCount" xml:"HttpsCount"` 27 | DomainName string `json:"DomainName" xml:"DomainName"` 28 | Count int64 `json:"Count" xml:"Count"` 29 | V6HttpCount int64 `json:"V6HttpCount" xml:"V6HttpCount"` 30 | V4HttpsCount int64 `json:"V4HttpsCount" xml:"V4HttpsCount"` 31 | SubDomain string `json:"SubDomain" xml:"SubDomain"` 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_float.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type floatAny struct { 8 | baseAny 9 | val float64 10 | } 11 | 12 | func (any *floatAny) Parse() *Iterator { 13 | return nil 14 | } 15 | 16 | func (any *floatAny) ValueType() ValueType { 17 | return NumberValue 18 | } 19 | 20 | func (any *floatAny) MustBeValid() Any { 21 | return any 22 | } 23 | 24 | func (any *floatAny) LastError() error { 25 | return nil 26 | } 27 | 28 | func (any *floatAny) ToBool() bool { 29 | return any.ToFloat64() != 0 30 | } 31 | 32 | func (any *floatAny) ToInt() int { 33 | return int(any.val) 34 | } 35 | 36 | func (any *floatAny) ToInt32() int32 { 37 | return int32(any.val) 38 | } 39 | 40 | func (any *floatAny) ToInt64() int64 { 41 | return int64(any.val) 42 | } 43 | 44 | func (any *floatAny) ToUint() uint { 45 | if any.val > 0 { 46 | return uint(any.val) 47 | } 48 | return 0 49 | } 50 | 51 | func (any *floatAny) ToUint32() uint32 { 52 | if any.val > 0 { 53 | return uint32(any.val) 54 | } 55 | return 0 56 | } 57 | 58 | func (any *floatAny) ToUint64() uint64 { 59 | if any.val > 0 { 60 | return uint64(any.val) 61 | } 62 | return 0 63 | } 64 | 65 | func (any *floatAny) ToFloat32() float32 { 66 | return float32(any.val) 67 | } 68 | 69 | func (any *floatAny) ToFloat64() float64 { 70 | return any.val 71 | } 72 | 73 | func (any *floatAny) ToString() string { 74 | return strconv.FormatFloat(any.val, 'E', -1, 64) 75 | } 76 | 77 | func (any *floatAny) WriteTo(stream *Stream) { 78 | stream.WriteFloat64(any.val) 79 | } 80 | 81 | func (any *floatAny) GetInterface() interface{} { 82 | return any.val 83 | } 84 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_v2.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package signers 16 | 17 | import ( 18 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" 19 | ) 20 | 21 | type SignerV2 struct { 22 | credential *credentials.RsaKeyPairCredential 23 | } 24 | 25 | func (signer *SignerV2) GetExtraParam() map[string]string { 26 | return nil 27 | } 28 | 29 | func NewSignerV2(credential *credentials.RsaKeyPairCredential) *SignerV2 { 30 | return &SignerV2{ 31 | credential: credential, 32 | } 33 | } 34 | 35 | func (*SignerV2) GetName() string { 36 | return "SHA256withRSA" 37 | } 38 | 39 | func (*SignerV2) GetType() string { 40 | return "PRIVATEKEY" 41 | } 42 | 43 | func (*SignerV2) GetVersion() string { 44 | return "1.0" 45 | } 46 | 47 | func (signer *SignerV2) GetAccessKeyId() (accessKeyId string, err error) { 48 | return signer.credential.PublicKeyId, err 49 | } 50 | 51 | func (signer *SignerV2) Sign(stringToSign, secretSuffix string) string { 52 | secret := signer.credential.PrivateKey 53 | return Sha256WithRsa(stringToSign, secret) 54 | } 55 | -------------------------------------------------------------------------------- /vendor/github.com/jmespath/go-jmespath/api.go: -------------------------------------------------------------------------------- 1 | package jmespath 2 | 3 | import "strconv" 4 | 5 | // JMESPath is the epresentation of a compiled JMES path query. A JMESPath is 6 | // safe for concurrent use by multiple goroutines. 7 | type JMESPath struct { 8 | ast ASTNode 9 | intr *treeInterpreter 10 | } 11 | 12 | // Compile parses a JMESPath expression and returns, if successful, a JMESPath 13 | // object that can be used to match against data. 14 | func Compile(expression string) (*JMESPath, error) { 15 | parser := NewParser() 16 | ast, err := parser.Parse(expression) 17 | if err != nil { 18 | return nil, err 19 | } 20 | jmespath := &JMESPath{ast: ast, intr: newInterpreter()} 21 | return jmespath, nil 22 | } 23 | 24 | // MustCompile is like Compile but panics if the expression cannot be parsed. 25 | // It simplifies safe initialization of global variables holding compiled 26 | // JMESPaths. 27 | func MustCompile(expression string) *JMESPath { 28 | jmespath, err := Compile(expression) 29 | if err != nil { 30 | panic(`jmespath: Compile(` + strconv.Quote(expression) + `): ` + err.Error()) 31 | } 32 | return jmespath 33 | } 34 | 35 | // Search evaluates a JMESPath expression against input data and returns the result. 36 | func (jp *JMESPath) Search(data interface{}) (interface{}, error) { 37 | return jp.intr.Execute(jp.ast, data) 38 | } 39 | 40 | // Search evaluates a JMESPath expression against input data and returns the result. 41 | func Search(expression string, data interface{}) (interface{}, error) { 42 | intr := newInterpreter() 43 | parser := NewParser() 44 | ast, err := parser.Parse(expression) 45 | if err != nil { 46 | return nil, err 47 | } 48 | return intr.Execute(ast, data) 49 | } 50 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_access_key.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package signers 16 | 17 | import ( 18 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" 19 | ) 20 | 21 | type AccessKeySigner struct { 22 | credential *credentials.AccessKeyCredential 23 | } 24 | 25 | func (signer *AccessKeySigner) GetExtraParam() map[string]string { 26 | return nil 27 | } 28 | 29 | func NewAccessKeySigner(credential *credentials.AccessKeyCredential) *AccessKeySigner { 30 | return &AccessKeySigner{ 31 | credential: credential, 32 | } 33 | } 34 | 35 | func (*AccessKeySigner) GetName() string { 36 | return "HMAC-SHA1" 37 | } 38 | 39 | func (*AccessKeySigner) GetType() string { 40 | return "" 41 | } 42 | 43 | func (*AccessKeySigner) GetVersion() string { 44 | return "1.0" 45 | } 46 | 47 | func (signer *AccessKeySigner) GetAccessKeyId() (accessKeyId string, err error) { 48 | return signer.credential.AccessKeyId, nil 49 | } 50 | 51 | func (signer *AccessKeySigner) Sign(stringToSign, secretSuffix string) string { 52 | secret := signer.credential.AccessKeySecret + secretSuffix 53 | return ShaHmac1(stringToSign, secret) 54 | } 55 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/any_invalid.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import "fmt" 4 | 5 | type invalidAny struct { 6 | baseAny 7 | err error 8 | } 9 | 10 | func newInvalidAny(path []interface{}) *invalidAny { 11 | return &invalidAny{baseAny{}, fmt.Errorf("%v not found", path)} 12 | } 13 | 14 | func (any *invalidAny) LastError() error { 15 | return any.err 16 | } 17 | 18 | func (any *invalidAny) ValueType() ValueType { 19 | return InvalidValue 20 | } 21 | 22 | func (any *invalidAny) MustBeValid() Any { 23 | panic(any.err) 24 | } 25 | 26 | func (any *invalidAny) ToBool() bool { 27 | return false 28 | } 29 | 30 | func (any *invalidAny) ToInt() int { 31 | return 0 32 | } 33 | 34 | func (any *invalidAny) ToInt32() int32 { 35 | return 0 36 | } 37 | 38 | func (any *invalidAny) ToInt64() int64 { 39 | return 0 40 | } 41 | 42 | func (any *invalidAny) ToUint() uint { 43 | return 0 44 | } 45 | 46 | func (any *invalidAny) ToUint32() uint32 { 47 | return 0 48 | } 49 | 50 | func (any *invalidAny) ToUint64() uint64 { 51 | return 0 52 | } 53 | 54 | func (any *invalidAny) ToFloat32() float32 { 55 | return 0 56 | } 57 | 58 | func (any *invalidAny) ToFloat64() float64 { 59 | return 0 60 | } 61 | 62 | func (any *invalidAny) ToString() string { 63 | return "" 64 | } 65 | 66 | func (any *invalidAny) WriteTo(stream *Stream) { 67 | } 68 | 69 | func (any *invalidAny) Get(path ...interface{}) Any { 70 | if any.err == nil { 71 | return &invalidAny{baseAny{}, fmt.Errorf("get %v from invalid", path)} 72 | } 73 | return &invalidAny{baseAny{}, fmt.Errorf("%v, get %v from invalid", any.err, path)} 74 | } 75 | 76 | func (any *invalidAny) Parse() *Iterator { 77 | return nil 78 | } 79 | 80 | func (any *invalidAny) GetInterface() interface{} { 81 | return nil 82 | } 83 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/algorithms.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package signers 16 | 17 | import ( 18 | "crypto" 19 | "crypto/hmac" 20 | "crypto/rand" 21 | "crypto/rsa" 22 | "crypto/sha1" 23 | "crypto/x509" 24 | "encoding/base64" 25 | ) 26 | 27 | func ShaHmac1(source, secret string) string { 28 | key := []byte(secret) 29 | hmac := hmac.New(sha1.New, key) 30 | hmac.Write([]byte(source)) 31 | signedBytes := hmac.Sum(nil) 32 | signedString := base64.StdEncoding.EncodeToString(signedBytes) 33 | return signedString 34 | } 35 | 36 | func Sha256WithRsa(source, secret string) string { 37 | // block, _ := pem.Decode([]byte(secret)) 38 | decodeString, err := base64.StdEncoding.DecodeString(secret) 39 | if err != nil { 40 | panic(err) 41 | } 42 | private, err := x509.ParsePKCS8PrivateKey(decodeString) 43 | if err != nil { 44 | panic(err) 45 | } 46 | 47 | h := crypto.Hash.New(crypto.SHA256) 48 | h.Write([]byte(source)) 49 | hashed := h.Sum(nil) 50 | signature, err := rsa.SignPKCS1v15(rand.Reader, private.(*rsa.PrivateKey), 51 | crypto.SHA256, hashed) 52 | if err != nil { 53 | panic(err) 54 | } 55 | 56 | return base64.StdEncoding.EncodeToString(signature) 57 | } 58 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_sts_token.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package signers 16 | 17 | import ( 18 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials" 19 | ) 20 | 21 | type StsTokenSigner struct { 22 | credential *credentials.StsTokenCredential 23 | } 24 | 25 | func NewStsTokenSigner(credential *credentials.StsTokenCredential) *StsTokenSigner { 26 | return &StsTokenSigner{ 27 | credential: credential, 28 | } 29 | } 30 | 31 | func (*StsTokenSigner) GetName() string { 32 | return "HMAC-SHA1" 33 | } 34 | 35 | func (*StsTokenSigner) GetType() string { 36 | return "" 37 | } 38 | 39 | func (*StsTokenSigner) GetVersion() string { 40 | return "1.0" 41 | } 42 | 43 | func (signer *StsTokenSigner) GetAccessKeyId() (accessKeyId string, err error) { 44 | return signer.credential.AccessKeyId, nil 45 | } 46 | 47 | func (signer *StsTokenSigner) GetExtraParam() map[string]string { 48 | return map[string]string{"SecurityToken": signer.credential.AccessKeyStsToken} 49 | } 50 | 51 | func (signer *StsTokenSigner) Sign(stringToSign, secretSuffix string) string { 52 | secret := signer.credential.AccessKeySecret + secretSuffix 53 | return ShaHmac1(stringToSign, secret) 54 | } 55 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/reflect_dynamic.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "github.com/modern-go/reflect2" 5 | "reflect" 6 | "unsafe" 7 | ) 8 | 9 | type dynamicEncoder struct { 10 | valType reflect2.Type 11 | } 12 | 13 | func (encoder *dynamicEncoder) Encode(ptr unsafe.Pointer, stream *Stream) { 14 | obj := encoder.valType.UnsafeIndirect(ptr) 15 | stream.WriteVal(obj) 16 | } 17 | 18 | func (encoder *dynamicEncoder) IsEmpty(ptr unsafe.Pointer) bool { 19 | return encoder.valType.UnsafeIndirect(ptr) == nil 20 | } 21 | 22 | type efaceDecoder struct { 23 | } 24 | 25 | func (decoder *efaceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { 26 | pObj := (*interface{})(ptr) 27 | obj := *pObj 28 | if obj == nil { 29 | *pObj = iter.Read() 30 | return 31 | } 32 | typ := reflect2.TypeOf(obj) 33 | if typ.Kind() != reflect.Ptr { 34 | *pObj = iter.Read() 35 | return 36 | } 37 | ptrType := typ.(*reflect2.UnsafePtrType) 38 | ptrElemType := ptrType.Elem() 39 | if iter.WhatIsNext() == NilValue { 40 | if ptrElemType.Kind() != reflect.Ptr { 41 | iter.skipFourBytes('n', 'u', 'l', 'l') 42 | *pObj = nil 43 | return 44 | } 45 | } 46 | if reflect2.IsNil(obj) { 47 | obj := ptrElemType.New() 48 | iter.ReadVal(obj) 49 | *pObj = obj 50 | return 51 | } 52 | iter.ReadVal(obj) 53 | } 54 | 55 | type ifaceDecoder struct { 56 | valType *reflect2.UnsafeIFaceType 57 | } 58 | 59 | func (decoder *ifaceDecoder) Decode(ptr unsafe.Pointer, iter *Iterator) { 60 | if iter.ReadNil() { 61 | decoder.valType.UnsafeSet(ptr, decoder.valType.UnsafeNew()) 62 | return 63 | } 64 | obj := decoder.valType.UnsafeIndirect(ptr) 65 | if reflect2.IsNil(obj) { 66 | iter.ReportError("decode non empty interface", "can not unmarshal into nil") 67 | return 68 | } 69 | iter.ReadVal(obj) 70 | } 71 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/unsafe_struct.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | type UnsafeStructType struct { 9 | unsafeType 10 | likePtr bool 11 | } 12 | 13 | func newUnsafeStructType(cfg *frozenConfig, type1 reflect.Type) *UnsafeStructType { 14 | return &UnsafeStructType{ 15 | unsafeType: *newUnsafeType(cfg, type1), 16 | likePtr: likePtrType(type1), 17 | } 18 | } 19 | 20 | func (type2 *UnsafeStructType) LikePtr() bool { 21 | return type2.likePtr 22 | } 23 | 24 | func (type2 *UnsafeStructType) Indirect(obj interface{}) interface{} { 25 | objEFace := unpackEFace(obj) 26 | assertType("Type.Indirect argument 1", type2.ptrRType, objEFace.rtype) 27 | return type2.UnsafeIndirect(objEFace.data) 28 | } 29 | 30 | func (type2 *UnsafeStructType) UnsafeIndirect(ptr unsafe.Pointer) interface{} { 31 | if type2.likePtr { 32 | return packEFace(type2.rtype, *(*unsafe.Pointer)(ptr)) 33 | } 34 | return packEFace(type2.rtype, ptr) 35 | } 36 | 37 | func (type2 *UnsafeStructType) FieldByName(name string) StructField { 38 | structField, found := type2.Type.FieldByName(name) 39 | if !found { 40 | return nil 41 | } 42 | return newUnsafeStructField(type2, structField) 43 | } 44 | 45 | func (type2 *UnsafeStructType) Field(i int) StructField { 46 | return newUnsafeStructField(type2, type2.Type.Field(i)) 47 | } 48 | 49 | func (type2 *UnsafeStructType) FieldByIndex(index []int) StructField { 50 | return newUnsafeStructField(type2, type2.Type.FieldByIndex(index)) 51 | } 52 | 53 | func (type2 *UnsafeStructType) FieldByNameFunc(match func(string) bool) StructField { 54 | structField, found := type2.Type.FieldByNameFunc(match) 55 | if !found { 56 | panic("field match condition not found in " + type2.Type.String()) 57 | } 58 | return newUnsafeStructField(type2, structField) 59 | } 60 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_addr_pool.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // AddrPool is a nested struct in alidns response 19 | type AddrPool struct { 20 | AddrCount int `json:"AddrCount" xml:"AddrCount"` 21 | Name string `json:"Name" xml:"Name"` 22 | MinAvailableAddrNum int `json:"MinAvailableAddrNum" xml:"MinAvailableAddrNum"` 23 | UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` 24 | MonitorConfigId string `json:"MonitorConfigId" xml:"MonitorConfigId"` 25 | CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` 26 | CreateTime string `json:"CreateTime" xml:"CreateTime"` 27 | AddrPoolName string `json:"AddrPoolName" xml:"AddrPoolName"` 28 | AddrPoolId string `json:"AddrPoolId" xml:"AddrPoolId"` 29 | UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` 30 | Status string `json:"Status" xml:"Status"` 31 | MonitorStatus string `json:"MonitorStatus" xml:"MonitorStatus"` 32 | Type string `json:"Type" xml:"Type"` 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_batch_result_detail.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // BatchResultDetail is a nested struct in alidns response 19 | type BatchResultDetail struct { 20 | Domain string `json:"Domain" xml:"Domain"` 21 | Type string `json:"Type" xml:"Type"` 22 | Rr string `json:"Rr" xml:"Rr"` 23 | Value string `json:"Value" xml:"Value"` 24 | Status bool `json:"Status" xml:"Status"` 25 | Reason string `json:"Reason" xml:"Reason"` 26 | NewRr string `json:"NewRr" xml:"NewRr"` 27 | NewValue string `json:"NewValue" xml:"NewValue"` 28 | BatchType string `json:"BatchType" xml:"BatchType"` 29 | OperateDateStr string `json:"OperateDateStr" xml:"OperateDateStr"` 30 | Line string `json:"Line" xml:"Line"` 31 | Priority string `json:"Priority" xml:"Priority"` 32 | Ttl string `json:"Ttl" xml:"Ttl"` 33 | RecordId string `json:"RecordId" xml:"RecordId"` 34 | Remark string `json:"Remark" xml:"Remark"` 35 | RrStatus string `json:"RrStatus" xml:"RrStatus"` 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package endpoints 16 | 17 | import ( 18 | "fmt" 19 | "strings" 20 | "sync" 21 | ) 22 | 23 | const keyFormatter = "%s::%s" 24 | 25 | type EndpointMapping struct { 26 | sync.RWMutex 27 | endpoint map[string]string 28 | } 29 | 30 | var endpointMapping = EndpointMapping{endpoint: make(map[string]string)} 31 | 32 | // AddEndpointMapping use productId and regionId as key to store the endpoint into inner map 33 | // when using the same productId and regionId as key, the endpoint will be covered. 34 | func AddEndpointMapping(regionId, productId, endpoint string) (err error) { 35 | key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) 36 | endpointMapping.Lock() 37 | endpointMapping.endpoint[key] = endpoint 38 | endpointMapping.Unlock() 39 | return nil 40 | } 41 | 42 | // GetEndpointFromMap use Product and RegionId as key to find endpoint from inner map 43 | func GetEndpointFromMap(regionId, productId string) string { 44 | key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) 45 | endpointMapping.RLock() 46 | endpoint := endpointMapping.endpoint[key] 47 | endpointMapping.RUnlock() 48 | return endpoint 49 | } 50 | -------------------------------------------------------------------------------- /aliddns.rb: -------------------------------------------------------------------------------- 1 | class Aliddns < Formula 2 | desc "Aliyun ddns service" 3 | homepage "https://github.com/OpenIoTHub" 4 | url "https://github.com/OpenIoTHub/aliddns.git", 5 | tag: "v0.0.5", 6 | revision: "bebda34d7f36148bc410706063fb9cec6d9ff1df" 7 | license "MIT" 8 | 9 | depends_on "go" => :build 10 | 11 | def install 12 | (etc/"aliddns").mkpath 13 | system "go", "build", "-mod=vendor", "-ldflags", 14 | "-s -w -X main.version=#{version} -X main.commit=#{stable.specs[:revision]} -X main.builtBy=homebrew", 15 | *std_go_args 16 | etc.install "aliddns.yaml" => "aliddns/aliddns.yaml" 17 | end 18 | 19 | plist_options manual: "aliddns -c #{HOMEBREW_PREFIX}/etc/aliddns/aliddns.yaml" 20 | 21 | def plist 22 | <<~EOS 23 | 24 | 25 | 26 | 27 | Label 28 | #{plist_name} 29 | KeepAlive 30 | 31 | ProgramArguments 32 | 33 | #{opt_bin}/aliddns 34 | -c 35 | #{etc}/aliddns/aliddns.yaml 36 | 37 | StandardErrorPath 38 | #{var}/log/aliddns.log 39 | StandardOutPath 40 | #{var}/log/aliddns.log 41 | 42 | 43 | EOS 44 | end 45 | 46 | test do 47 | assert_match version.to_s, shell_output("#{bin}/aliddns -v 2>&1") 48 | assert_match "config created", shell_output("#{bin}/aliddns init --config=aliddns.yml 2>&1") 49 | assert_predicate testpath/"aliddns.yml", :exist? 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/reflect_json_raw_message.go: -------------------------------------------------------------------------------- 1 | package jsoniter 2 | 3 | import ( 4 | "encoding/json" 5 | "github.com/modern-go/reflect2" 6 | "unsafe" 7 | ) 8 | 9 | var jsonRawMessageType = reflect2.TypeOfPtr((*json.RawMessage)(nil)).Elem() 10 | var jsoniterRawMessageType = reflect2.TypeOfPtr((*RawMessage)(nil)).Elem() 11 | 12 | func createEncoderOfJsonRawMessage(ctx *ctx, typ reflect2.Type) ValEncoder { 13 | if typ == jsonRawMessageType { 14 | return &jsonRawMessageCodec{} 15 | } 16 | if typ == jsoniterRawMessageType { 17 | return &jsoniterRawMessageCodec{} 18 | } 19 | return nil 20 | } 21 | 22 | func createDecoderOfJsonRawMessage(ctx *ctx, typ reflect2.Type) ValDecoder { 23 | if typ == jsonRawMessageType { 24 | return &jsonRawMessageCodec{} 25 | } 26 | if typ == jsoniterRawMessageType { 27 | return &jsoniterRawMessageCodec{} 28 | } 29 | return nil 30 | } 31 | 32 | type jsonRawMessageCodec struct { 33 | } 34 | 35 | func (codec *jsonRawMessageCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { 36 | *((*json.RawMessage)(ptr)) = json.RawMessage(iter.SkipAndReturnBytes()) 37 | } 38 | 39 | func (codec *jsonRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream) { 40 | stream.WriteRaw(string(*((*json.RawMessage)(ptr)))) 41 | } 42 | 43 | func (codec *jsonRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool { 44 | return len(*((*json.RawMessage)(ptr))) == 0 45 | } 46 | 47 | type jsoniterRawMessageCodec struct { 48 | } 49 | 50 | func (codec *jsoniterRawMessageCodec) Decode(ptr unsafe.Pointer, iter *Iterator) { 51 | *((*RawMessage)(ptr)) = RawMessage(iter.SkipAndReturnBytes()) 52 | } 53 | 54 | func (codec *jsoniterRawMessageCodec) Encode(ptr unsafe.Pointer, stream *Stream) { 55 | stream.WriteRaw(string(*((*RawMessage)(ptr)))) 56 | } 57 | 58 | func (codec *jsoniterRawMessageCodec) IsEmpty(ptr unsafe.Pointer) bool { 59 | return len(*((*RawMessage)(ptr))) == 0 60 | } 61 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/local_regional_resolver.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package endpoints 16 | 17 | import ( 18 | "fmt" 19 | "strings" 20 | 21 | "github.com/jmespath/go-jmespath" 22 | ) 23 | 24 | type LocalRegionalResolver struct { 25 | } 26 | 27 | func (resolver *LocalRegionalResolver) GetName() (name string) { 28 | name = "local regional resolver" 29 | return 30 | } 31 | 32 | func (resolver *LocalRegionalResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { 33 | // get the regional endpoints configs 34 | regionalExpression := fmt.Sprintf("products[?code=='%s'].regional_endpoints", strings.ToLower(param.Product)) 35 | regionalData, err := jmespath.Search(regionalExpression, getEndpointConfigData()) 36 | if err == nil && regionalData != nil && len(regionalData.([]interface{})) > 0 { 37 | endpointExpression := fmt.Sprintf("[0][?region=='%s'].endpoint", strings.ToLower(param.RegionId)) 38 | var endpointData interface{} 39 | endpointData, err = jmespath.Search(endpointExpression, regionalData) 40 | if err == nil && endpointData != nil && len(endpointData.([]interface{})) > 0 { 41 | endpoint = endpointData.([]interface{})[0].(string) 42 | support = len(endpoint) > 0 43 | return 44 | } 45 | } 46 | support = false 47 | return 48 | } 49 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_recovery_plan.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // RecoveryPlan is a nested struct in alidns response 19 | type RecoveryPlan struct { 20 | RecoveryPlanId int64 `json:"RecoveryPlanId" xml:"RecoveryPlanId"` 21 | Name string `json:"Name" xml:"Name"` 22 | Remark string `json:"Remark" xml:"Remark"` 23 | FaultAddrPoolNum int `json:"FaultAddrPoolNum" xml:"FaultAddrPoolNum"` 24 | LastExecuteTime string `json:"LastExecuteTime" xml:"LastExecuteTime"` 25 | LastExecuteTimestamp int64 `json:"LastExecuteTimestamp" xml:"LastExecuteTimestamp"` 26 | LastRollbackTime string `json:"LastRollbackTime" xml:"LastRollbackTime"` 27 | LastRollbackTimestamp int64 `json:"LastRollbackTimestamp" xml:"LastRollbackTimestamp"` 28 | CreateTime string `json:"CreateTime" xml:"CreateTime"` 29 | CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` 30 | UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` 31 | UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` 32 | Status string `json:"Status" xml:"Status"` 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/alidns/struct_gtm_instance.go: -------------------------------------------------------------------------------- 1 | package alidns 2 | 3 | //Licensed under the Apache License, Version 2.0 (the "License"); 4 | //you may not use this file except in compliance with the License. 5 | //You may obtain a copy of the License at 6 | // 7 | //http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | //Unless required by applicable law or agreed to in writing, software 10 | //distributed under the License is distributed on an "AS IS" BASIS, 11 | //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | //See the License for the specific language governing permissions and 13 | //limitations under the License. 14 | // 15 | // Code generated by Alibaba Cloud SDK Code Generator. 16 | // Changes may cause incorrect behavior and will be lost if the code is regenerated. 17 | 18 | // GtmInstance is a nested struct in alidns response 19 | type GtmInstance struct { 20 | InstanceId string `json:"InstanceId" xml:"InstanceId"` 21 | InstanceName string `json:"InstanceName" xml:"InstanceName"` 22 | Cname string `json:"Cname" xml:"Cname"` 23 | UserDomainName string `json:"UserDomainName" xml:"UserDomainName"` 24 | VersionCode string `json:"VersionCode" xml:"VersionCode"` 25 | Ttl int `json:"Ttl" xml:"Ttl"` 26 | LbaStrategy string `json:"LbaStrategy" xml:"LbaStrategy"` 27 | CreateTime string `json:"CreateTime" xml:"CreateTime"` 28 | CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` 29 | ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` 30 | ExpireTimestamp int64 `json:"ExpireTimestamp" xml:"ExpireTimestamp"` 31 | AlertGroup string `json:"AlertGroup" xml:"AlertGroup"` 32 | CnameMode string `json:"CnameMode" xml:"CnameMode"` 33 | AccessStrategyNum int `json:"AccessStrategyNum" xml:"AccessStrategyNum"` 34 | AddressPoolNum int `json:"AddressPoolNum" xml:"AddressPoolNum"` 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/credential_updater.go: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed under the Apache License, Version 2.0 (the "License"); 3 | * you may not use this file except in compliance with the License. 4 | * You may obtain a copy of the License at 5 | * 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | package signers 16 | 17 | import ( 18 | "time" 19 | 20 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" 21 | "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" 22 | ) 23 | 24 | const defaultInAdvanceScale = 0.95 25 | 26 | type credentialUpdater struct { 27 | credentialExpiration int 28 | lastUpdateTimestamp int64 29 | inAdvanceScale float64 30 | buildRequestMethod func() (*requests.CommonRequest, error) 31 | responseCallBack func(response *responses.CommonResponse) error 32 | refreshApi func(request *requests.CommonRequest) (response *responses.CommonResponse, err error) 33 | } 34 | 35 | func (updater *credentialUpdater) needUpdateCredential() (result bool) { 36 | if updater.inAdvanceScale == 0 { 37 | updater.inAdvanceScale = defaultInAdvanceScale 38 | } 39 | return time.Now().Unix()-updater.lastUpdateTimestamp >= int64(float64(updater.credentialExpiration)*updater.inAdvanceScale) 40 | } 41 | 42 | func (updater *credentialUpdater) updateCredential() (err error) { 43 | request, err := updater.buildRequestMethod() 44 | if err != nil { 45 | return 46 | } 47 | response, err := updater.refreshApi(request) 48 | if err != nil { 49 | return 50 | } 51 | updater.lastUpdateTimestamp = time.Now().Unix() 52 | err = updater.responseCallBack(response) 53 | return 54 | } 55 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/README.md: -------------------------------------------------------------------------------- 1 | # concurrent 2 | 3 | [![Sourcegraph](https://sourcegraph.com/github.com/modern-go/concurrent/-/badge.svg)](https://sourcegraph.com/github.com/modern-go/concurrent?badge) 4 | [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/modern-go/concurrent) 5 | [![Build Status](https://travis-ci.org/modern-go/concurrent.svg?branch=master)](https://travis-ci.org/modern-go/concurrent) 6 | [![codecov](https://codecov.io/gh/modern-go/concurrent/branch/master/graph/badge.svg)](https://codecov.io/gh/modern-go/concurrent) 7 | [![rcard](https://goreportcard.com/badge/github.com/modern-go/concurrent)](https://goreportcard.com/report/github.com/modern-go/concurrent) 8 | [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://raw.githubusercontent.com/modern-go/concurrent/master/LICENSE) 9 | 10 | * concurrent.Map: backport sync.Map for go below 1.9 11 | * concurrent.Executor: goroutine with explicit ownership and cancellable 12 | 13 | # concurrent.Map 14 | 15 | because sync.Map is only available in go 1.9, we can use concurrent.Map to make code portable 16 | 17 | ```go 18 | m := concurrent.NewMap() 19 | m.Store("hello", "world") 20 | elem, found := m.Load("hello") 21 | // elem will be "world" 22 | // found will be true 23 | ``` 24 | 25 | # concurrent.Executor 26 | 27 | ```go 28 | executor := concurrent.NewUnboundedExecutor() 29 | executor.Go(func(ctx context.Context) { 30 | everyMillisecond := time.NewTicker(time.Millisecond) 31 | for { 32 | select { 33 | case <-ctx.Done(): 34 | fmt.Println("goroutine exited") 35 | return 36 | case <-everyMillisecond.C: 37 | // do something 38 | } 39 | } 40 | }) 41 | time.Sleep(time.Second) 42 | executor.StopAndWaitForever() 43 | fmt.Println("executor stopped") 44 | ``` 45 | 46 | attach goroutine to executor instance, so that we can 47 | 48 | * cancel it by stop the executor with Stop/StopAndWait/StopAndWaitForever 49 | * handle panic by callback: the default behavior will no longer crash your application -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/safe_type.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | type safeType struct { 9 | reflect.Type 10 | cfg *frozenConfig 11 | } 12 | 13 | func (type2 *safeType) New() interface{} { 14 | return reflect.New(type2.Type).Interface() 15 | } 16 | 17 | func (type2 *safeType) UnsafeNew() unsafe.Pointer { 18 | panic("does not support unsafe operation") 19 | } 20 | 21 | func (type2 *safeType) Elem() Type { 22 | return type2.cfg.Type2(type2.Type.Elem()) 23 | } 24 | 25 | func (type2 *safeType) Type1() reflect.Type { 26 | return type2.Type 27 | } 28 | 29 | func (type2 *safeType) PackEFace(ptr unsafe.Pointer) interface{} { 30 | panic("does not support unsafe operation") 31 | } 32 | 33 | func (type2 *safeType) Implements(thatType Type) bool { 34 | return type2.Type.Implements(thatType.Type1()) 35 | } 36 | 37 | func (type2 *safeType) RType() uintptr { 38 | panic("does not support unsafe operation") 39 | } 40 | 41 | func (type2 *safeType) Indirect(obj interface{}) interface{} { 42 | return reflect.Indirect(reflect.ValueOf(obj)).Interface() 43 | } 44 | 45 | func (type2 *safeType) UnsafeIndirect(ptr unsafe.Pointer) interface{} { 46 | panic("does not support unsafe operation") 47 | } 48 | 49 | func (type2 *safeType) LikePtr() bool { 50 | panic("does not support unsafe operation") 51 | } 52 | 53 | func (type2 *safeType) IsNullable() bool { 54 | return IsNullable(type2.Kind()) 55 | } 56 | 57 | func (type2 *safeType) IsNil(obj interface{}) bool { 58 | if obj == nil { 59 | return true 60 | } 61 | return reflect.ValueOf(obj).Elem().IsNil() 62 | } 63 | 64 | func (type2 *safeType) UnsafeIsNil(ptr unsafe.Pointer) bool { 65 | panic("does not support unsafe operation") 66 | } 67 | 68 | func (type2 *safeType) Set(obj interface{}, val interface{}) { 69 | reflect.ValueOf(obj).Elem().Set(reflect.ValueOf(val).Elem()) 70 | } 71 | 72 | func (type2 *safeType) UnsafeSet(ptr unsafe.Pointer, val unsafe.Pointer) { 73 | panic("does not support unsafe operation") 74 | } 75 | 76 | func (type2 *safeType) AssignableTo(anotherType Type) bool { 77 | return type2.Type1().AssignableTo(anotherType.Type1()) 78 | } 79 | --------------------------------------------------------------------------------