provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MPL-2.0 Imports: 23 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 NewProjectResource

func NewProjectResource() resource.Resource

Types

type PostHogProvider

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

func (*PostHogProvider) Configure

func (*PostHogProvider) DataSources

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

func (*PostHogProvider) Metadata

func (*PostHogProvider) Resources

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

func (*PostHogProvider) Schema

type PostHogProviderModel

type PostHogProviderModel struct {
	Token types.String `tfsdk:"token"`
}

type Project

type Project struct {
	Id           int64  `json:"id"`
	Name         string `json:"name"`
	Organization string `json:"organization"`
	ApiToken     string `json:"api_token"`
}

type ProjectCreateInput

type ProjectCreateInput struct {
	Name string `json:"name"`
}

type ProjectResource

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

func (*ProjectResource) Configure

func (*ProjectResource) Create

func (*ProjectResource) Delete

func (*ProjectResource) ImportState

func (*ProjectResource) Metadata

func (*ProjectResource) Read

func (*ProjectResource) Schema

func (*ProjectResource) Update

type ProjectResourceModel

type ProjectResourceModel struct {
	Id             types.Int64  `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	OrganizationId types.String `tfsdk:"organization_id"`
	Token          types.String `tfsdk:"token"`
}

Jump to

Keyboard shortcuts

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