resource

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	Name           string
	InternalSchema schema.Schema
	Client         client.Client
}

func (DataSource) Metadata

func (d DataSource) Metadata(ctx context.Context, request datasource.MetadataRequest, response *datasource.MetadataResponse)

func (DataSource) Read

func (d DataSource) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)

func (DataSource) Schema

func (d DataSource) Schema(ctx context.Context, request datasource.SchemaRequest, response *datasource.SchemaResponse)

type Resource

type Resource struct {
	Name           string
	InternalSchema schema.Schema
	Client         client.Client
}

func (Resource) Create

func (r Resource) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)

func (Resource) Delete

func (r Resource) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)

func (Resource) ImportState

func (r Resource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse)

func (Resource) Metadata

func (r Resource) Metadata(ctx context.Context, request resource.MetadataRequest, response *resource.MetadataResponse)

func (Resource) Read

func (r Resource) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)

func (Resource) Schema

func (r Resource) Schema(ctx context.Context, request resource.SchemaRequest, response *resource.SchemaResponse)

func (Resource) Update

func (r Resource) Update(ctx context.Context, request resource.UpdateRequest, response *resource.UpdateResponse)

Jump to

Keyboard shortcuts

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