provider

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ID_DESC                = "A fly-generated ID"
	NAME_DESC              = "A user-provided identifier"
	APP_DESC               = "The App this resource will be created in"
	REGION_DESC            = "Fly region, ex `ord`, `sin`, `mad`"
	SHAREDIP_DESC          = "A shared ipv4 address, automatically attached in certain conditions or if explicitly requested"
	ADDRESS_TYPE_REGEX_RAW = `^(v4|v6|private_v6)$`
	ADDRESS_TYPE_REGEX     = regexp.MustCompile(ADDRESS_TYPE_REGEX_RAW)
	ADDRESS_TYPE_DESC      = fmt.Sprintf("One of the following values (by regex): `%s`", ADDRESS_TYPE_REGEX_RAW)
)

Functions

func New

func New() func() provider.Provider

func NewAppDataSource

func NewAppDataSource() datasource.DataSource

func NewAppResource

func NewAppResource() resource.Resource

func NewCertDataSource

func NewCertDataSource() datasource.DataSource

func NewCertResource

func NewCertResource() resource.Resource

func NewIpDataSource

func NewIpDataSource() datasource.DataSource

func NewIpResource

func NewIpResource() resource.Resource

func NewMachineResource

func NewMachineResource() resource.Resource

func NewVolumeDataSource

func NewVolumeDataSource() datasource.DataSource

func NewVolumeResource

func NewVolumeResource() resource.Resource

func TfServicesToServices

func TfServicesToServices(input []TfService) []machineapi.Service

Types

type TfMachineMount

type TfMachineMount struct {
	Path   types.String `tfsdk:"path"`
	Volume types.String `tfsdk:"volume"`
}

type TfPort

type TfPort struct {
	Port       types.Int64    `tfsdk:"port"`
	Handlers   []types.String `tfsdk:"handlers"`
	ForceHttps types.Bool     `tfsdk:"force_https"`
}

type TfService

type TfService struct {
	Ports        []TfPort     `tfsdk:"ports"`
	Protocol     types.String `tfsdk:"protocol"`
	InternalPort types.Int64  `tfsdk:"internal_port"`
}

func ServicesToTfServices

func ServicesToTfServices(input []machineapi.Service) []TfService

Jump to

Keyboard shortcuts

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