Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewServiceDataSource() datasource.DataSource
- func NewServiceResource() resource.Resource
- type ServiceDataSource
- func (d *ServiceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ServiceDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ServiceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ServiceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ServiceModel
- type ServiceResource
- func (r *ServiceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServiceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServiceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServiceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ServiceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServiceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServiceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServiceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServiceResourceM0delSource
- type ServiceResourceModelAccess
- type ServiceResourceModelLogging
- type ServiceResourceModelMetadata
- type StartrailProvider
- func (p *StartrailProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *StartrailProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *StartrailProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *StartrailProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *StartrailProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type StartrailProviderClient
- type StartrailProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceDataSource ¶
func NewServiceDataSource() datasource.DataSource
func NewServiceResource ¶
Types ¶
type ServiceDataSource ¶
type ServiceDataSource struct {
// contains filtered or unexported fields
}
ServiceDataSource defines the data source implementation.
func (*ServiceDataSource) Configure ¶
func (d *ServiceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ServiceDataSource) Metadata ¶
func (d *ServiceDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ServiceDataSource) Read ¶
func (d *ServiceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ServiceDataSource) Schema ¶
func (d *ServiceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ServiceModel ¶
type ServiceModel struct { Id types.String `tfsdk:"id"` Access []ServiceResourceModelAccess `tfsdk:"access"` Description types.String `tfsdk:"description"` Disabled types.Bool `tfsdk:"disabled"` Environment types.String `tfsdk:"environment"` Logging []ServiceResourceModelLogging `tfsdk:"logging"` Metadata *ServiceResourceModelMetadata `tfsdk:"metadata"` Name types.String `tfsdk:"name"` Remarks types.String `tfsdk:"remarks"` Sources []ServiceResourceM0delSource `tfsdk:"source"` }
{ "access": [ { "auth": true, "endpoint": "string", "internal": true } ], "description": "This is a hello world service.", "disabled": true, "environment": "production", "logging": { "additionalProp1": { "labels": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } }, "additionalProp2": { "labels": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } }, "additionalProp3": { "labels": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } } }, "metadata": { "labels": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } }, "name": "hello-world", "remarks": "Make sure this service prints hello world on /", "sources": { "additionalProp1": { "labels": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } }, "additionalProp2": { "labels": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } }, "additionalProp3": { "labels": { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } } }, "tenant": "startrail", "updated_at": "2021-01-01T00:00:00.000000", "updated_by": "string", "updated_date": "string" }
ServiceModel describes the resource data model.
type ServiceResource ¶
type ServiceResource struct {
// contains filtered or unexported fields
}
ServiceResource defines the resource implementation.
func (*ServiceResource) Configure ¶
func (r *ServiceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServiceResource) Create ¶
func (r *ServiceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ServiceResource) Delete ¶
func (r *ServiceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ServiceResource) ImportState ¶
func (r *ServiceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ServiceResource) Metadata ¶
func (r *ServiceResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServiceResource) Read ¶
func (r *ServiceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ServiceResource) Schema ¶
func (r *ServiceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ServiceResource) Update ¶
func (r *ServiceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type StartrailProvider ¶
type StartrailProvider struct {
// contains filtered or unexported fields
}
StartrailProvider defines the provider implementation.
func (*StartrailProvider) Configure ¶
func (p *StartrailProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*StartrailProvider) DataSources ¶
func (p *StartrailProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*StartrailProvider) Metadata ¶
func (p *StartrailProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*StartrailProvider) Resources ¶
func (p *StartrailProvider) Resources(ctx context.Context) []func() resource.Resource
func (*StartrailProvider) Schema ¶
func (p *StartrailProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type StartrailProviderClient ¶
type StartrailProviderModel ¶
type StartrailProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` ApiKey types.String `tfsdk:"api_key"` Debug types.Bool `tfsdk:"debug"` Environment types.String `tfsdk:"environment"` Tenant types.String `tfsdk:"tenant"` }
StartrailProviderModel describes the provider data model.
Click to show internal directories.
Click to hide internal directories.