provider

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package provider is a internal package containing the Katapult Terraform provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *Config) func() *schema.Provider

Types

type Config

type Config struct {
	Version    string
	Commit     string
	HTTPClient *http.Client

	GeneratedNamePrefix string
}

type Meta

type Meta struct {
	Client *katapult.Client
	Core   *core.Client
	Logger hclog.Logger

	GeneratedNamePrefix  string
	SkipTrashObjectPurge bool

	// Internal cache of shallow lookup reference objects
	DataCenterRef   core.DataCenterRef
	OrganizationRef core.OrganizationRef
	// contains filtered or unexported fields
}

func (*Meta) UseOrGenerateHostname

func (m *Meta) UseOrGenerateHostname(hostname string) string

func (*Meta) UseOrGenerateName

func (m *Meta) UseOrGenerateName(name string) string

Jump to

Keyboard shortcuts

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