project

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProjectDataSource added in v0.2.0

func NewProjectDataSource() datasource.DataSource

func NewProjectResource

func NewProjectResource() resource.Resource

NewProjectResource return new project resource.

Types

type ProjectDataSource added in v0.2.0

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

func (*ProjectDataSource) Configure added in v0.2.0

func (*ProjectDataSource) Metadata added in v0.2.0

func (*ProjectDataSource) Read added in v0.2.0

func (*ProjectDataSource) Schema added in v0.2.0

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) ImportState added in v0.1.0

func (ProjectResource) Metadata

Metadata for project resource.

func (ProjectResource) Read

func (ProjectResource) Schema

Schema for project resource.

func (ProjectResource) SyncState

func (r ProjectResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, m ProjectModel) diag.Diagnostics

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