Documentation ¶
Index ¶
- func New() datasource.DataSource
- type DataSource
- func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type Network
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
DataSource is the exported data source
func (*DataSource) Configure ¶
func (d *DataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure configures the data source client
func (*DataSource) Metadata ¶
func (d *DataSource) Metadata(_ context.Context, req datasource.MetadataRequest, res *datasource.MetadataResponse)
Metadata returns data resource metadata
func (DataSource) Read ¶
func (d DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read - lifecycle function
func (*DataSource) Schema ¶
func (r *DataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema returns terraform schema structure
type Network ¶
type Network struct { Name types.String `tfsdk:"name"` NameServers []types.String `tfsdk:"nameservers"` NetworkID types.String `tfsdk:"network_id"` Prefixes []types.String `tfsdk:"prefixes"` PrefixLengthV4 types.Int64 `tfsdk:"prefix_length_v4"` PublicIp types.String `tssdk:"public_ip"` ProjectID types.String `tfsdk:"project_id"` }
Network is the schema model
Click to show internal directories.
Click to hide internal directories.