-
Notifications
You must be signed in to change notification settings - Fork 0
/
getRepository.go
102 lines (97 loc) · 3.48 KB
/
getRepository.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package github
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to retrieve information about a GitHub repository.
//
// > This content is derived from https://github.com/terraform-providers/terraform-provider-github/blob/master/website/docs/d/repository.html.markdown.
func LookupRepository(ctx *pulumi.Context, args *GetRepositoryArgs) (*GetRepositoryResult, error) {
inputs := make(map[string]interface{})
if args != nil {
inputs["fullName"] = args.FullName
inputs["name"] = args.Name
}
outputs, err := ctx.Invoke("github:index/getRepository:getRepository", inputs)
if err != nil {
return nil, err
}
return &GetRepositoryResult{
AllowMergeCommit: outputs["allowMergeCommit"],
AllowRebaseMerge: outputs["allowRebaseMerge"],
AllowSquashMerge: outputs["allowSquashMerge"],
Archived: outputs["archived"],
DefaultBranch: outputs["defaultBranch"],
Description: outputs["description"],
FullName: outputs["fullName"],
GitCloneUrl: outputs["gitCloneUrl"],
HasDownloads: outputs["hasDownloads"],
HasIssues: outputs["hasIssues"],
HasProjects: outputs["hasProjects"],
HasWiki: outputs["hasWiki"],
HomepageUrl: outputs["homepageUrl"],
HtmlUrl: outputs["htmlUrl"],
HttpCloneUrl: outputs["httpCloneUrl"],
Name: outputs["name"],
Private: outputs["private"],
SshCloneUrl: outputs["sshCloneUrl"],
SvnUrl: outputs["svnUrl"],
Topics: outputs["topics"],
Id: outputs["id"],
}, nil
}
// A collection of arguments for invoking getRepository.
type GetRepositoryArgs struct {
// Full name of the repository (in `org/name` format).
FullName interface{}
// The name of the repository.
Name interface{}
}
// A collection of values returned by getRepository.
type GetRepositoryResult struct {
// Whether the repository allows merge commits.
AllowMergeCommit interface{}
// Whether the repository allows rebase merges.
AllowRebaseMerge interface{}
// Whether the repository allows squash merges.
AllowSquashMerge interface{}
// Whether the repository is archived.
Archived interface{}
// The name of the default branch of the repository.
DefaultBranch interface{}
// A description of the repository.
Description interface{}
FullName interface{}
// URL that can be provided to `git clone` to clone the
// repository anonymously via the git protocol.
GitCloneUrl interface{}
// Whether the repository has Downloads feature enabled.
HasDownloads interface{}
// Whether the repository has GitHub Issues enabled.
HasIssues interface{}
// Whether the repository has the GitHub Projects enabled.
HasProjects interface{}
// Whether the repository has the GitHub Wiki enabled.
HasWiki interface{}
// URL of a page describing the project.
HomepageUrl interface{}
// URL to the repository on the web.
HtmlUrl interface{}
// URL that can be provided to `git clone` to clone the
// repository via HTTPS.
HttpCloneUrl interface{}
Name interface{}
// Whether the repository is private.
Private interface{}
// URL that can be provided to `git clone` to clone the
// repository via SSH.
SshCloneUrl interface{}
// URL that can be provided to `svn checkout` to check out
// the repository via GitHub's Subversion protocol emulation.
SvnUrl interface{}
// The list of topics of the repository.
Topics interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}