provider

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MPL-2.0 Imports: 19 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 NewAccountDataSource

func NewAccountDataSource() datasource.DataSource

func NewIdentityFunction

func NewIdentityFunction() function.Function

func NewPostResource

func NewPostResource() resource.Resource

Types

type AccountDataSource

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

AccountDataSource defines the data source implementation.

func (*AccountDataSource) Configure

func (*AccountDataSource) Metadata

func (*AccountDataSource) Read

func (*AccountDataSource) Schema

type AccountDataSourceModel

type AccountDataSourceModel struct {
	Username    types.String `tfsdk:"username"`
	Id          types.String `tfsdk:"id"`
	DisplayName types.String `tfsdk:"display_name"`
	Note        types.String `tfsdk:"note"`
	Locked      types.Bool   `tfsdk:"locked"`
	Bot         types.Bool   `tfsdk:"bot"`
}

AccountDataSourceModel describes the data source data model.

type IdentityFunction

type IdentityFunction struct{}

func (IdentityFunction) Definition

func (IdentityFunction) Metadata

func (IdentityFunction) Run

type MastodonProvider

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

MastodonProvider defines the provider implementation.

func (*MastodonProvider) Configure

func (*MastodonProvider) DataSources

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

func (*MastodonProvider) Functions

func (p *MastodonProvider) Functions(ctx context.Context) []func() function.Function

func (*MastodonProvider) Metadata

func (*MastodonProvider) Resources

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

func (*MastodonProvider) Schema

type MastodonProviderModel

type MastodonProviderModel struct {
	Host         types.String `tfsdk:"host"`
	ClientID     types.String `tfsdk:"client_id"`
	ClientSecret types.String `tfsdk:"client_secret"`
	Email        types.String `tfsdk:"email"`
	Password     types.String `tfsdk:"password"`
	AccessToken  types.String `tfsdk:"access_token"`
}

MastodonProviderModel describes the provider data model.

type PostResource

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

PostResource defines the resource implementation.

func (*PostResource) Configure

func (*PostResource) Create

func (*PostResource) Delete

func (*PostResource) ImportState

func (*PostResource) Metadata

func (*PostResource) Read

func (*PostResource) Schema

func (*PostResource) Update

type PostResourceModel

type PostResourceModel struct {
	Id                types.String `tfsdk:"id"`
	CreatedAt         types.String `tfsdk:"created_at"`
	Account           types.String `tfsdk:"account"`
	Content           types.String `tfsdk:"content"`
	Visibility        types.String `tfsdk:"visibility"`
	Sensitive         types.Bool   `tfsdk:"sensitive"`
	PreserveOnDestroy types.Bool   `tfsdk:"preserve_on_destroy"`
}

PostResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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