provider

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultApiUrl  = "https://api.permit.io"
	PDPApiUrl      = "https://localhost:3000"
	DefaultTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

func New

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

Types

type PermitProvider

type PermitProvider struct {
	// contains filtered or unexported fields
}

PermitProvider defines the provider implementation.

func (*PermitProvider) Configure

func (*PermitProvider) DataSources

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

func (*PermitProvider) Metadata

func (*PermitProvider) Resources

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

func (*PermitProvider) Schema

type PermitProviderModel

type PermitProviderModel struct {
	ApiUrl  types.String `tfsdk:"api_url"`
	ApiKey  types.String `tfsdk:"api_key"`
	Timeout types.Int64  `tfsdk:"timeout"`
}

PermitProviderModel describes the provider data model.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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