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

provider

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalFieldMergeSchema added in v0.1.1

func GlobalFieldMergeSchema(out *GlobalFieldData, in *GlobalFieldData)

func IsNotFoundError

func IsNotFoundError(e error) bool

func New

func New() tfsdk.Provider

func NewGlobalFieldInput added in v0.1.1

func NewGlobalFieldInput(field *GlobalFieldData) *management.GlobalFieldInput

func NewWebhookInput

func NewWebhookInput(webhook *WebhookData) *management.WebHookInput

Types

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 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