provider

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

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 (*GitProvider) DataSources

func (p *GitProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*GitProvider) Metadata

func (*GitProvider) Resources

func (p *GitProvider) Resources(ctx context.Context) []func() resource.Resource

func (*GitProvider) Schema

type GitRepository

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

GitRepository defines the data source implementation.

func (*GitRepository) Configure

func (*GitRepository) Metadata

func (*GitRepository) Read

func (*GitRepository) Schema

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.

Jump to

Keyboard shortcuts

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