Documentation ¶
Index ¶
- func InstalledSystemSoftwareToDependencyModelMap(ctx context.Context, res diag.Diagnostics, appClient mittwaldv2.AppClient, ...) types.Map
- func New() resource.Resource
- type DatabaseModel
- type DependencyModel
- type Resource
- func (r *Resource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ResourceModel
- func (m *ResourceModel) FromAPIModel(ctx context.Context, ...) (res diag.Diagnostics)
- func (m *ResourceModel) ToCreateRequest(ctx context.Context, d *diag.Diagnostics, appClient mittwaldv2.AppClient) (b mittwaldv2.AppRequestAppinstallationJSONRequestBody)
- func (m *ResourceModel) ToCreateRequestWithUpdaters(ctx context.Context, d *diag.Diagnostics, appClient mittwaldv2.AppClient) (mittwaldv2.AppRequestAppinstallationJSONRequestBody, ...)
- func (m *ResourceModel) ToCreateUpdaters(ctx context.Context, d *diag.Diagnostics, appClient mittwaldv2.AppClient) []mittwaldv2.AppInstallationUpdater
- func (m *ResourceModel) ToUpdateUpdaters(ctx context.Context, d diag.Diagnostics, current *ResourceModel, ...) []mittwaldv2.AppInstallationUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstalledSystemSoftwareToDependencyModelMap ¶
func InstalledSystemSoftwareToDependencyModelMap( ctx context.Context, res diag.Diagnostics, appClient mittwaldv2.AppClient, systemSoftwares []mittwaldv2.DeMittwaldV1AppInstalledSystemSoftware, ) types.Map
Types ¶
type DatabaseModel ¶
type DatabaseModel struct { ID types.String `tfsdk:"id"` Kind types.String `tfsdk:"kind"` UserID types.String `tfsdk:"user_id"` Purpose types.String `tfsdk:"purpose"` }
func (*DatabaseModel) Equals ¶
func (m *DatabaseModel) Equals(other *DatabaseModel) bool
type DependencyModel ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) Configure ¶
func (r *Resource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*Resource) Create ¶
func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*Resource) Delete ¶
func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*Resource) ImportState ¶
func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*Resource) Metadata ¶
func (r *Resource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*Resource) Read ¶
func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*Resource) Schema ¶
func (r *Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*Resource) Update ¶
func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ResourceModel ¶
type ResourceModel struct { ID types.String `tfsdk:"id"` ShortID types.String `tfsdk:"short_id"` ProjectID types.String `tfsdk:"project_id"` Databases types.Set `tfsdk:"databases"` Description types.String `tfsdk:"description"` App types.String `tfsdk:"app"` Version types.String `tfsdk:"version"` VersionCurrent types.String `tfsdk:"version_current"` DocumentRoot types.String `tfsdk:"document_root"` InstallationPath types.String `tfsdk:"installation_path"` InstallationPathAbsolute types.String `tfsdk:"installation_path_absolute"` UpdatePolicy types.String `tfsdk:"update_policy"` UserInputs types.Map `tfsdk:"user_inputs"` Dependencies types.Map `tfsdk:"dependencies"` SSHHost types.String `tfsdk:"ssh_host"` }
func (*ResourceModel) FromAPIModel ¶
func (m *ResourceModel) FromAPIModel(ctx context.Context, appInstallation *mittwaldv2.DeMittwaldV1AppAppInstallation, clientBuilder mittwaldv2.ClientBuilder) (res diag.Diagnostics)
func (*ResourceModel) ToCreateRequest ¶
func (m *ResourceModel) ToCreateRequest(ctx context.Context, d *diag.Diagnostics, appClient mittwaldv2.AppClient) (b mittwaldv2.AppRequestAppinstallationJSONRequestBody)
func (*ResourceModel) ToCreateRequestWithUpdaters ¶
func (m *ResourceModel) ToCreateRequestWithUpdaters(ctx context.Context, d *diag.Diagnostics, appClient mittwaldv2.AppClient) (mittwaldv2.AppRequestAppinstallationJSONRequestBody, []mittwaldv2.AppInstallationUpdater)
func (*ResourceModel) ToCreateUpdaters ¶
func (m *ResourceModel) ToCreateUpdaters(ctx context.Context, d *diag.Diagnostics, appClient mittwaldv2.AppClient) []mittwaldv2.AppInstallationUpdater
func (*ResourceModel) ToUpdateUpdaters ¶
func (m *ResourceModel) ToUpdateUpdaters(ctx context.Context, d diag.Diagnostics, current *ResourceModel, appClient mittwaldv2.AppClient) []mittwaldv2.AppInstallationUpdater
Click to show internal directories.
Click to hide internal directories.