Help us shape the future of Go! Take the 2026 Go Developer Survey

provider

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(e error) bool

func MergeContentType added in v0.2.0

func MergeContentType(out *ContentTypeData, in *ContentTypeData)

func MergeGlobalField added in v0.2.0

func MergeGlobalField(out *GlobalFieldData, in *GlobalFieldData)

func MergeLocaleResponse added in v0.2.0

func MergeLocaleResponse(out *LocaleData, in *LocaleData) diag.Diagnostics

func New

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

func NewContentTypeInput added in v0.2.0

func NewContentTypeInput(field *ContentTypeData) *management.ContentTypeInput

func NewContentTypeResource added in v0.4.1

func NewContentTypeResource() resource.Resource

NewContentTypeResource returns a new resource instance

func NewEnvironmentInput added in v0.3.0

func NewEnvironmentInput(environment *EnvironmentData) *management.EnvironmentInput

func NewEnvironmentResource added in v0.4.1

func NewEnvironmentResource() resource.Resource

NewEnvironmentResource returns a new resource instance

func NewGlobalFieldInput added in v0.1.1

func NewGlobalFieldInput(field *GlobalFieldData) *management.GlobalFieldInput

func NewGlobalFieldResource added in v0.4.1

func NewGlobalFieldResource() resource.Resource

NewGlobalFieldResource returns a new resource instance

func NewLocaleInput added in v0.2.0

func NewLocaleInput(field *LocaleData) *management.LocaleInput

func NewLocaleResource added in v0.4.1

func NewLocaleResource() resource.Resource

NewLocaleResource returns a new resource instance

func NewWebhookInput

func NewWebhookInput(webhook *WebhookData) *management.WebHookInput

func NewWebhookResource added in v0.4.1

func NewWebhookResource() resource.Resource

NewWebhookResource returns a new resource instance

Types

type ContentTypeData added in v0.2.0

type ContentTypeData struct {
	UID         types.String `tfsdk:"uid"`
	Title       types.String `tfsdk:"title"`
	Description types.String `tfsdk:"description"`
	Schema      types.String `tfsdk:"schema"`
}

func NewContentTypeData added in v0.2.0

func NewContentTypeData(field *management.ContentType) *ContentTypeData

type EnvironmentData added in v0.3.0

type EnvironmentData struct {
	UID  types.String         `tfsdk:"uid"`
	Name types.String         `tfsdk:"name"`
	URLs []EnvironmentUrlData `tfsdk:"url"`
}

func NewEnvironmentData added in v0.3.0

func NewEnvironmentData(environment *management.Environment) *EnvironmentData

type EnvironmentUrlData added in v0.3.0

type EnvironmentUrlData struct {
	Locale types.String `tfsdk:"locale"`
	URL    types.String `tfsdk:"url"`
}

type GlobalFieldData added in v0.1.1

type GlobalFieldData struct {
	UID               types.String `tfsdk:"uid"`
	Title             types.String `tfsdk:"title"`
	Description       types.String `tfsdk:"description"`
	MaintainRevisions types.Bool   `tfsdk:"maintain_revisions"`
	Schema            types.String `tfsdk:"schema"`
}

func NewGlobalFieldData added in v0.1.1

func NewGlobalFieldData(field *management.GlobalField) *GlobalFieldData

type LocaleData added in v0.2.0

type LocaleData struct {
	UID            types.String `tfsdk:"uid"`
	Name           types.String `tfsdk:"name"`
	Code           types.String `tfsdk:"code"`
	FallbackLocale types.String `tfsdk:"fallback_locale"`
}

func NewLocaleData added in v0.2.0

func NewLocaleData(field *management.Locale) *LocaleData

type WebhookCustomHeaderData

type WebhookCustomHeaderData struct {
	Name  types.String `tfsdk:"header_name"`
	Value types.String `tfsdk:"value"`
}

type WebhookData

type WebhookData struct {
	UID            types.String            `tfsdk:"uid"`
	Name           types.String            `tfsdk:"name"`
	Branches       []types.String          `tfsdk:"branches"`
	Channels       []types.String          `tfsdk:"channels"`
	RetryPolicy    types.String            `tfsdk:"retry_policy"`
	ConcisePayload types.Bool              `tfsdk:"concise_payload"`
	Disabled       types.Bool              `tfsdk:"disabled"`
	Destinations   WebhookDestinationSlice `tfsdk:"destination"`
}

func NewWebhookData

func NewWebhookData(webhook *management.WebHook) *WebhookData

type WebhookDestinationData

type WebhookDestinationData struct {
	TargetURL         types.String              `tfsdk:"target_url"`
	HttpBasicAuth     types.String              `tfsdk:"http_basic_auth"`
	HttpBasicPassword types.String              `tfsdk:"http_basic_password"`
	CustomHeaders     []WebhookCustomHeaderData `tfsdk:"custom_headers"`
}

type WebhookDestinationSlice added in v0.3.0

type WebhookDestinationSlice []WebhookDestinationData

func (*WebhookDestinationSlice) FindByTargetURLAndHttpBasicAuth added in v0.3.0

func (s *WebhookDestinationSlice) FindByTargetURLAndHttpBasicAuth(t, a string) *WebhookDestinationData

Jump to

Keyboard shortcuts

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