Documentation
¶
Index ¶
- Constants
- Variables
- func New(version string) func() provider.Provider
- func NewInstanceResource() resource.Resource
- type AEMProvider
- func (p *AEMProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *AEMProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *AEMProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *AEMProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *AEMProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type AEMProviderModel
- type ClientContext
- type InstanceClient
- type InstanceResource
- func (r *InstanceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *InstanceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *InstanceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *InstanceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *InstanceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *InstanceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *InstanceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *InstanceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type InstanceResourceModel
- type InstanceScript
- type InstanceStatus
- type InstanceStatusItemModel
Constants ¶
View Source
const (
ServiceName = "aem"
)
Variables ¶
View Source
var DescriptionMD string
Functions ¶
func NewInstanceResource ¶
Types ¶
type AEMProvider ¶
type AEMProvider struct {
// contains filtered or unexported fields
}
AEMProvider defines the provider implementation.
func (*AEMProvider) Configure ¶
func (p *AEMProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*AEMProvider) DataSources ¶
func (p *AEMProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*AEMProvider) Metadata ¶
func (p *AEMProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*AEMProvider) Resources ¶
func (p *AEMProvider) Resources(ctx context.Context) []func() resource.Resource
func (*AEMProvider) Schema ¶
func (p *AEMProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type AEMProviderModel ¶
type AEMProviderModel struct{}
type ClientContext ¶
type ClientContext[T interface{}] struct {
// contains filtered or unexported fields
}
type InstanceClient ¶
type InstanceClient ClientContext[InstanceResourceModel]
func (*InstanceClient) Close ¶
func (ic *InstanceClient) Close() error
func (*InstanceClient) ReadStatus ¶
func (ic *InstanceClient) ReadStatus() (InstanceStatus, error)
type InstanceResource ¶
type InstanceResource struct {
// contains filtered or unexported fields
}
func (*InstanceResource) Configure ¶
func (r *InstanceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*InstanceResource) Create ¶
func (r *InstanceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*InstanceResource) Delete ¶
func (r *InstanceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*InstanceResource) ImportState ¶
func (r *InstanceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*InstanceResource) Metadata ¶
func (r *InstanceResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*InstanceResource) Read ¶
func (r *InstanceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*InstanceResource) Schema ¶
func (r *InstanceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*InstanceResource) Update ¶
func (r *InstanceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type InstanceResourceModel ¶
type InstanceResourceModel struct {
Client struct {
Type types.String `tfsdk:"type"`
Settings types.Map `tfsdk:"settings"`
Credentials types.Map `tfsdk:"credentials"`
ActionTimeout types.String `tfsdk:"action_timeout"`
StateTimeout types.String `tfsdk:"state_timeout"`
} `tfsdk:"client"`
Files types.Map `tfsdk:"files"`
System struct {
DataDir types.String `tfsdk:"data_dir"`
WorkDir types.String `tfsdk:"work_dir"`
Env types.Map `tfsdk:"env"`
ServiceConfig types.String `tfsdk:"service_config"`
User types.String `tfsdk:"user"`
Bootstrap InstanceScript `tfsdk:"bootstrap"`
} `tfsdk:"system"`
Compose struct {
Download types.Bool `tfsdk:"download"`
Version types.String `tfsdk:"version"`
Config types.String `tfsdk:"config"`
Create InstanceScript `tfsdk:"create"`
Configure InstanceScript `tfsdk:"configure"`
Delete InstanceScript `tfsdk:"delete"`
} `tfsdk:"compose"`
Instances types.List `tfsdk:"instances"`
}
type InstanceScript ¶
type InstanceStatus ¶
type InstanceStatus struct {
Data struct {
Instances []struct {
ID string `yaml:"id"`
URL string `yaml:"url"`
AemVersion string `yaml:"aem_version"`
Attributes []string `yaml:"attributes"`
RunModes []string `yaml:"run_modes"`
HealthChecks []string `yaml:"health_checks"`
Dir string `yaml:"dir"`
} `yaml:"instances"`
}
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.