project

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProjectResource

func NewProjectResource() resource.Resource

NewProjectResource return new project resource.

Types

type ProjectModel

type ProjectModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Remote      types.String `tfsdk:"remote"`
	Config      types.Map    `tfsdk:"config"`
}

ProjectModel resource data model that matches the schema.

func (ProjectModel) ComputedKeys

func (_ ProjectModel) ComputedKeys() []string

ComputedKeys returns list of computed config keys.

type ProjectResource

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

ProjectResource represent Incus project resource.

func (*ProjectResource) Configure

func (ProjectResource) Create

func (ProjectResource) Delete

func (ProjectResource) Metadata

Metadata for project resource.

func (ProjectResource) Read

func (ProjectResource) Schema

Schema for project resource.

func (ProjectResource) SyncState

SyncState fetches the server's current state for a project and updates the provided model. It then applies this updated model as the new state in Terraform.

func (ProjectResource) Update

Jump to

Keyboard shortcuts

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