provider

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewModelResource

func NewModelResource() resource.Resource

func NewStoreResource

func NewStoreResource() resource.Resource

func NewTupleResource

func NewTupleResource() resource.Resource

Types

type ModelResouce

type ModelResouce struct {
	ID    types.String        `tfsdk:"id"`
	Spec  types.String        `tfsdk:"spec"`
	Store *StoreResourceEmbed `tfsdk:"store"`
}

ModelResouce describes the resource data model.

type OpenFGAProvider

type OpenFGAProvider struct {
	ApiURL types.String `tfsdk:"api_url"`
}

OpenFGAProvider defines the provider implementation.

type StoreResource

type StoreResource struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

StoreResource describes the resource data.

type StoreResourceEmbed

type StoreResourceEmbed struct {
	ID types.String `tfsdk:"id"`
}

StoreResourceEmbed describes the nested store resource data model.

type TupleResource

type TupleResource struct {
	ID       types.String        `tfsdk:"id"`
	User     types.String        `tfsdk:"user"`
	Relation types.String        `tfsdk:"relation"`
	Document types.String        `tfsdk:"document"`
	Store    *TupleResourceEmbed `tfsdk:"store"`
}

TupleResource describes the resource data model.

type TupleResourceEmbed

type TupleResourceEmbed struct {
	ID    types.String `tfsdk:"id"`
	Model types.String `tfsdk:"model"`
}

TupleResourceEmbed describes the nested store resource data model.

Jump to

Keyboard shortcuts

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