provider

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MPL-2.0 Imports: 24 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 NewListDataSource

func NewListDataSource() datasource.DataSource

Types

type ListDataSource

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

ListDataSource defines the data source implementation.

func (*ListDataSource) Configure

func (*ListDataSource) Metadata

func (*ListDataSource) Read

func (*ListDataSource) Schema

type ListDataSourceModel

type ListDataSourceModel struct {
	Endpoint       types.String `tfsdk:"endpoint"`
	Filter         types.Map    `tfsdk:"filter"`
	List           types.List   `tfsdk:"list"`
	List4          types.List   `tfsdk:"list4"`
	List6          types.List   `tfsdk:"list6"`
	ListNoCIDR     types.List   `tfsdk:"list_no_cidr"`
	AsCIDR         types.Bool   `tfsdk:"as_cidr"`
	Family         types.Int64  `tfsdk:"family"`
	NoCIDRSingleIP types.Bool   `tfsdk:"no_cidr_single_ip"`
	Summarize      types.Bool   `tfsdk:"summarize"`
	Min            types.Int64  `tfsdk:"min"`
	Max            types.Int64  `tfsdk:"max"`
	SplitAF        types.Bool   `tfsdk:"split_af"`
	ID             types.String `tfsdk:"id"`
}

ListDataSourceModel describes the data source data model.

type NBListsProvider

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

NBListsProvider defines the provider implementation.

func (*NBListsProvider) Configure

func (*NBListsProvider) DataSources

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

func (*NBListsProvider) Metadata

func (*NBListsProvider) Resources

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

func (*NBListsProvider) Schema

type NBListsProviderModel

type NBListsProviderModel struct {
	URL              types.String `tfsdk:"url"`
	Token            types.String `tfsdk:"token"`
	ListsPath        types.String `tfsdk:"lists_path"`
	AllowEmptyFilter types.Bool   `tfsdk:"allow_empty_filter"`
	RequestTimeout   types.Int64  `tfsdk:"request_timeout"`
}

ScaffoldingProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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