appresource

package
v1.0.0-alpha3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

func New

func New() resource.Resource

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 DependencyModel struct {
	Version      types.String `tfsdk:"version"`
	UpdatePolicy types.String `tfsdk:"update_policy"`
}

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func (*Resource) Configure

func (*Resource) Create

func (*Resource) Delete

func (*Resource) ImportState

func (*Resource) Metadata

func (*Resource) Read

func (*Resource) Schema

func (*Resource) Update

type ResourceModel

type ResourceModel struct {
	ID               types.String `tfsdk:"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"`
	UpdatePolicy     types.String `tfsdk:"update_policy"`
	UserInputs       types.Map    `tfsdk:"user_inputs"`
	Dependencies     types.Map    `tfsdk:"dependencies"`
}

func (*ResourceModel) FromAPIModel

func (m *ResourceModel) FromAPIModel(ctx context.Context, appInstallation *mittwaldv2.DeMittwaldV1AppAppInstallation, appClient mittwaldv2.AppClient) (res diag.Diagnostics)

func (*ResourceModel) ToCreateUpdaters

func (*ResourceModel) ToUpdateUpdaters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL