appresource

package
v1.0.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 18 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"`
	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) ToCreateUpdaters

func (*ResourceModel) ToUpdateUpdaters

Jump to

Keyboard shortcuts

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