anomalo

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnomaloHostEnvName     = "ANOMALO_INSTANCE_HOST"
	AnomaloTokenEnvVarName = "ANOMALO_API_SECRET_TOKEN"
)

Variables

This section is empty.

Functions

func BoolDefaultValue

func BoolDefaultValue(v types.Bool) planmodifier.Bool

BoolDefaultValue PlanModifier that allows us to set a default value for undefined configuration inputs of types.Bool

func DefaultEmptyList

func DefaultEmptyList() planmodifier.List

DefaultEmptyList PlanModifier that allows us to set a default value for undefined configuration inputs of types.List

func EmptyIfNull

func EmptyIfNull() planmodifier.String

EmptyIfNull PlanModifier that converts undefined strings to the empty string ""

func New

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

Types

type Provider

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

The Anomalo Provider

func (Provider) Configure

func (Provider) DataSources

func (p Provider) DataSources(_ context.Context) []func() datasource.DataSource

func (Provider) Metadata

func (Provider) Resources

func (p Provider) Resources(_ context.Context) []func() resource.Resource

func (Provider) Schema

type ProviderModel

type ProviderModel struct {
	Host         types.String `tfsdk:"host"`
	Token        types.String `tfsdk:"token"`
	Organization types.String `tfsdk:"organization"`
}

Jump to

Keyboard shortcuts

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