git clone https://github.com/shirasakaren/terraform-provider-biznetgio.gitcd terraform-provider-biznetgiomake build # go build ./... - nulis ./terraform-provider-biznetgio di root repo, bukan folder bin/make install # go install into GOPATH/bin, for use with dev_overridesmake lint # golangci-lintmake test # unit testsmake testacc # acceptance tests (TF_ACC=1, hits the real API, 120m timeout)make generate # regenerate docs/ with terraform-plugin-docs
Arahin Terraform ke binary development lewat dev_overrides di file config CLI lu (cek Installation buat contohnya).Struktur: internal/provider/ (resources, data sources, schema provider), internal/biznetgio/ (API client), examples/ (contoh provider/resource/data-source yang dipake buat generate docs), docs/ (referensi hasil generate).Acceptance tests butuh BIZNETGIO_API_KEY di-export; create bakal ngebuat order beneran di akun.
git clone https://github.com/shirasakaren/pulumi-biznetgio.gitcd pulumi-biznetgiomake provider # cuma build bin/pulumi-resource-biznetgio - provider binary Go doangmake build # build provider DAN regenerate + build kelima SDKmake install # copy provider binary ke GOPATH/bin dan link SDK Node dan .NETmake lintmake test_provider # unit test providermake build_nodejs # regenerate schema, rebuild provider, terus build SDK TypeScript
make build bukan cuma build provider Go-nya - dia juga build kelima SDK bahasa (dotnet_sdk go_sdk nodejs_sdk python_sdk java_sdk), yang butuh dotnet, yarn/Node, python3, dan gradle terinstall lokal selain Go. Kalau lu cuma mau provider binary-nya, pake make provider. make build_nodejs juga punya prasyarat tersembunyi: dia regenerate schema Pulumi dulu (butuh CLI pulumi dan jq), dan rebuild provider binary sebelum nyentuh SDK nodejs.
Struktur: provider/ (resources, functions, config), provider/client/ (API client), sdk/ (SDK nodejs/python/go/dotnet/java hasil generate), examples/ (satu program per bahasa yang ngarah ke SDK lokal), tests/ (unit tests).Development lokal pake SDK bahasa di sdk/<lang> - arahin contoh project ke situ lewat file:../../sdk/nodejs/bin (Node) atau pip install -e sdk/python.
API reference
Kedua provider nge-wrap Biznet GIO Portal API. Environment staging (https://api.portal.biznetgio.dev/v1) tersedia buat testing endpoint baru.
Contributing
Buka issues dan pull requests di repo masing-masing: