provider

package module
v0.0.0-...-7a2eb09 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const Name string = "aem"
View Source
const (
	ServiceName = "aem"
)

Variables

View Source
var Version string

Functions

func Provider

func Provider() p.Provider

Types

type Client

type Client struct {
	Type          string            `pulumi:"type"`
	Settings      map[string]string `pulumi:"settings"`
	Credentials   map[string]string `pulumi:"credentials,optional"`
	ActionTimeout string            `pulumi:"action_timeout,optional"`
	StateTimeout  string            `pulumi:"state_timeout,optional"`
}

func (*Client) Annotate

func (m *Client) Annotate(a infer.Annotator)

type ClientContext

type ClientContext[T interface{}] struct {
	// contains filtered or unexported fields
}

type Compose

type Compose struct {
	Download  bool            `pulumi:"download,optional"`
	Version   string          `pulumi:"version,optional"`
	Config    string          `pulumi:"config,optional"`
	Create    *InstanceScript `pulumi:"create,optional"`
	Configure *InstanceScript `pulumi:"configure,optional"`
	Delete    *InstanceScript `pulumi:"delete,optional"`
}

func (*Compose) Annotate

func (m *Compose) Annotate(a infer.Annotator)

type Instance

type Instance struct{}

func (Instance) Check

func (Instance) Check(ctx p.Context, name string, oldInputs, newInputs resource.PropertyMap) (InstanceArgs, []p.CheckFailure, error)

func (Instance) Create

func (Instance) Create(ctx p.Context, name string, input InstanceArgs, preview bool) (string, InstanceState, error)

func (Instance) Delete

func (Instance) Delete(ctx p.Context, id string, props InstanceState) error

func (Instance) Update

func (Instance) Update(ctx p.Context, id string, oldState InstanceState, input InstanceArgs, preview bool) (InstanceState, error)

type InstanceArgs

type InstanceArgs struct {
	Client  Client            `pulumi:"client"`
	Files   map[string]string `pulumi:"files,optional"`
	System  *System           `pulumi:"system,optional"`
	Compose *Compose          `pulumi:"compose,optional"`
}

func (*InstanceArgs) Annotate

func (m *InstanceArgs) Annotate(a infer.Annotator)

type InstanceClient

type InstanceClient ClientContext[InstanceArgs]

func (*InstanceClient) Close

func (ic *InstanceClient) Close() error

func (*InstanceClient) ReadStatus

func (ic *InstanceClient) ReadStatus() (InstanceStatus, error)

type InstanceModel

type InstanceModel struct {
	ID         string   `pulumi:"id"`
	URL        string   `pulumi:"url"`
	AemVersion string   `pulumi:"aem_version"`
	Dir        string   `pulumi:"dir"`
	Attributes []string `pulumi:"attributes"`
	RunModes   []string `pulumi:"run_modes"`
}

func (*InstanceModel) Annotate

func (m *InstanceModel) Annotate(a infer.Annotator)

type InstanceResource

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

func NewInstanceResource

func NewInstanceResource() *InstanceResource

func (*InstanceResource) Create

func (r *InstanceResource) Create(ctx p.Context, model InstanceArgs) (*InstanceStatus, error)

func (*InstanceResource) Delete

func (r *InstanceResource) Delete(ctx p.Context, model InstanceArgs) error

func (*InstanceResource) Update

func (r *InstanceResource) Update(ctx p.Context, model InstanceArgs) (*InstanceStatus, error)

type InstanceScript

type InstanceScript struct {
	Inline []string `pulumi:"inline,optional"`
	Script string   `pulumi:"script,optional"`
}

func (*InstanceScript) Annotate

func (m *InstanceScript) Annotate(a infer.Annotator)

type InstanceState

type InstanceState struct {
	InstanceArgs
	Instances []InstanceModel `pulumi:"instances"`
}

func (*InstanceState) Annotate

func (m *InstanceState) Annotate(a infer.Annotator)

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 System

type System struct {
	DataDir       string            `pulumi:"data_dir,optional"`
	WorkDir       string            `pulumi:"work_dir,optional"`
	Env           map[string]string `pulumi:"env,optional"`
	ServiceConfig string            `pulumi:"service_config,optional"`
	User          string            `pulumi:"user,optional"`
	Bootstrap     *InstanceScript   `pulumi:"bootstrap,optional"`
}

func (*System) Annotate

func (m *System) Annotate(a infer.Annotator)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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