framework

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDAttribute

func IDAttribute(description string) schema.StringAttribute

func IDAttributeDefaultDescription

func IDAttributeDefaultDescription() schema.StringAttribute

Types

type BaseDataSource

type BaseDataSource struct {
	Config BaseDataSourceConfig
	Meta   *config.Config
}

BaseDataSource contains various re-usable fields and methods intended for use in data source implementations by composition.

func NewBaseDataSource

func NewBaseDataSource(cfg BaseDataSourceConfig) BaseDataSource

NewBaseDataSource returns a new instance of the BaseDataSource struct for cleaner initialization.

func (*BaseDataSource) Configure

func (*BaseDataSource) Metadata

func (*BaseDataSource) Schema

type BaseDataSourceConfig

type BaseDataSourceConfig struct {
	Name string

	// Optional
	Schema *schema.Schema
}

BaseDataSourceConfig contains all configurable base resource fields.

type BaseResource

type BaseResource struct {
	Config BaseResourceConfig
	Meta   *config.Config
}

BaseResource contains various re-usable fields and methods intended for use in resource implementations by composition.

func NewBaseResource

func NewBaseResource(cfg BaseResourceConfig) BaseResource

NewBaseResource returns a new instance of the BaseResource struct for cleaner initialization.

func (*BaseResource) Configure

func (*BaseResource) ImportState

ImportState should be overridden for resources with complex read logic (e.g. parent ID).

func (*BaseResource) Metadata

func (*BaseResource) Schema

type BaseResourceConfig

type BaseResourceConfig struct {
	Name   string
	IDAttr string

	// Optional
	Schema *schema.Schema
}

BaseResourceConfig contains all configurable base resource fields.

Jump to

Keyboard shortcuts

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