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

provider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 11 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() tfsdk.Provider

func NewContentTypeInput added in v0.2.0

func NewContentTypeInput(field *ContentTypeData) *management.ContentTypeInput

func NewGlobalFieldInput added in v0.1.1

func NewGlobalFieldInput(field *GlobalFieldData) *management.GlobalFieldInput

func NewLocaleInput added in v0.2.0

func NewLocaleInput(field *LocaleData) *management.LocaleInput

func NewWebhookInput

func NewWebhookInput(webhook *WebhookData) *management.WebHookInput

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 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   []WebhookDestinationData `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"`
}

Jump to

Keyboard shortcuts

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