Documentation ¶
Index ¶
- func New(p common.Provider) func() resource.Resource
- type Credential
- type Resource
- func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r Resource) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)
- func (r Resource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r Resource) Update(context.Context, resource.UpdateRequest, *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Credential ¶
type Credential struct { ID types.String `tfsdk:"id"` ProjectID types.String `tfsdk:"project_id"` CredentialsGroupID types.String `tfsdk:"credentials_group_id"` Expiry types.String `tfsdk:"expiry"` DisplayName types.String `tfsdk:"display_name"` AccessKey types.String `tfsdk:"access_key"` SecretAccessKey types.String `tfsdk:"secret_access_key"` }
Credential is the schema model
type Resource ¶
Resource is the exported resource
func (Resource) Create ¶
func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create - lifecycle function
func (Resource) Delete ¶
func (r Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete - lifecycle function
func (Resource) Metadata ¶
func (r Resource) Metadata(_ context.Context, req resource.MetadataRequest, res *resource.MetadataResponse)
Metadata returns data resource metadata
func (Resource) Read ¶
func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read - lifecycle function
func (Resource) Update ¶
func (r Resource) Update(context.Context, resource.UpdateRequest, *resource.UpdateResponse)
Update - lifecycle function - not used for this resource
Click to show internal directories.
Click to hide internal directories.