Documentation
¶
Index ¶
- func IsNotFoundError(e error) bool
- func MergeContentType(out *ContentTypeData, in *ContentTypeData)
- func MergeGlobalField(out *GlobalFieldData, in *GlobalFieldData)
- func MergeLocaleResponse(out *LocaleData, in *LocaleData) diag.Diagnostics
- func New(version string) func() tfsdk.Provider
- func NewContentTypeInput(field *ContentTypeData) *management.ContentTypeInput
- func NewEnvironmentInput(environment *EnvironmentData) *management.EnvironmentInput
- func NewGlobalFieldInput(field *GlobalFieldData) *management.GlobalFieldInput
- func NewLocaleInput(field *LocaleData) *management.LocaleInput
- func NewWebhookInput(webhook *WebhookData) *management.WebHookInput
- type ContentTypeData
- type EnvironmentData
- type EnvironmentUrlData
- type GlobalFieldData
- type LocaleData
- type WebhookCustomHeaderData
- type WebhookData
- type WebhookDestinationData
- type WebhookDestinationSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFoundError ¶
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 NewContentTypeInput ¶ added in v0.2.0
func NewContentTypeInput(field *ContentTypeData) *management.ContentTypeInput
func NewEnvironmentInput ¶ added in v0.3.0
func NewEnvironmentInput(environment *EnvironmentData) *management.EnvironmentInput
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 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 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 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 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
Click to show internal directories.
Click to hide internal directories.