provider

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInt64ValueToMap

func AddInt64ValueToMap(m *map[string]interface{}, key string, value basetypes.Int64Value)

func AddStringValueToMap

func AddStringValueToMap(m *map[string]interface{}, key string, value basetypes.StringValue)

func ImportStatePassthroughInt64ID

func ImportStatePassthroughInt64ID(ctx context.Context, attrPath path.Path, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func Map

func Map[T, U any](ts []T, f func(T) U) []U

func New

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

func NewAdTypeResource

func NewAdTypeResource() resource.Resource

func NewChannelResource

func NewChannelResource() resource.Resource

func NewChannelSiteMapResource

func NewChannelSiteMapResource() resource.Resource

func NewInt64ValueFromInt32Pointer

func NewInt64ValueFromInt32Pointer(value *int32) basetypes.Int64Value

func NewSiteResource

func NewSiteResource() resource.Resource

func SetInt64StateAttributeFromInt32

func SetInt64StateAttributeFromInt32(s *tfsdk.State, ctx context.Context, path path.Path, value int32, diags *diag.Diagnostics)

func SetInt64StateAttributeFromInt32Pointer

func SetInt64StateAttributeFromInt32Pointer(s *tfsdk.State, ctx context.Context, path path.Path, value *int32, diags *diag.Diagnostics)

func SetStringStateAttribute

func SetStringStateAttribute(s *tfsdk.State, ctx context.Context, path path.Path, value string, diags *diag.Diagnostics)

func SetStringStateAttributeFromPointer

func SetStringStateAttributeFromPointer(s *tfsdk.State, ctx context.Context, path path.Path, value *string, diags *diag.Diagnostics)

Types

type KevelProvider

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

KevelProvider defines the provider implementation.

func (*KevelProvider) Configure

func (*KevelProvider) DataSources

func (p *KevelProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*KevelProvider) Metadata

func (*KevelProvider) Resources

func (p *KevelProvider) Resources(ctx context.Context) []func() resource.Resource

func (*KevelProvider) Schema

type KevelProviderModel

type KevelProviderModel struct {
	ApiBaseUrl types.String `tfsdk:"api_base_url"`
	ApiKey     types.String `tfsdk:"api_key"`
}

KevelProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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