Documentation ¶
Index ¶
- func NewCertificateResource() resource.Resource
- type CertificateModel
- type CertificateResource
- func (r *CertificateResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *CertificateResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *CertificateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *CertificateResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *CertificateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *CertificateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *CertificateResource) SyncState(ctx context.Context, tfState *tfsdk.State, server incus.InstanceServer, ...) diag.Diagnostics
- func (r *CertificateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCertificateResource ¶
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 (r *CertificateResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*CertificateResource) Create ¶
func (r *CertificateResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*CertificateResource) Delete ¶
func (r *CertificateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*CertificateResource) Metadata ¶
func (r *CertificateResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*CertificateResource) Read ¶
func (r *CertificateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*CertificateResource) Schema ¶
func (r *CertificateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
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 ¶
func (r *CertificateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.