Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwillis committed Mar 1, 2024
1 parent 7d0b150 commit 64fa541
Show file tree
Hide file tree
Showing 281 changed files with 13,654 additions and 42,138 deletions.
17 changes: 10 additions & 7 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ test:

GOPATH := $(shell go env GOPATH)

$(GOPATH)/bin/swagger:
go install github.com/go-swagger/go-swagger/cmd/[email protected]
$(GOPATH)/bin/oapi-codegen:
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest

swagger/public.swagger.json: $(GOPATH)/bin/swagger
swagger/openapi.yaml: $(GOPATH)/bin/oapi-codegen

internal/client internal/models: swagger/public.swagger.json
@swagger generate client -f swagger/public.swagger.json -t internal
internal/compute/client.gen.go: swagger/openapi.yaml
@oapi-codegen -generate client -o internal/compute/client.gen.go -package compute swagger/openapi.yaml

internal/compute/types.gen.go: swagger/openapi.yaml
@oapi-codegen -generate types -o internal/compute/types.gen.go -package compute swagger/openapi.yaml

docs: $(wildcard examples/*)
@go generate ./...

codegen: internal/client internal/models docs
codegen: docs internal/compute/client.gen.go

clean:
@rm -rf docs internal/client internal/models
@rm -rf docs internal/compute/client.gen.go
34 changes: 0 additions & 34 deletions docs/data-sources/network.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/data-sources/security_group.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/data-sources/vm.md

This file was deleted.

33 changes: 0 additions & 33 deletions docs/data-sources/vm_data_centers.md

This file was deleted.

35 changes: 0 additions & 35 deletions docs/data-sources/vm_images.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/index.md

This file was deleted.

36 changes: 0 additions & 36 deletions docs/resources/network.md

This file was deleted.

65 changes: 0 additions & 65 deletions docs/resources/security_group.md

This file was deleted.

Loading

0 comments on commit 64fa541

Please sign in to comment.