provider

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "aem"
)

Variables

View Source
var DescriptionMD string

Functions

func New

func New(version string) func() provider.Provider

func NewInstanceResource

func NewInstanceResource() resource.Resource

Types

type AEMProvider

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

AEMProvider defines the provider implementation.

func (*AEMProvider) Configure

func (*AEMProvider) DataSources

func (p *AEMProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*AEMProvider) Metadata

func (*AEMProvider) Resources

func (p *AEMProvider) Resources(ctx context.Context) []func() resource.Resource

func (*AEMProvider) Schema

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 (*InstanceResource) Create

func (*InstanceResource) Delete

func (*InstanceResource) ImportState

func (*InstanceResource) Metadata

func (*InstanceResource) Read

func (*InstanceResource) Schema

func (*InstanceResource) Update

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 InstanceScript struct {
	Inline types.List   `tfsdk:"inline"`
	Script types.String `tfsdk:"script"`
}

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"`
	}
}

type InstanceStatusItemModel

type InstanceStatusItemModel struct {
	ID         types.String `tfsdk:"id"`
	URL        types.String `tfsdk:"url"`
	AemVersion types.String `tfsdk:"aem_version"`
	Dir        types.String `tfsdk:"dir"`
	Attributes types.List   `tfsdk:"attributes"`
	RunModes   types.List   `tfsdk:"run_modes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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