Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto generated data source for Daemon #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/data-sources/daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ Daemon data source

### Required

- `server_id` (Number)
- `server_id` (Number) The ID of the server.

### Read-Only

- `command` (String)
- `command` (String) Undocumented parameter, example: `COMMAND`.
- `created_at` (String)
- `directory` (String)
- `directory` (String) Undocumented parameter, example: `/home/forge/foo.com`.
- `id` (Number) The ID of this resource.
- `processes` (Number)
- `startsecs` (Number)
- `status` (String)
- `stopsignal` (String)
- `stopwaitsecs` (Number)
- `user` (String)
- `user` (String) Undocumented parameter, example: `root`.


8 changes: 4 additions & 4 deletions internal/provider/daemon_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ func (d *DaemonDataSource) Schema(ctx context.Context, req datasource.SchemaRequ
Required: true,
},
"command": schema.StringAttribute{
MarkdownDescription: "",
MarkdownDescription: "Undocumented parameter, example: `COMMAND`.",
Computed: true,
},
"user": schema.StringAttribute{
MarkdownDescription: "",
MarkdownDescription: "Undocumented parameter, example: `root`.",
Computed: true,
},
"directory": schema.StringAttribute{
MarkdownDescription: "",
MarkdownDescription: "Undocumented parameter, example: `/home/forge/foo.com`.",
Computed: true,
},
"processes": schema.Int64Attribute{
Expand Down Expand Up @@ -88,7 +88,7 @@ func (d *DaemonDataSource) Schema(ctx context.Context, req datasource.SchemaRequ
Computed: true,
},
"server_id": schema.Int64Attribute{
MarkdownDescription: "",
MarkdownDescription: "The ID of the server.",
Required: true,
},
},
Expand Down