Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewFeatureResource() resource.Resource
- func NewHarnessContainerResource() resource.Resource
- func NewHarnessK3sResource() resource.Resource
- func NewInventoryDataSource() datasource.DataSource
- func NewRandomDataSource() datasource.DataSource
- type ContainerResourceModelNetwork
- type ContainerResourceMountModel
- type FeatureHarnessResourceModel
- type FeatureResource
- func (r *FeatureResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *FeatureResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *FeatureResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *FeatureResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *FeatureResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *FeatureResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *FeatureResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *FeatureResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *FeatureResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FeatureResourceModel
- type FeatureStepModel
- type HarnessContainerResource
- func (r *HarnessContainerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *HarnessContainerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *HarnessContainerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *HarnessContainerResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *HarnessContainerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *HarnessContainerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *HarnessContainerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type HarnessContainerResourceModel
- type HarnessK3sResource
- func (r *HarnessK3sResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *HarnessK3sResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *HarnessK3sResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *HarnessK3sResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *HarnessK3sResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *HarnessK3sResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *HarnessK3sResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type HarnessK3sResourceModel
- type HarnessResource
- func (r *HarnessResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *HarnessResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *HarnessResource) ShouldSkip(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) bool
- type ImageTestProvider
- func (p *ImageTestProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *ImageTestProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *ImageTestProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *ImageTestProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *ImageTestProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ImageTestProviderHarnessModel
- type ImageTestProviderModel
- type InventoryDataSource
- func (d *InventoryDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *InventoryDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *InventoryDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *InventoryDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type InventoryDataSourceModel
- type ProviderHarnessContainerModel
- type ProviderHarnessK3sModel
- type ProviderLoggerModel
- type ProviderLoggerTfModel
- type ProviderStore
- type RandomDataSource
- func (d *RandomDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *RandomDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *RandomDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *RandomDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type RandomDataSourceModel
- type RegistryResourceAuthModel
- type RegistryResourceMirrorModel
- type RegistryResourceModel
- type RegistryResourceTlsModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFeatureResource ¶
func NewHarnessK3sResource ¶
func NewInventoryDataSource ¶ added in v0.0.2
func NewInventoryDataSource() datasource.DataSource
func NewRandomDataSource ¶ added in v0.0.2
func NewRandomDataSource() datasource.DataSource
Types ¶
type FeatureHarnessResourceModel ¶ added in v0.0.2
type FeatureHarnessResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Inventory InventoryDataSourceModel `tfsdk:"inventory"` Skipped types.Bool `tfsdk:"skipped"` }
FeatureHarnessResourceModel is the common data model all harnesses output to be passed into dependent features.
type FeatureResource ¶
type FeatureResource struct {
// contains filtered or unexported fields
}
FeatureResource defines the resource implementation.
func (*FeatureResource) Configure ¶
func (r *FeatureResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FeatureResource) Create ¶
func (r *FeatureResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FeatureResource) Delete ¶
func (r *FeatureResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FeatureResource) ImportState ¶
func (r *FeatureResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FeatureResource) Metadata ¶
func (r *FeatureResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FeatureResource) ModifyPlan ¶ added in v0.0.2
func (r *FeatureResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
ModifyPlan implements resource.ResourceWithModifyPlan.
func (*FeatureResource) Read ¶
func (r *FeatureResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FeatureResource) Schema ¶
func (r *FeatureResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FeatureResource) Update ¶
func (r *FeatureResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FeatureResourceModel ¶
type FeatureResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Labels types.Map `tfsdk:"labels"` Before []FeatureStepModel `tfsdk:"before"` After []FeatureStepModel `tfsdk:"after"` Steps []FeatureStepModel `tfsdk:"steps"` Timeouts timeouts.Value `tfsdk:"timeouts"` Harness FeatureHarnessResourceModel `tfsdk:"harness"` }
FeatureResourceModel describes the resource data model.
type FeatureStepModel ¶
type HarnessContainerResource ¶
type HarnessContainerResource struct {
HarnessResource
}
HarnessContainerResource defines the resource implementation.
func (*HarnessContainerResource) Create ¶
func (r *HarnessContainerResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*HarnessContainerResource) Delete ¶
func (r *HarnessContainerResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*HarnessContainerResource) ImportState ¶
func (r *HarnessContainerResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*HarnessContainerResource) Metadata ¶
func (r *HarnessContainerResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*HarnessContainerResource) Read ¶
func (r *HarnessContainerResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*HarnessContainerResource) Schema ¶
func (r *HarnessContainerResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*HarnessContainerResource) Update ¶
func (r *HarnessContainerResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type HarnessContainerResourceModel ¶
type HarnessContainerResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Inventory InventoryDataSourceModel `tfsdk:"inventory"` Skipped types.Bool `tfsdk:"skipped"` Image types.String `tfsdk:"image"` Privileged types.Bool `tfsdk:"privileged"` Envs types.Map `tfsdk:"envs"` Mounts []ContainerResourceMountModel `tfsdk:"mounts"` Networks map[string]ContainerResourceModelNetwork `tfsdk:"networks"` }
HarnessContainerResourceModel describes the resource data model.
type HarnessK3sResource ¶
type HarnessK3sResource struct {
HarnessResource
}
HarnessK3sResource defines the resource implementation.
func (*HarnessK3sResource) Create ¶
func (r *HarnessK3sResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*HarnessK3sResource) Delete ¶
func (r *HarnessK3sResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*HarnessK3sResource) ImportState ¶
func (r *HarnessK3sResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*HarnessK3sResource) Metadata ¶
func (r *HarnessK3sResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*HarnessK3sResource) Read ¶
func (r *HarnessK3sResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*HarnessK3sResource) Schema ¶
func (r *HarnessK3sResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*HarnessK3sResource) Update ¶
func (r *HarnessK3sResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type HarnessK3sResourceModel ¶
type HarnessK3sResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Inventory InventoryDataSourceModel `tfsdk:"inventory"` Skipped types.Bool `tfsdk:"skipped"` Image types.String `tfsdk:"image"` DisableCni types.Bool `tfsdk:"disable_cni"` DisableTraefik types.Bool `tfsdk:"disable_traefik"` DisableMetricsServer types.Bool `tfsdk:"disable_metrics_server"` Registries map[string]RegistryResourceModel `tfsdk:"registries"` Networks map[string]ContainerResourceModelNetwork `tfsdk:"networks"` }
HarnessK3sResourceModel describes the resource data model.
type HarnessResource ¶ added in v0.0.2
type HarnessResource struct {
// contains filtered or unexported fields
}
HarnessResource provides common methods for all HarnessResource implementations.
func (*HarnessResource) Configure ¶ added in v0.0.2
func (r *HarnessResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*HarnessResource) ModifyPlan ¶ added in v0.0.2
func (r *HarnessResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
ModifyPlan adds the harness to the inventory during both the plan and apply phase. This uses the more verbose GetAttribute() instead of Get() because terraform-plugin-framework does not support embedding models without nesting.
func (*HarnessResource) ShouldSkip ¶ added in v0.0.2
func (r *HarnessResource) ShouldSkip(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) bool
type ImageTestProvider ¶
type ImageTestProvider struct {
// contains filtered or unexported fields
}
ImageTestProvider defines the provider implementation.
func (*ImageTestProvider) Configure ¶
func (p *ImageTestProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*ImageTestProvider) DataSources ¶
func (p *ImageTestProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*ImageTestProvider) Metadata ¶
func (p *ImageTestProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*ImageTestProvider) Resources ¶
func (p *ImageTestProvider) Resources(ctx context.Context) []func() resource.Resource
func (*ImageTestProvider) Schema ¶
func (p *ImageTestProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type ImageTestProviderHarnessModel ¶
type ImageTestProviderHarnessModel struct { Container *ProviderHarnessContainerModel `tfsdk:"container"` K3s *ProviderHarnessK3sModel `tfsdk:"k3s"` }
type ImageTestProviderModel ¶
type ImageTestProviderModel struct { Log *ProviderLoggerModel `tfsdk:"log"` Harnesses *ImageTestProviderHarnessModel `tfsdk:"harnesses"` Labels types.Map `tfsdk:"labels"` }
ImageTestProviderModel describes the provider data model.
type InventoryDataSource ¶ added in v0.0.2
type InventoryDataSource struct {
// contains filtered or unexported fields
}
InventoryDataSource defines the data source implementation.
func (*InventoryDataSource) Configure ¶ added in v0.0.2
func (d *InventoryDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*InventoryDataSource) Metadata ¶ added in v0.0.2
func (d *InventoryDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*InventoryDataSource) Read ¶ added in v0.0.2
func (d *InventoryDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*InventoryDataSource) Schema ¶ added in v0.0.2
func (d *InventoryDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type InventoryDataSourceModel ¶ added in v0.0.2
InventoryDataSourceModel describes the data source data model.
type ProviderHarnessContainerModel ¶
type ProviderHarnessContainerModel struct { Networks map[string]ContainerResourceModelNetwork `tfsdk:"networks"` Envs types.Map `tfsdk:"envs"` Mounts []ContainerResourceMountModel `tfsdk:"mounts"` }
type ProviderHarnessK3sModel ¶
type ProviderHarnessK3sModel struct { Networks map[string]ContainerResourceModelNetwork `tfsdk:"networks"` Registries map[string]RegistryResourceModel `tfsdk:"registries"` }
type ProviderLoggerModel ¶ added in v0.0.2
type ProviderLoggerModel struct {
Tf *ProviderLoggerTfModel `tfsdk:"tf"`
}
type ProviderLoggerTfModel ¶ added in v0.0.2
type ProviderLoggerTfModel struct{}
type ProviderStore ¶
type ProviderStore struct {
// contains filtered or unexported fields
}
ProviderStore manages the global runtime state of the provider. The provider uses this to lookup the defined relationships between resources, and manage shared external state.
func NewProviderStore ¶
func NewProviderStore() *ProviderStore
func (*ProviderStore) Encode ¶ added in v0.0.2
func (s *ProviderStore) Encode(components ...string) (string, error)
func (*ProviderStore) Inventory ¶ added in v0.0.2
func (s *ProviderStore) Inventory(data InventoryDataSourceModel) inventory.Inventory
Inventory returns an instance of the inventory per inventory data source.
func (*ProviderStore) Logger ¶ added in v0.0.2
func (s *ProviderStore) Logger() *slog.Logger
type RandomDataSource ¶ added in v0.0.2
type RandomDataSource struct {
// contains filtered or unexported fields
}
RandomDataSource defines the data source implementation.
func (*RandomDataSource) Configure ¶ added in v0.0.2
func (d *RandomDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*RandomDataSource) Metadata ¶ added in v0.0.2
func (d *RandomDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*RandomDataSource) Read ¶ added in v0.0.2
func (d *RandomDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*RandomDataSource) Schema ¶ added in v0.0.2
func (d *RandomDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type RandomDataSourceModel ¶ added in v0.0.2
RandomDataSourceModel describes the data source data model.
type RegistryResourceModel ¶
type RegistryResourceModel struct { Auth *RegistryResourceAuthModel `tfsdk:"auth"` Tls *RegistryResourceTlsModel `tfsdk:"tls"` Mirror *RegistryResourceMirrorModel `tfsdk:"mirror"` }