provider

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() provider.Provider

func NewContentResource

func NewContentResource() resource.Resource

func NewSpaceDataSource added in v1.2.0

func NewSpaceDataSource() datasource.DataSource

func NewSpaceResource added in v1.2.0

func NewSpaceResource() resource.Resource

Ensure provider defined types fully satisfy framework interfaces

Types

type ConfluenceProvider

type ConfluenceProvider struct {
}

ConfluenceProvider defines the provider implementation.

func (*ConfluenceProvider) Configure

Configure prepares a Confluence API client for data and resources.

func (*ConfluenceProvider) DataSources

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

func (*ConfluenceProvider) Metadata

Metadata returns the provider type name.

func (*ConfluenceProvider) Resources

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

func (*ConfluenceProvider) Schema

Schema defines the provider-level schema for configuration data.

type ConfluenceProviderModel

type ConfluenceProviderModel struct {
	Host  types.String `tfsdk:"host"`
	User  types.String `tfsdk:"user"`
	Token types.String `tfsdk:"token"`
}

ConfluenceProviderModel describes the provider data model.

type ContentResource

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

ContentResource defines the resource implementation.

func (*ContentResource) Configure

func (*ContentResource) Create

func (*ContentResource) Delete

func (*ContentResource) ImportState

func (*ContentResource) Metadata

func (*ContentResource) Read

func (*ContentResource) Schema

func (*ContentResource) Update

type ContentResourceModel

type ContentResourceModel struct {
	Id    types.String `tfsdk:"id"`
	Type  types.String `tfsdk:"type"`
	Title types.String `tfsdk:"title"`
	Space types.String `tfsdk:"space"`
	Body  types.String `tfsdk:"body"`
}

ContentResourceModel describes the resource data model.

type SpaceDataSourceModel added in v1.2.0

type SpaceDataSourceModel struct {
	Id     types.Int64  `tfsdk:"id"`
	Key    types.String `tfsdk:"key"`
	Name   types.String `tfsdk:"name"`
	Type   types.String `tfsdk:"type"`
	Status types.String `tfsdk:"status"`
}

type SpaceResource added in v1.2.0

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

func (*SpaceResource) Configure added in v1.2.0

func (*SpaceResource) Create added in v1.2.0

func (*SpaceResource) Delete added in v1.2.0

func (*SpaceResource) ImportState added in v1.2.0

func (*SpaceResource) Metadata added in v1.2.0

func (*SpaceResource) Read added in v1.2.0

func (*SpaceResource) Schema added in v1.2.0

func (*SpaceResource) Update added in v1.2.0

type SpaceResourceModel added in v1.2.0

type SpaceResourceModel struct {
	Id          types.Int64  `tfsdk:"id"`
	Key         types.String `tfsdk:"key"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
}

Jump to

Keyboard shortcuts

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