Skip to content

Commit

Permalink
Merge pull request #53 from alrayyes/feat/implement-mockoon
Browse files Browse the repository at this point in the history
docs: add package docs
  • Loading branch information
majidkarimizadeh authored Aug 28, 2024
2 parents 590475a + 914421e commit 4bafe06
Show file tree
Hide file tree
Showing 34 changed files with 53 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/core/domain/dedicated_server/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package dedicated_server implements domain entities for dedicated_servers
package dedicated_server
2 changes: 2 additions & 0 deletions internal/core/domain/public_cloud/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package public_cloud implements domain entities for public_cloud.
package public_cloud
2 changes: 2 additions & 0 deletions internal/core/ports/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package ports contains exposed ports.
package ports
1 change: 1 addition & 0 deletions internal/core/services/dedicated_server/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package dedicated_server implements services related to dedicated_servers
package dedicated_server

import (
Expand Down
1 change: 1 addition & 0 deletions internal/core/services/errors/error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package errors implements errors related to core services.
package errors

import (
Expand Down
1 change: 1 addition & 0 deletions internal/core/services/public_cloud/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package public_cloud implements services related to public_cloud instances
package public_cloud

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/core/shared/enum/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package enum implements enum value objects used by public_cloud
package enum
2 changes: 2 additions & 0 deletions internal/core/shared/enum_utils/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package enum_utils implements generic utils to be used in enum value objects.
package enum_utils
1 change: 1 addition & 0 deletions internal/core/shared/synced_map/synced_map.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package synced_map implements a thread safe map with generics support.
package synced_map

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/core/shared/value_object/go.doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package value_object implements value objects used by public_cloud.
package value_object
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package to_data_source_model implements adapters to convert domain entities to sdk models.
package to_data_source_model

import (
Expand Down
1 change: 1 addition & 0 deletions internal/facades/dedicated_server/facade.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package dedicated_server implements the dedicated_server facade.
package dedicated_server

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package to_data_source_model implements adapters to convert domain entities to sdk models.
package to_data_source_model

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package to_domain_entity implements adapters to convert resource models to domain entities.
package to_domain_entity

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package to_resource_model implements adapters to convert domain entities to resource models.
package to_resource_model

import (
Expand Down
1 change: 1 addition & 0 deletions internal/facades/public_cloud/facade.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package public_cloud implements the public_cloud facade.
package public_cloud

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/facades/shared/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package shared implements utils that facades use.
package shared
1 change: 1 addition & 0 deletions internal/provider/client/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package client implements access to facades.
package client

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package dedicated_servers implements functionality for dedicated_server data sources.
package dedicated_servers
2 changes: 2 additions & 0 deletions internal/provider/data_sources/dedicated_server/model/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package model implements data models for dedicated_server data sources.
package model
2 changes: 2 additions & 0 deletions internal/provider/data_sources/public_cloud/instances/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package instances implements functionality for public_cloud data sources.
package instances
2 changes: 2 additions & 0 deletions internal/provider/data_sources/public_cloud/model/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package model implements data models for public_cloud data sources.
package model
2 changes: 2 additions & 0 deletions internal/provider/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package provider implements the Leaseweb Terraform provider.
package provider
1 change: 1 addition & 0 deletions internal/provider/logging/facade_error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package logging implements logging that the end user sees.
package logging

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/resources/public_cloud/instance/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package instance implements functionality for public_cloud resources.
package instance
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package validator implements validators used by public_cloud resources.
package validator
2 changes: 2 additions & 0 deletions internal/provider/resources/public_cloud/model/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package model implements models for public_cloud resources.
package model
1 change: 1 addition & 0 deletions internal/provider/shared_schemas/public_cloud/schemas.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package public_cloud implements schemas used multiple times in public_cloud data sources & resources.
package public_cloud

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Package to_domain_entity implements adapters to convert dedicated_server sdk models to domain entities.
package to_domain_entity

import (
"github.com/leaseweb/leaseweb-go-sdk/dedicatedServer"
domain "github.com/leaseweb/terraform-provider-leaseweb/internal/core/domain/dedicated_server"
)

// AdaptDedicatedServer adapts an dedicatedServer domain entity to an sdk dedicatedServer model.
// AdaptDedicatedServer adapts dedicatedServer.Server to dedicated_server.DedicatedServer.
func AdaptDedicatedServer(sdkDedicatedServer dedicatedServer.Server) domain.DedicatedServer {
return domain.NewDedicatedServer(
sdkDedicatedServer.GetId(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Package dedicated_server_repository implements repository logic
// to access the dedicated_server sdk.
package dedicated_server_repository

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package to_domain_entity implements adapters to convert public_cloud sdk models to domain entities.
package to_domain_entity

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package to_sdk_model implements adapters to convert public_cloud domain entities to sdk models.
package to_sdk_model

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Package public_cloud_repository implements repository logic
// to access the public_cloud sdk.
package public_cloud_repository

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/repositories/sdk/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package sdk implements interfaces related to the sdk.
package sdk

0 comments on commit 4bafe06

Please sign in to comment.