Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- func NewDeviceConfigDataSource() datasource.DataSource
- func NewDeviceConfigResource() resource.Resource
- func NewDeviceDataSource() datasource.DataSource
- func NewDeviceGroupDataSource() datasource.DataSource
- func NewDeviceGroupResource() resource.Resource
- func NewDeviceResource() resource.Resource
- func NewRestconfDataSource() datasource.DataSource
- func NewRestconfResource() resource.Resource
- type Device
- type DeviceConfig
- type DeviceConfigData
- type DeviceConfigDataSource
- func (d *DeviceConfigDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *DeviceConfigDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *DeviceConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DeviceConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DeviceConfigList
- type DeviceConfigResource
- func (r *DeviceConfigResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *DeviceConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DeviceConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DeviceConfigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DeviceConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DeviceConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DeviceConfigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DeviceConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DeviceData
- type DeviceDataSource
- func (d *DeviceDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *DeviceDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *DeviceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DeviceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DeviceGroup
- type DeviceGroupData
- type DeviceGroupDataSource
- func (d *DeviceGroupDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *DeviceGroupDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *DeviceGroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DeviceGroupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DeviceGroupResource
- func (r *DeviceGroupResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *DeviceGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DeviceGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DeviceGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DeviceGroupResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *DeviceGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DeviceGroupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DeviceGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DeviceResource
- func (r *DeviceResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *DeviceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DeviceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DeviceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DeviceResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *DeviceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DeviceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DeviceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NsoProvider
- func (p *NsoProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *NsoProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *NsoProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *NsoProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *NsoProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type NsoProviderModel
- type NsoProviderModelInstance
- type Restconf
- type RestconfDataSource
- func (d *RestconfDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *RestconfDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *RestconfDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *RestconfDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type RestconfDataSourceModel
- type RestconfList
- type RestconfResource
- func (r *RestconfResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *RestconfResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RestconfResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RestconfResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RestconfResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RestconfResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RestconfResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RestconfResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
View Source
const (
YangPatch = false
)
Variables ¶
This section is empty.
Functions ¶
func NewDeviceConfigDataSource ¶
func NewDeviceConfigDataSource() datasource.DataSource
func NewDeviceConfigResource ¶
func NewDeviceDataSource ¶
func NewDeviceDataSource() datasource.DataSource
func NewDeviceGroupDataSource ¶
func NewDeviceGroupDataSource() datasource.DataSource
func NewDeviceGroupResource ¶
func NewDeviceResource ¶
func NewRestconfDataSource ¶
func NewRestconfDataSource() datasource.DataSource
func NewRestconfResource ¶
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 DeviceConfigData ¶
type DeviceConfigDataSource ¶
type DeviceConfigDataSource struct {
// contains filtered or unexported fields
}
func (*DeviceConfigDataSource) Configure ¶
func (d *DeviceConfigDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse)
func (*DeviceConfigDataSource) Metadata ¶
func (d *DeviceConfigDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DeviceConfigDataSource) Read ¶
func (d *DeviceConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DeviceConfigDataSource) Schema ¶
func (d *DeviceConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DeviceConfigList ¶
type DeviceConfigResource ¶
type DeviceConfigResource struct {
// contains filtered or unexported fields
}
func (*DeviceConfigResource) Configure ¶
func (r *DeviceConfigResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
func (*DeviceConfigResource) Create ¶
func (r *DeviceConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DeviceConfigResource) Delete ¶
func (r *DeviceConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DeviceConfigResource) ImportState ¶
func (r *DeviceConfigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DeviceConfigResource) Metadata ¶
func (r *DeviceConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DeviceConfigResource) Read ¶
func (r *DeviceConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DeviceConfigResource) Schema ¶
func (r *DeviceConfigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DeviceConfigResource) Update ¶
func (r *DeviceConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (d *DeviceDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse)
func (*DeviceDataSource) Metadata ¶
func (d *DeviceDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DeviceDataSource) Read ¶
func (d *DeviceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DeviceDataSource) Schema ¶
func (d *DeviceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DeviceGroup ¶
type DeviceGroupData ¶
type DeviceGroupDataSource ¶
type DeviceGroupDataSource struct {
// contains filtered or unexported fields
}
func (*DeviceGroupDataSource) Configure ¶
func (d *DeviceGroupDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse)
func (*DeviceGroupDataSource) Metadata ¶
func (d *DeviceGroupDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DeviceGroupDataSource) Read ¶
func (d *DeviceGroupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DeviceGroupDataSource) Schema ¶
func (d *DeviceGroupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DeviceGroupResource ¶
type DeviceGroupResource struct {
// contains filtered or unexported fields
}
func (*DeviceGroupResource) Configure ¶
func (r *DeviceGroupResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
func (*DeviceGroupResource) Create ¶
func (r *DeviceGroupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DeviceGroupResource) Delete ¶
func (r *DeviceGroupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DeviceGroupResource) ImportState ¶
func (r *DeviceGroupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DeviceGroupResource) Metadata ¶
func (r *DeviceGroupResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DeviceGroupResource) Read ¶
func (r *DeviceGroupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DeviceGroupResource) Schema ¶
func (r *DeviceGroupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DeviceGroupResource) Update ¶
func (r *DeviceGroupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DeviceResource ¶
type DeviceResource struct {
// contains filtered or unexported fields
}
func (*DeviceResource) Configure ¶
func (r *DeviceResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
func (*DeviceResource) Create ¶
func (r *DeviceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DeviceResource) Delete ¶
func (r *DeviceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DeviceResource) ImportState ¶
func (r *DeviceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DeviceResource) Metadata ¶
func (r *DeviceResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DeviceResource) Read ¶
func (r *DeviceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DeviceResource) Schema ¶
func (r *DeviceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DeviceResource) Update ¶
func (r *DeviceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type NsoProvider ¶
type NsoProvider struct {
// contains filtered or unexported fields
}
NsoProvider defines the provider implementation.
func (*NsoProvider) Configure ¶
func (p *NsoProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*NsoProvider) DataSources ¶
func (p *NsoProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*NsoProvider) Metadata ¶
func (p *NsoProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*NsoProvider) Resources ¶
func (p *NsoProvider) Resources(ctx context.Context) []func() resource.Resource
func (*NsoProvider) Schema ¶
func (p *NsoProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
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 RestconfDataSource ¶
type RestconfDataSource struct {
// contains filtered or unexported fields
}
func (*RestconfDataSource) Configure ¶
func (d *RestconfDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, _ *datasource.ConfigureResponse)
func (*RestconfDataSource) Metadata ¶
func (d *RestconfDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*RestconfDataSource) Read ¶
func (d *RestconfDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*RestconfDataSource) Schema ¶
func (d *RestconfDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type RestconfDataSourceModel ¶
type RestconfList ¶
type RestconfResource ¶
type RestconfResource struct {
// contains filtered or unexported fields
}
func (*RestconfResource) Configure ¶
func (r *RestconfResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
func (*RestconfResource) Create ¶
func (r *RestconfResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RestconfResource) Delete ¶
func (r *RestconfResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RestconfResource) ImportState ¶
func (r *RestconfResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*RestconfResource) Metadata ¶
func (r *RestconfResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RestconfResource) Read ¶
func (r *RestconfResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RestconfResource) Schema ¶
func (r *RestconfResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RestconfResource) Update ¶
func (r *RestconfResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Source Files ¶
- data_source_nso_device.go
- data_source_nso_device_config.go
- data_source_nso_device_group.go
- data_source_nso_restconf.go
- model_nso_device.go
- model_nso_device_config.go
- model_nso_device_group.go
- model_nso_restconf.go
- provider.go
- resource_nso_device.go
- resource_nso_device_config.go
- resource_nso_device_group.go
- resource_nso_restconf.go
Click to show internal directories.
Click to hide internal directories.