provider

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubProvider

func NewGitHubProvider() func() provider.Provider

func NewGitHubRepositoryDataSource added in v0.1.1

func NewGitHubRepositoryDataSource() datasource.DataSource

func NewGitHubRepositoryResource added in v0.1.1

func NewGitHubRepositoryResource() resource.Resource

Types

type GitHubClientConfiguration added in v0.1.1

type GitHubClientConfiguration struct {
	Client *github.Client
	Owner  string
}

type GitHubProvider

type GitHubProvider struct{}

func (*GitHubProvider) Configure

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 (*GitHubProvider) Resources

func (p *GitHubProvider) Resources(_ context.Context) []func() resource.Resource

func (*GitHubProvider) Schema

type GitHubProviderModel

type GitHubProviderModel struct {
	Owner types.String `tfsdk:"owner"`
	Token types.String `tfsdk:"token"`
}

type GitHubRepositoryDataSource added in v0.1.1

type GitHubRepositoryDataSource struct {
	// contains filtered or unexported fields
}

func (*GitHubRepositoryDataSource) Configure added in v0.1.1

func (*GitHubRepositoryDataSource) Metadata added in v0.1.1

func (*GitHubRepositoryDataSource) Read added in v0.1.1

func (*GitHubRepositoryDataSource) Schema added in v0.1.1

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 (*GitHubRepositoryResource) Create added in v0.1.1

func (*GitHubRepositoryResource) Delete added in v0.1.1

func (*GitHubRepositoryResource) ImportState added in v0.1.1

func (*GitHubRepositoryResource) Metadata added in v0.1.1

func (*GitHubRepositoryResource) Read added in v0.1.1

func (*GitHubRepositoryResource) Schema added in v0.1.1

func (*GitHubRepositoryResource) Update added in v0.1.1

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL