config

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertificateResource

func NewCertificateResource() resource.Resource

Types

type CertificateModel

type CertificateModel struct {
	Certificate types.String `tfsdk:"certificate"`
	Description types.String `tfsdk:"description"`
	Fingerprint types.String `tfsdk:"fingerprint"`
	Name        types.String `tfsdk:"name"`
	Projects    types.Set    `tfsdk:"projects"`
	Remote      types.String `tfsdk:"remote"`
	Restricted  types.Bool   `tfsdk:"restricted"`
	Type        types.String `tfsdk:"type"`
}

type CertificateResource

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

func (*CertificateResource) Configure

func (*CertificateResource) Create

func (*CertificateResource) Delete

func (*CertificateResource) Metadata

func (*CertificateResource) Read

func (*CertificateResource) Schema

func (*CertificateResource) SyncState

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

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

func (*CertificateResource) Update

Jump to

Keyboard shortcuts

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