Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorNoValidSearchTerms = `no valid search terms - an id or name is required` ErrorRunningPreApply = `Error running pre-apply plan: exit status 1` ErrorNoNetworkServerFound = `no network server found` ErrorMultipleNetworkServers = `multiple network servers were returned` )
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
NewDataSource is a helper function to simplify the provider implementation.
Types ¶
type DataSource ¶
type DataSource struct {
configure.DataSourceWithMorpheusConfigure
datasource.DataSource
}
DataSource is the data source implementation.
func (*DataSource) Metadata ¶
func (d *DataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
Metadata returns the data source type name.
func (*DataSource) Read ¶
func (d *DataSource) Read( ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse, )
Read refreshes the Terraform state with the latest data.
func (*DataSource) Schema ¶
func (d *DataSource) Schema( ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse, )
Schema defines the schema for the data source.
type NetworkServerModel ¶
type NetworkServerModel struct {
AdminPort types.Int64 `tfsdk:"admin_port"`
ApiPort types.Int64 `tfsdk:"api_port"`
Config types.Dynamic `tfsdk:"config"`
Description types.String `tfsdk:"description"`
Enabled types.Bool `tfsdk:"enabled"`
ExternalId types.String `tfsdk:"external_id"`
Id types.Int64 `tfsdk:"id"`
InternalId types.String `tfsdk:"internal_id"`
Name types.String `tfsdk:"name"`
NetworkFilter types.String `tfsdk:"network_filter"`
ServiceHost types.String `tfsdk:"service_host"`
ServiceMode types.String `tfsdk:"service_mode"`
ServicePassword types.String `tfsdk:"service_password"`
ServicePath types.String `tfsdk:"service_path"`
ServicePort types.Int64 `tfsdk:"service_port"`
ServiceToken types.String `tfsdk:"service_token"`
ServiceUrl types.String `tfsdk:"service_url"`
ServiceUsername types.String `tfsdk:"service_username"`
TenantMatch types.String `tfsdk:"tenant_match"`
Visibility types.String `tfsdk:"visibility"`
Visible types.Bool `tfsdk:"visible"`
ZoneId types.Int64 `tfsdk:"zone_id"`
}
Click to show internal directories.
Click to hide internal directories.