Documentation
¶
Index ¶
- func DownloadFile(url string, filepath string) error
- func New() provider.Provider
- func NewDriverResource(client *api.Client) resource.Resource
- type DriverResource
- func (r *DriverResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DriverResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DriverResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DriverResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DriverResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DriverResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DriverResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DriverResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DriverResourceModel
- type NomadCustomDriverProvider
- func (p *NomadCustomDriverProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *NomadCustomDriverProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *NomadCustomDriverProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *NomadCustomDriverProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *NomadCustomDriverProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
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.
Types ¶
type DriverResource ¶
DriverResource defines the resource implementation.
func (*DriverResource) Configure ¶
func (r *DriverResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DriverResource) Create ¶
func (r *DriverResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DriverResource) Delete ¶
func (r *DriverResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DriverResource) ImportState ¶
func (r *DriverResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DriverResource) Metadata ¶
func (r *DriverResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DriverResource) Read ¶
func (r *DriverResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DriverResource) Schema ¶
func (r *DriverResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DriverResource) Update ¶
func (r *DriverResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (p *NomadCustomDriverProvider) Configure( ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*NomadCustomDriverProvider) DataSources ¶
func (p *NomadCustomDriverProvider) DataSources(_ context.Context) []func() datasource.DataSource
func (*NomadCustomDriverProvider) Metadata ¶
func (p *NomadCustomDriverProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*NomadCustomDriverProvider) Resources ¶
func (p *NomadCustomDriverProvider) Resources(_ context.Context) []func() resource.Resource
func (*NomadCustomDriverProvider) Schema ¶
func (p *NomadCustomDriverProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
Click to show internal directories.
Click to hide internal directories.