clustering

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterGroupAssignmentResource

func NewClusterGroupAssignmentResource() resource.Resource

func NewClusterGroupResource

func NewClusterGroupResource() resource.Resource

Types

type ClusterGroupAssignmentModel

type ClusterGroupAssignmentModel struct {
	Remote       types.String `tfsdk:"remote"`
	ClusterGroup types.String `tfsdk:"cluster_group"`
	Member       types.String `tfsdk:"member"`
}

type ClusterGroupAssignmentResource

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

func (*ClusterGroupAssignmentResource) Configure

func (*ClusterGroupAssignmentResource) Create

func (*ClusterGroupAssignmentResource) Delete

func (*ClusterGroupAssignmentResource) ImportState

func (*ClusterGroupAssignmentResource) Metadata

func (*ClusterGroupAssignmentResource) Read

func (*ClusterGroupAssignmentResource) Schema

func (*ClusterGroupAssignmentResource) SyncState

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

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

func (*ClusterGroupAssignmentResource) Update

type ClusterGroupModel

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

type ClusterGroupResource

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

func (*ClusterGroupResource) Configure

func (*ClusterGroupResource) Create

func (*ClusterGroupResource) Delete

func (*ClusterGroupResource) ImportState

func (*ClusterGroupResource) Metadata

func (*ClusterGroupResource) Read

func (*ClusterGroupResource) Schema

func (*ClusterGroupResource) SyncState

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

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

func (*ClusterGroupResource) Update

Jump to

Keyboard shortcuts

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