Documentation ¶
Overview ¶
Package bms provides a Terraform datasource.
Index ¶
- func BMSToTerraform(ctx context.Context, bms *v1.BMS) (bmsList []*bmsModelDatasourceBMS)
- func NetworkToTerraform(bms *v1.BMS) (net []*bmsModelDatasourceNetwork)
- func NewBMSDataSource() datasource.DataSource
- func NewBMSModelDatasource(ctx context.Context) *bmsModelDatasource
- type BMSDataSource
- func (d *BMSDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *BMSDataSource) Init(ctx context.Context, dm *bmsModelDatasource) (diags diag.Diagnostics)
- func (d *BMSDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *BMSDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BMSDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BMSToTerraform ¶
Put API BMS information to Terraform Object.
func NetworkToTerraform ¶
Put API Network information to Terraform Object.
func NewBMSDataSource ¶
func NewBMSDataSource() datasource.DataSource
func NewBMSModelDatasource ¶
NewbmsModelDatasource returns a new bmsModelDatasource.
Types ¶
type BMSDataSource ¶
type BMSDataSource struct {
// contains filtered or unexported fields
}
func (*BMSDataSource) Configure ¶
func (d *BMSDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*BMSDataSource) Init ¶
func (d *BMSDataSource) Init(ctx context.Context, dm *bmsModelDatasource) (diags diag.Diagnostics)
Init Initializes the data source.
func (*BMSDataSource) Metadata ¶
func (d *BMSDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*BMSDataSource) Read ¶
func (d *BMSDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*BMSDataSource) Schema ¶
func (d *BMSDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.