Documentation
¶
Index ¶
- func NewGitHubRepository() datasource.DataSource
- type GitHubRepository
- func (d *GitHubRepository) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *GitHubRepository) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *GitHubRepository) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *GitHubRepository) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type GitHubRepositoryModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitHubRepository ¶
func NewGitHubRepository() datasource.DataSource
Types ¶
type GitHubRepository ¶
type GitHubRepository struct {
// contains filtered or unexported fields
}
func (*GitHubRepository) Configure ¶
func (d *GitHubRepository) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*GitHubRepository) Metadata ¶
func (d *GitHubRepository) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*GitHubRepository) Read ¶
func (d *GitHubRepository) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*GitHubRepository) Schema ¶
func (d *GitHubRepository) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type GitHubRepositoryModel ¶
type GitHubRepositoryModel struct {
Owner types.String `tfsdk:"owner"`
Repo types.String `tfsdk:"repo"`
Id types.Int64 `tfsdk:"id"`
NodeID types.String `tfsdk:"node_id"`
Name types.String `tfsdk:"name"`
FullName types.String `tfsdk:"full_name"`
Description types.String `tfsdk:"description"`
Homepage types.String `tfsdk:"homepage"`
DefaultBranch types.String `tfsdk:"default_branch"`
MasterBranch types.String `tfsdk:"master_branch"`
CreatedAt timetypes.RFC3339 `tfsdk:"created_at"`
PushedAt timetypes.RFC3339 `tfsdk:"pushed_at"`
UpdatedAt timetypes.RFC3339 `tfsdk:"updated_at"`
HTMLURL types.String `tfsdk:"html_url"`
CloneURL types.String `tfsdk:"clone_url"`
GitURL types.String `tfsdk:"git_url"`
MirrorURL types.String `tfsdk:"mirror_url"`
SSHURL types.String `tfsdk:"ssh_url"`
SVNURL types.String `tfsdk:"svn_url"`
Language types.String `tfsdk:"language"`
Fork types.Bool `tfsdk:"fork"`
ForksCount types.Int64 `tfsdk:"forks_count"`
NetworkCount types.Int64 `tfsdk:"network_count"`
OpenIssuesCount types.Int64 `tfsdk:"open_issues_count"`
StargazersCount types.Int64 `tfsdk:"stargazers_count"`
SubscribersCount types.Int64 `tfsdk:"subscribers_count"`
Size types.Int64 `tfsdk:"size"`
AutoInit types.Bool `tfsdk:"auto_init"`
Parent types.String `tfsdk:"parent"`
Source types.String `tfsdk:"source"`
TemplateRepository types.String `tfsdk:"template_repository"`
Organization types.String `tfsdk:"organization"`
Permissions *permissionsModel `tfsdk:"permissions"`
AllowRebaseMerge types.Bool `tfsdk:"allow_rebase_merge"`
AllowUpdateBranch types.Bool `tfsdk:"allow_update_branch"`
AllowSquashMerge types.Bool `tfsdk:"allow_squash_merge"`
AllowMergeCommit types.Bool `tfsdk:"allow_merge_commit"`
AllowAutoMerge types.Bool `tfsdk:"allow_auto_merge"`
AllowForking types.Bool `tfsdk:"allow_forking"`
WebCommitSignoffRequired types.Bool `tfsdk:"web_commit_signoff_required"`
DeleteBranchOnMerge types.Bool `tfsdk:"delete_branch_on_merge"`
UseSquashPRTitleAsDefault types.Bool `tfsdk:"use_squash_pr_title_as_default"`
SquashMergeCommitTitle types.String `tfsdk:"squash_merge_commit_title"`
SquashMergeCommitMessage types.String `tfsdk:"squash_merge_commit_message"`
MergeCommitTitle types.String `tfsdk:"merge_commit_title"`
MergeCommitMessage types.String `tfsdk:"merge_commit_message"`
Topics types.List `tfsdk:"topics"`
Archived types.Bool `tfsdk:"archived"`
Disabled types.Bool `tfsdk:"disabled"`
}
Click to show internal directories.
Click to hide internal directories.