File tree Expand file tree Collapse file tree 27 files changed +2375
-5
lines changed Expand file tree Collapse file tree 27 files changed +2375
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3
3
4
4
GOFMT ?= gofmt -s
5
5
6
+ VERSION = 0.6.1
7
+
6
8
test : fmt-check
7
9
go test -i $(TEST ) || exit 1
8
10
echo $(TEST ) | \
@@ -28,3 +30,12 @@ fmt-check:
28
30
echo " $$ {diff}" ; \
29
31
exit 1; \
30
32
fi ;
33
+ build :
34
+ go build -o terraform-provider-gitea_${VERSION}
35
+ install : build
36
+ @echo installing to
37
+ @echo ~ /.terraform.d/plugins/terraform.local/local/gitea/${VERSION} /linux_amd64/terraform-provider-gitea_${VERSION}
38
+ @mkdir -p ~ /.terraform.d/plugins/terraform.local/local/gitea/${VERSION} /linux_amd64
39
+ @mv terraform-provider-gitea_${VERSION} ~ /.terraform.d/plugins/terraform.local/local/gitea/${VERSION} /linux_amd64/terraform-provider-gitea_${VERSION}
40
+ doc :
41
+ tfplugindocs
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " gitea_org Data Source - terraform-provider-gitea"
4
+ subcategory : " "
5
+ description : |-
6
+
7
+ ---
8
+
9
+ # gitea_org (Data Source)
10
+
11
+
12
+
13
+
14
+
15
+ <!-- schema generated by tfplugindocs -->
16
+ ## Schema
17
+
18
+ ### Optional
19
+
20
+ - ` name ` (String)
21
+
22
+ ### Read-Only
23
+
24
+ - ` avatar_url ` (String)
25
+ - ` description ` (String)
26
+ - ` full_name ` (String)
27
+ - ` id ` (Number) The ID of this resource.
28
+ - ` location ` (String)
29
+ - ` visibility ` (String)
30
+ - ` website ` (String)
31
+
32
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " gitea_repo Data Source - terraform-provider-gitea"
4
+ subcategory : " "
5
+ description : |-
6
+
7
+ ---
8
+
9
+ # gitea_repo (Data Source)
10
+
11
+
12
+
13
+
14
+
15
+ <!-- schema generated by tfplugindocs -->
16
+ ## Schema
17
+
18
+ ### Required
19
+
20
+ - ` name ` (String)
21
+ - ` username ` (String)
22
+
23
+ ### Read-Only
24
+
25
+ - ` clone_url ` (String)
26
+ - ` created ` (String)
27
+ - ` default_branch ` (String)
28
+ - ` description ` (String)
29
+ - ` fork ` (Boolean)
30
+ - ` forks ` (Number)
31
+ - ` full_name ` (String)
32
+ - ` html_url ` (String)
33
+ - ` id ` (String) The ID of this resource.
34
+ - ` mirror ` (Boolean)
35
+ - ` open_issue_count ` (Number)
36
+ - ` permission_admin ` (Boolean)
37
+ - ` permission_pull ` (Boolean)
38
+ - ` permission_push ` (Boolean)
39
+ - ` private ` (Boolean)
40
+ - ` size ` (Number)
41
+ - ` ssh_url ` (String)
42
+ - ` stars ` (Number)
43
+ - ` updated ` (String)
44
+ - ` watchers ` (Number)
45
+ - ` website ` (String)
46
+
47
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " gitea_user Data Source - terraform-provider-gitea"
4
+ subcategory : " "
5
+ description : |-
6
+
7
+ ---
8
+
9
+ # gitea_user (Data Source)
10
+
11
+
12
+
13
+
14
+
15
+ <!-- schema generated by tfplugindocs -->
16
+ ## Schema
17
+
18
+ ### Optional
19
+
20
+ - ` username ` (String)
21
+
22
+ ### Read-Only
23
+
24
+ - ` avatar_url ` (String)
25
+ - ` created ` (String)
26
+ - ` email ` (String)
27
+ - ` full_name ` (String)
28
+ - ` id ` (Number) The ID of this resource.
29
+ - ` is_admin ` (Boolean)
30
+ - ` language ` (String)
31
+ - ` last_login ` (String)
32
+
33
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " gitea Provider"
4
+ subcategory : " "
5
+ description : |-
6
+
7
+ ---
8
+
9
+ # gitea Provider
10
+
11
+
12
+
13
+ ## Example Usage
14
+
15
+ ``` terraform
16
+ terraform {
17
+ required_providers {
18
+ gitea = {
19
+ source = "gitea/gitea"
20
+ version = "0.6.1"
21
+ }
22
+ }
23
+ }
24
+
25
+ provider "gitea" {
26
+ base_url = var.gitea_url # optionally use GITEA_BASE_URL env var
27
+ token = var.gitea_token # optionally use GITEA_TOKEN env var
28
+
29
+ # Username/Password authentication is mutally exclusive with token authentication
30
+ # username = var.username # optionally use GITEA_USERNAME env var
31
+ # password = var.password # optionally use GITEA_PASSWORD env var
32
+
33
+ # A file containing the ca certificate to use in case ssl certificate is not from a standard chain
34
+ cacert_file = var.cacert_file
35
+
36
+ # If you are running a gitea instance with self signed TLS certificates
37
+ # and you want to disable certificate validation you can deactivate it with this flag
38
+ insecure = false
39
+ }
40
+ ```
41
+
42
+ <!-- schema generated by tfplugindocs -->
43
+ ## Schema
44
+
45
+ ### Optional
46
+
47
+ - ` base_url ` (String) The Gitea Base API URL
48
+ - ` cacert_file ` (String) A file containing the ca certificate to use in case ssl certificate is not from a standard chain
49
+ - ` insecure ` (Boolean) Disable SSL verification of API calls
50
+ - ` password ` (String) Password in case of using basic auth
51
+ - ` token ` (String) The application token used to connect to Gitea.
52
+ - ` username ` (String) Username in case of using basic auth
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " gitea_oauth2_app Resource - terraform-provider-gitea"
4
+ subcategory : " "
5
+ description : |-
6
+ Handling gitea oauth application https://docs.gitea.io/en-us/oauth2-provider/ resources
7
+ ---
8
+
9
+ # gitea_oauth2_app (Resource)
10
+
11
+ Handling [ gitea oauth application] ( https://docs.gitea.io/en-us/oauth2-provider/ ) resources
12
+
13
+
14
+
15
+ <!-- schema generated by tfplugindocs -->
16
+ ## Schema
17
+
18
+ ### Required
19
+
20
+ - ` name ` (String) OAuth Application name
21
+ - ` redirect_uris ` (Set of String) Accepted redirect URIs
22
+
23
+ ### Read-Only
24
+
25
+ - ` client_id ` (String) OAuth2 Application client id
26
+ - ` client_secret ` (String, Sensitive) Oauth2 Application client secret
27
+ - ` id ` (String) The ID of this resource.
28
+
29
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " gitea_org Resource - terraform-provider-gitea"
4
+ subcategory : " "
5
+ description : |-
6
+ gitea_org manages a gitea organisation.
7
+ Organisations are a way to group repositories and abstract permission management in a gitea instance.
8
+ ---
9
+
10
+ # gitea_org (Resource)
11
+
12
+ ` gitea_org ` manages a gitea organisation.
13
+
14
+ Organisations are a way to group repositories and abstract permission management in a gitea instance.
15
+
16
+ ## Example Usage
17
+
18
+ ``` terraform
19
+ resource "gitea_org" "test_org" {
20
+ name = "test-org"
21
+ }
22
+
23
+ resource "gitea_repository" "org_repo" {
24
+ username = gitea_org.test_org.name
25
+ name = "org-test-repo"
26
+ }
27
+ ```
28
+
29
+ <!-- schema generated by tfplugindocs -->
30
+ ## Schema
31
+
32
+ ### Required
33
+
34
+ - ` name ` (String) The name of the organisation without spaces.
35
+
36
+ ### Optional
37
+
38
+ - ` description ` (String) A description of this organisation.
39
+ - ` full_name ` (String) The display name of the organisation. Defaults to the value of ` name ` .
40
+ - ` location ` (String)
41
+ - ` repo_admin_change_team_access ` (Boolean)
42
+ - ` visibility ` (String) Flag is this organisation should be publicly visible or not.
43
+ - ` website ` (String) A link to a website with more information about this organisation.
44
+
45
+ ### Read-Only
46
+
47
+ - ` avatar_url ` (String)
48
+ - ` id ` (String) The ID of this resource.
49
+
50
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ # generated by https://github.com/hashicorp/terraform-plugin-docs
3
+ page_title : " gitea_public_key Resource - terraform-provider-gitea"
4
+ subcategory : " "
5
+ description : |-
6
+ gitea_public_key manages ssh key that are associated with users.
7
+ ---
8
+
9
+ # gitea_public_key (Resource)
10
+
11
+ ` gitea_public_key ` manages ssh key that are associated with users.
12
+
13
+ ## Example Usage
14
+
15
+ ``` terraform
16
+ resource "gitea_user" "test" {
17
+ username = "test"
18
+ login_name = "test"
19
+ password = "Geheim1!"
20
+
21
+ must_change_password = false
22
+ }
23
+
24
+
25
+ resource "gitea_public_key" "test_user_key" {
26
+ title = "test"
27
+ key = file("${path.module}/id_ed25519.pub")
28
+ username = gitea_user.test.username
29
+ }
30
+ ```
31
+
32
+ <!-- schema generated by tfplugindocs -->
33
+ ## Schema
34
+
35
+ ### Required
36
+
37
+ - ` key ` (String, Sensitive) An armored SSH key to add
38
+ - ` title ` (String) Title of the key to add
39
+ - ` username ` (String) User to associate with the added key
40
+
41
+ ### Optional
42
+
43
+ - ` read_only ` (Boolean) Describe if the key has only read access or read/write
44
+
45
+ ### Read-Only
46
+
47
+ - ` created ` (String)
48
+ - ` fingerprint ` (String)
49
+ - ` id ` (String) The ID of this resource.
50
+ - ` type ` (String)
51
+
52
+
You can’t perform that action at this time.
0 commit comments