provider

package
v0.0.0-...-690d2b3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url string, filepath string) error

DownloadFile will download url and store it in local filepath. It writes to the destination file as it downloads it, without loading the entire file into memory.

func New

func New() provider.Provider

func NewDriverResource

func NewDriverResource(client *api.Client) resource.Resource

Types

type DriverResource

type DriverResource struct {
	resource.Resource
	// contains filtered or unexported fields
}

DriverResource defines the resource implementation.

func (*DriverResource) Configure

func (*DriverResource) Create

func (*DriverResource) Delete

func (*DriverResource) ImportState

func (*DriverResource) Metadata

func (*DriverResource) Read

func (*DriverResource) Schema

func (*DriverResource) Update

type DriverResourceModel

type DriverResourceModel struct {
	BinaryUrl types.String `tfsdk:"binary_url"`
	Id        types.String `tfsdk:"id"`
}

DriverResourceModel describes the resource data model.

type NomadCustomDriverProvider

type NomadCustomDriverProvider struct {
	provider.Provider
	// contains filtered or unexported fields
}

func (*NomadCustomDriverProvider) Configure

func (*NomadCustomDriverProvider) DataSources

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

func (*NomadCustomDriverProvider) Metadata

func (*NomadCustomDriverProvider) Resources

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

func (*NomadCustomDriverProvider) Schema

Jump to

Keyboard shortcuts

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