Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewGitRepository() datasource.DataSource
- type GitProvider
- func (p *GitProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *GitProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *GitProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *GitProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *GitProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type GitRepository
- func (d *GitRepository) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *GitRepository) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *GitRepository) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *GitRepository) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type GitRepositoryModel
- type ScaffoldingProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitRepository ¶
func NewGitRepository() datasource.DataSource
Types ¶
type GitProvider ¶
type GitProvider struct {
// contains filtered or unexported fields
}
GitProvider defines the provider implementation.
func (*GitProvider) Configure ¶
func (p *GitProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*GitProvider) DataSources ¶
func (p *GitProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*GitProvider) Metadata ¶
func (p *GitProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*GitProvider) Resources ¶
func (p *GitProvider) Resources(ctx context.Context) []func() resource.Resource
func (*GitProvider) Schema ¶
func (p *GitProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type GitRepository ¶
type GitRepository struct {
// contains filtered or unexported fields
}
GitRepository defines the data source implementation.
func (*GitRepository) Configure ¶
func (d *GitRepository) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*GitRepository) Metadata ¶
func (d *GitRepository) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*GitRepository) Read ¶
func (d *GitRepository) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*GitRepository) Schema ¶
func (d *GitRepository) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type GitRepositoryModel ¶
type GitRepositoryModel struct { Id types.String `tfsdk:"id"` Path types.String `tfsdk:"path"` Reference types.String `tfsdk:"ref"` ReferenceShort types.String `tfsdk:"ref_short"` Summary types.String `tfsdk:"summary"` Branch types.String `tfsdk:"branch"` Tag types.String `tfsdk:"tag"` IsDirty types.Bool `tfsdk:"is_dirty"` IsTag types.Bool `tfsdk:"is_tag"` IsBranch types.Bool `tfsdk:"is_branch"` IsRemote types.Bool `tfsdk:"is_remote"` HasTag types.Bool `tfsdk:"has_tag"` CommitCount types.Int64 `tfsdk:"commit_count"` Semver types.String `tfsdk:"semver"` SemverFallbackTag types.String `tfsdk:"semver_fallback_tag"` ReferenceShortLength types.Int64 `tfsdk:"ref_short_length"` }
GitRepositoryModel describes the data source data model.
type ScaffoldingProviderModel ¶
type ScaffoldingProviderModel struct{}
ScaffoldingProviderModel describes the provider data model.
Click to show internal directories.
Click to hide internal directories.