provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 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(version string) func() provider.Provider

func NewVideoDataSource

func NewVideoDataSource() datasource.DataSource

func NewVideoResource

func NewVideoResource() resource.Resource

Types

type VideoDataSource

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

VideoDataSource defines the data source implementation.

func (*VideoDataSource) Configure

func (*VideoDataSource) Metadata

func (*VideoDataSource) Read

func (*VideoDataSource) Schema

type VideoDataSourceModel

type VideoDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Res         types.String `tfsdk:"res"`
	Title       types.String `tfsdk:"title"`
	Description types.String `tfsdk:"description"`
}

VideoDataSourceModel describes the data source data model.

type VideoResource

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

VideoResource defines the data source implementation.

func (*VideoResource) Configure

func (*VideoResource) Create

Create implements resource.Resource.

func (*VideoResource) Delete

Delete implements resource.Resource.

func (*VideoResource) ImportState

ImportState implements resource.ResourceWithImportState.

func (*VideoResource) Metadata

func (*VideoResource) Read

func (*VideoResource) Schema

func (*VideoResource) Update

Update implements resource.Resource.

type VideoResourceModel

type VideoResourceModel struct {
	Id          types.String `tfsdk:"id"`
	Res         types.String `tfsdk:"res"`
	Title       types.String `tfsdk:"title"`
	Description types.String `tfsdk:"description"`
}

VideoResourceModel describes the data source data model.

type YoutubeProvider

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

YoutubeProvider defines the provider implementation.

func (*YoutubeProvider) Configure

func (*YoutubeProvider) DataSources

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

func (*YoutubeProvider) Functions

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

func (*YoutubeProvider) Metadata

func (*YoutubeProvider) Resources

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

func (*YoutubeProvider) Schema

type YoutubeProviderModel

type YoutubeProviderModel struct {
	AccessToken types.String `tfsdk:"access_token"`
}

YoutubeProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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