projectresource

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Resource

Types

type Resource

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

Resource defines the resource implementation.

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"`
	ServerID    types.String `tfsdk:"server_id"`
	Description types.String `tfsdk:"description"`
	Directories types.Map    `tfsdk:"directories"`
	DefaultIPs  types.List   `tfsdk:"default_ips"`
}

ResourceModel describes the resource data model.

func (*ResourceModel) FromAPIModel

func (m *ResourceModel) FromAPIModel(ctx context.Context, project *mittwaldv2.DeMittwaldV1ProjectProject, ips []string) (res diag.Diagnostics)

func (*ResourceModel) Reset

func (m *ResourceModel) Reset()

func (*ResourceModel) ToCreateRequest

func (*ResourceModel) Validate

func (m *ResourceModel) Validate() (d diag.Diagnostics)

Jump to

Keyboard shortcuts

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