provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YangPatch = false
)

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewDeviceConfigDataSource

func NewDeviceConfigDataSource() datasource.DataSource

func NewDeviceConfigResource

func NewDeviceConfigResource() resource.Resource

func NewDeviceDataSource

func NewDeviceDataSource() datasource.DataSource

func NewDeviceGroupDataSource

func NewDeviceGroupDataSource() datasource.DataSource

func NewDeviceGroupResource

func NewDeviceGroupResource() resource.Resource

func NewDeviceResource

func NewDeviceResource() resource.Resource

func NewRestconfDataSource

func NewRestconfDataSource() datasource.DataSource

func NewRestconfResource

func NewRestconfResource() resource.Resource

Types

type Device

type Device struct {
	Instance     types.String `tfsdk:"instance"`
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	Address      types.String `tfsdk:"address"`
	Port         types.Int64  `tfsdk:"port"`
	Authgroup    types.String `tfsdk:"authgroup"`
	AdminState   types.String `tfsdk:"admin_state"`
	NetconfNetId types.String `tfsdk:"netconf_net_id"`
	CliNedId     types.String `tfsdk:"cli_ned_id"`
}

type DeviceConfig

type DeviceConfig struct {
	Instance   types.String       `tfsdk:"instance"`
	Id         types.String       `tfsdk:"id"`
	Device     types.String       `tfsdk:"device"`
	Path       types.String       `tfsdk:"path"`
	Delete     types.Bool         `tfsdk:"delete"`
	Attributes types.Map          `tfsdk:"attributes"`
	Lists      []DeviceConfigList `tfsdk:"lists"`
}

type DeviceConfigData

type DeviceConfigData struct {
	Instance   types.String `tfsdk:"instance"`
	Id         types.String `tfsdk:"id"`
	Device     types.String `tfsdk:"device"`
	Path       types.String `tfsdk:"path"`
	Attributes types.Map    `tfsdk:"attributes"`
}

type DeviceConfigDataSource

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

func (*DeviceConfigDataSource) Configure

func (*DeviceConfigDataSource) Metadata

func (*DeviceConfigDataSource) Read

func (*DeviceConfigDataSource) Schema

type DeviceConfigList

type DeviceConfigList struct {
	Name   types.String `tfsdk:"name"`
	Key    types.String `tfsdk:"key"`
	Items  []types.Map  `tfsdk:"items"`
	Values types.List   `tfsdk:"values"`
}

type DeviceConfigResource

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

func (*DeviceConfigResource) Configure

func (*DeviceConfigResource) Create

func (*DeviceConfigResource) Delete

func (*DeviceConfigResource) ImportState

func (*DeviceConfigResource) Metadata

func (*DeviceConfigResource) Read

func (*DeviceConfigResource) Schema

func (*DeviceConfigResource) Update

type DeviceData

type DeviceData struct {
	Instance     types.String `tfsdk:"instance"`
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	Address      types.String `tfsdk:"address"`
	Port         types.Int64  `tfsdk:"port"`
	Authgroup    types.String `tfsdk:"authgroup"`
	AdminState   types.String `tfsdk:"admin_state"`
	NetconfNetId types.String `tfsdk:"netconf_net_id"`
	CliNedId     types.String `tfsdk:"cli_ned_id"`
}

type DeviceDataSource

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

func (*DeviceDataSource) Configure

func (*DeviceDataSource) Metadata

func (*DeviceDataSource) Read

func (*DeviceDataSource) Schema

type DeviceGroup

type DeviceGroup struct {
	Instance     types.String `tfsdk:"instance"`
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	DeviceNames  types.List   `tfsdk:"device_names"`
	DeviceGroups types.List   `tfsdk:"device_groups"`
}

type DeviceGroupData

type DeviceGroupData struct {
	Instance     types.String `tfsdk:"instance"`
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	DeviceNames  types.List   `tfsdk:"device_names"`
	DeviceGroups types.List   `tfsdk:"device_groups"`
}

type DeviceGroupDataSource

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

func (*DeviceGroupDataSource) Configure

func (*DeviceGroupDataSource) Metadata

func (*DeviceGroupDataSource) Read

func (*DeviceGroupDataSource) Schema

type DeviceGroupResource

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

func (*DeviceGroupResource) Configure

func (*DeviceGroupResource) Create

func (*DeviceGroupResource) Delete

func (*DeviceGroupResource) ImportState

func (*DeviceGroupResource) Metadata

func (*DeviceGroupResource) Read

func (*DeviceGroupResource) Schema

func (*DeviceGroupResource) Update

type DeviceResource

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

func (*DeviceResource) Configure

func (*DeviceResource) Create

func (*DeviceResource) Delete

func (*DeviceResource) ImportState

func (*DeviceResource) Metadata

func (*DeviceResource) Read

func (*DeviceResource) Schema

func (*DeviceResource) Update

type NsoProvider

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

NsoProvider defines the provider implementation.

func (*NsoProvider) Configure

func (*NsoProvider) DataSources

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

func (*NsoProvider) Metadata

func (*NsoProvider) Resources

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

func (*NsoProvider) Schema

type NsoProviderModel

type NsoProviderModel struct {
	Username  types.String               `tfsdk:"username"`
	Password  types.String               `tfsdk:"password"`
	URL       types.String               `tfsdk:"url"`
	Insecure  types.Bool                 `tfsdk:"insecure"`
	Retries   types.Int64                `tfsdk:"retries"`
	Instances []NsoProviderModelInstance `tfsdk:"instances"`
}

NsoProviderModel describes the provider data model.

type NsoProviderModelInstance

type NsoProviderModelInstance struct {
	Name types.String `tfsdk:"name"`
	URL  types.String `tfsdk:"url"`
}

type Restconf

type Restconf struct {
	Instance   types.String   `tfsdk:"instance"`
	Id         types.String   `tfsdk:"id"`
	Path       types.String   `tfsdk:"path"`
	Delete     types.Bool     `tfsdk:"delete"`
	Attributes types.Map      `tfsdk:"attributes"`
	Lists      []RestconfList `tfsdk:"lists"`
}

type RestconfDataSource

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

func (*RestconfDataSource) Configure

func (*RestconfDataSource) Metadata

func (*RestconfDataSource) Read

func (*RestconfDataSource) Schema

type RestconfDataSourceModel

type RestconfDataSourceModel struct {
	Instance   types.String `tfsdk:"instance"`
	Id         types.String `tfsdk:"id"`
	Path       types.String `tfsdk:"path"`
	Attributes types.Map    `tfsdk:"attributes"`
}

type RestconfList

type RestconfList struct {
	Name   types.String `tfsdk:"name"`
	Key    types.String `tfsdk:"key"`
	Items  []types.Map  `tfsdk:"items"`
	Values types.List   `tfsdk:"values"`
}

type RestconfResource

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

func (*RestconfResource) Configure

func (*RestconfResource) Create

func (*RestconfResource) Delete

func (*RestconfResource) ImportState

func (*RestconfResource) Metadata

func (*RestconfResource) Read

func (*RestconfResource) Schema

func (*RestconfResource) Update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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