profile

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProfileDataSource added in v0.1.2

func NewProfileDataSource() datasource.DataSource

func NewProfileResource

func NewProfileResource() resource.Resource

NewProfileResource returns a new profile resource.

Types

type ProfileDataSource added in v0.1.2

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

ProfileDataSource represent Incus profile data source.

func (*ProfileDataSource) Configure added in v0.1.2

func (*ProfileDataSource) Metadata added in v0.1.2

func (*ProfileDataSource) Read added in v0.1.2

func (*ProfileDataSource) Schema added in v0.1.2

type ProfileModel

type ProfileModel struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	Project     types.String `tfsdk:"project"`
	Remote      types.String `tfsdk:"remote"`
	Devices     types.Set    `tfsdk:"device"`
	Config      types.Map    `tfsdk:"config"`
}

type ProfileResource

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

ProfileResource represent Incus profile resource.

func (*ProfileResource) Configure

func (ProfileResource) Create

func (ProfileResource) Delete

func (ProfileResource) ImportState

func (ProfileResource) Metadata

Metadata for profile resource.

func (*ProfileResource) ModifyPlan added in v0.1.4

func (ProfileResource) Read

func (ProfileResource) Schema

Schema for profile resource.

func (ProfileResource) SyncState

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

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

func (ProfileResource) Update

Jump to

Keyboard shortcuts

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