provider

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAttrsInJSON added in v0.9.0

func FilterAttrsInJSON(doc string, attrs []string) (string, error)

Given a JSON object, only keep the attributes specified and remove the others.

func ModifyBody

func ModifyBody(base, body string, compensateBaseAttrs []string) (string, error)

ModifyBody modifies the body based on the base body, only keeps attributes that exist on both sides. If compensateBaseAttrs is set, then any attribute path element only found in the base body will be added up to the result body.

func ModifyBodyForImport

func ModifyBodyForImport(base, body string) (string, error)

ModifyBodyForImport is similar as ModifyBody, but is based on the body from import spec, rather than from state.

func New

func New() provider.Provider

Types

type DataSource added in v0.5.0

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

func (*DataSource) Configure added in v0.5.0

func (*DataSource) Metadata added in v0.5.0

func (*DataSource) Read added in v0.5.0

func (*DataSource) Schema added in v0.7.0

type ObjectOrArray added in v0.12.0

type ObjectOrArray interface {
}

type OperationResource added in v0.4.0

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

func (*OperationResource) Configure added in v0.5.0

func (*OperationResource) Create added in v0.4.0

func (*OperationResource) Delete added in v0.4.0

func (*OperationResource) Metadata added in v0.5.0

func (*OperationResource) Read added in v0.4.0

func (*OperationResource) Schema added in v0.7.0

func (*OperationResource) Update added in v0.4.0

type Provider added in v0.4.0

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

func (*Provider) Configure added in v0.4.0

func (*Provider) DataSources added in v0.5.0

func (*Provider) DataSources(context.Context) []func() datasource.DataSource

func (*Provider) Init added in v0.9.0

func (p *Provider) Init(ctx context.Context, config providerConfig) diag.Diagnostics

func (*Provider) Metadata added in v0.5.0

func (*Provider) Resources added in v0.5.0

func (*Provider) Resources(context.Context) []func() resource.Resource

func (*Provider) Schema added in v0.7.0

type Resource added in v0.4.0

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

func (*Resource) Configure added in v0.5.0

func (Resource) Create added in v0.4.0

func (Resource) Delete added in v0.4.0

func (Resource) ImportState added in v0.4.0

func (*Resource) Metadata added in v0.5.0

func (*Resource) ModifyPlan added in v0.8.0

func (Resource) Read added in v0.4.0

func (*Resource) Schema added in v0.7.0

func (Resource) Update added in v0.4.0

func (*Resource) ValidateConfig added in v0.4.0

Jump to

Keyboard shortcuts

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