Documentation
¶
Index ¶
- func NewGitHubProvider() func() provider.Provider
- func NewGitHubRepositoryDataSource() datasource.DataSource
- func NewGitHubRepositoryResource() resource.Resource
- type GitHubClientConfiguration
- type GitHubProvider
- func (p *GitHubProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *GitHubProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *GitHubProvider) Functions(ctx context.Context) []func() function.Function
- func (p *GitHubProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *GitHubProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *GitHubProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type GitHubProviderModel
- type GitHubRepositoryDataSource
- func (d *GitHubRepositoryDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *GitHubRepositoryDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *GitHubRepositoryDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *GitHubRepositoryDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type GitHubRepositoryDataSourceModel
- type GitHubRepositoryResource
- func (r *GitHubRepositoryResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *GitHubRepositoryResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *GitHubRepositoryResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *GitHubRepositoryResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *GitHubRepositoryResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *GitHubRepositoryResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *GitHubRepositoryResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *GitHubRepositoryResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type GitHubRepositoryResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitHubProvider ¶
func NewGitHubRepositoryDataSource ¶ added in v0.1.1
func NewGitHubRepositoryDataSource() datasource.DataSource
func NewGitHubRepositoryResource ¶ added in v0.1.1
Types ¶
type GitHubClientConfiguration ¶ added in v0.1.1
type GitHubProvider ¶
type GitHubProvider struct{}
func (*GitHubProvider) Configure ¶
func (p *GitHubProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*GitHubProvider) DataSources ¶
func (p *GitHubProvider) DataSources(_ context.Context) []func() datasource.DataSource
func (*GitHubProvider) Functions ¶ added in v0.0.3
func (p *GitHubProvider) Functions(ctx context.Context) []func() function.Function
func (*GitHubProvider) Metadata ¶
func (p *GitHubProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*GitHubProvider) Resources ¶
func (p *GitHubProvider) Resources(_ context.Context) []func() resource.Resource
func (*GitHubProvider) Schema ¶
func (p *GitHubProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
type GitHubProviderModel ¶
type GitHubRepositoryDataSource ¶ added in v0.1.1
type GitHubRepositoryDataSource struct {
// contains filtered or unexported fields
}
func (*GitHubRepositoryDataSource) Configure ¶ added in v0.1.1
func (d *GitHubRepositoryDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*GitHubRepositoryDataSource) Metadata ¶ added in v0.1.1
func (d *GitHubRepositoryDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*GitHubRepositoryDataSource) Read ¶ added in v0.1.1
func (d *GitHubRepositoryDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*GitHubRepositoryDataSource) Schema ¶ added in v0.1.1
func (d *GitHubRepositoryDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type GitHubRepositoryDataSourceModel ¶ added in v0.1.1
type GitHubRepositoryDataSourceModel struct {
// Arguments
Owner types.String `tfsdk:"owner"`
Name types.String `tfsdk:"name"`
// Attributes
ID types.Int64 `tfsdk:"id"`
NodeID types.String `tfsdk:"node_id"`
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 *linkedRepositoryModel `tfsdk:"parent"`
Source *linkedRepositoryModel `tfsdk:"source"`
TemplateRepository *linkedRepositoryModel `tfsdk:"template_repository"`
Organization *organizationModel `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"`
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"`
Private types.Bool `tfsdk:"private"`
HasIssues types.Bool `tfsdk:"has_issues"`
HasWiki types.Bool `tfsdk:"has_wiki"`
HasPages types.Bool `tfsdk:"has_pages"`
HasProjects types.Bool `tfsdk:"has_projects"`
HasDownloads types.Bool `tfsdk:"has_downloads"`
HasDiscussions types.Bool `tfsdk:"has_discussions"`
IsTemplate types.Bool `tfsdk:"is_template"`
LicenseTemplate types.String `tfsdk:"license_template"`
GitignoreTemplate types.String `tfsdk:"gitignore_template"`
SecurityAndAnalysis *securityAndAnalysisModel `tfsdk:"security_and_analysis"`
TeamID types.Int64 `tfsdk:"team_id"`
URL types.String `tfsdk:"url"`
ArchiveURL types.String `tfsdk:"archive_url"`
AssigneesURL types.String `tfsdk:"assignees_url"`
BlobsURL types.String `tfsdk:"blobs_url"`
BranchesURL types.String `tfsdk:"branches_url"`
CollaboratorsURL types.String `tfsdk:"collaborators_url"`
CommentsURL types.String `tfsdk:"comments_url"`
CommitsURL types.String `tfsdk:"commits_url"`
CompareURL types.String `tfsdk:"compare_url"`
ContentsURL types.String `tfsdk:"contents_url"`
ContributorsURL types.String `tfsdk:"contributors_url"`
DeploymentsURL types.String `tfsdk:"deployments_url"`
DownloadsURL types.String `tfsdk:"downloads_url"`
EventsURL types.String `tfsdk:"events_url"`
ForksURL types.String `tfsdk:"forks_url"`
GitCommitsURL types.String `tfsdk:"git_commits_url"`
GitRefsURL types.String `tfsdk:"git_refs_url"`
GitTagsURL types.String `tfsdk:"git_tags_url"`
HooksURL types.String `tfsdk:"hooks_url"`
IssueCommentURL types.String `tfsdk:"issue_comment_url"`
IssueEventsURL types.String `tfsdk:"issue_events_url"`
IssuesURL types.String `tfsdk:"issues_url"`
KeysURL types.String `tfsdk:"keys_url"`
LabelsURL types.String `tfsdk:"labels_url"`
LanguagesURL types.String `tfsdk:"languages_url"`
MergesURL types.String `tfsdk:"merges_url"`
MilestonesURL types.String `tfsdk:"milestones_url"`
NotificationsURL types.String `tfsdk:"notifications_url"`
PullsURL types.String `tfsdk:"pulls_url"`
ReleasesURL types.String `tfsdk:"releases_url"`
StargazersURL types.String `tfsdk:"stargazers_url"`
StatusesURL types.String `tfsdk:"statuses_url"`
SubscribersURL types.String `tfsdk:"subscribers_url"`
SubscriptionURL types.String `tfsdk:"subscription_url"`
TagsURL types.String `tfsdk:"tags_url"`
TreesURL types.String `tfsdk:"trees_url"`
TeamsURL types.String `tfsdk:"teams_url"`
Visibility types.String `tfsdk:"visibility"`
}
type GitHubRepositoryResource ¶ added in v0.1.1
type GitHubRepositoryResource struct {
// contains filtered or unexported fields
}
func (*GitHubRepositoryResource) Configure ¶ added in v0.1.1
func (r *GitHubRepositoryResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*GitHubRepositoryResource) Create ¶ added in v0.1.1
func (r *GitHubRepositoryResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*GitHubRepositoryResource) Delete ¶ added in v0.1.1
func (r *GitHubRepositoryResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*GitHubRepositoryResource) ImportState ¶ added in v0.1.1
func (r *GitHubRepositoryResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*GitHubRepositoryResource) Metadata ¶ added in v0.1.1
func (r *GitHubRepositoryResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*GitHubRepositoryResource) Read ¶ added in v0.1.1
func (r *GitHubRepositoryResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*GitHubRepositoryResource) Schema ¶ added in v0.1.1
func (r *GitHubRepositoryResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*GitHubRepositoryResource) Update ¶ added in v0.1.1
func (r *GitHubRepositoryResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type GitHubRepositoryResourceModel ¶ added in v0.1.1
type GitHubRepositoryResourceModel struct {
// Arguments
Name types.String `tfsdk:"name"`
Description types.String `tfsdk:"description"`
Homepage types.String `tfsdk:"homepage"`
Private types.Bool `tfsdk:"private"`
HasIssues types.Bool `tfsdk:"has_issues"`
HasProjects types.Bool `tfsdk:"has_projects"`
HasWiki types.Bool `tfsdk:"has_wiki"`
HasDiscussions types.Bool `tfsdk:"has_discussions"`
AutoInit types.Bool `tfsdk:"auto_init"`
GitignoreTemplate types.String `tfsdk:"gitignore_template"`
LicenseTemplate types.String `tfsdk:"license_template"`
AllowSquashMerge types.Bool `tfsdk:"allow_squash_merge"`
AllowMergeCommit types.Bool `tfsdk:"allow_merge_commit"`
AllowRebaseMerge types.Bool `tfsdk:"allow_rebase_merge"`
AllowAutoMerge types.Bool `tfsdk:"allow_auto_merge"`
DeleteBranchOnMerge types.Bool `tfsdk:"delete_branch_on_merge"`
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"`
IsTemplate types.Bool `tfsdk:"is_template"`
// Attributes
ID types.Int64 `tfsdk:"id"`
NodeID types.String `tfsdk:"node_id"`
}
Click to show internal directories.
Click to hide internal directories.