provider

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0, Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSchemaBot

func GenSchemaBot(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)

func New

func New() tfsdk.Provider

New returns an empty provider struct

Types

type Bot

type Bot struct {
	ID      types.String   `tfsdk:"id"`
	Name    types.String   `tfsdk:"name"`
	Roles   []types.String `tfsdk:"roles"`
	TokenID types.String   `tfsdk:"token_id"`
	Traits  types.Map      `tfsdk:"traits"`
	TTL     types.String   `tfsdk:"token_ttl"`

	UserName types.String `tfsdk:"user_name"`
	RoleName types.String `tfsdk:"role_name"`
}

Bot is a deserializes representation of the terraform state for this resource.

type Provider

type Provider struct {
	Client      *client.Client
	RetryConfig RetryConfig
	// contains filtered or unexported fields
}

Provider Teleport Provider

func (*Provider) Configure

Configure configures the Teleport client

func (*Provider) GetDataSources

func (p *Provider) GetDataSources(_ context.Context) (map[string]tfsdk.DataSourceType, diag.Diagnostics)

GetDataSources returns the map of provider data sources

func (*Provider) GetResources

func (p *Provider) GetResources(_ context.Context) (map[string]tfsdk.ResourceType, diag.Diagnostics)

GetResources returns the map of provider resources

func (*Provider) GetSchema

func (p *Provider) GetSchema(_ context.Context) (tfsdk.Schema, diag.Diagnostics)

GetSchema returns the Terraform provider schema

func (*Provider) IsConfigured

func (p *Provider) IsConfigured(diags diag.Diagnostics) bool

IsConfigured checks if provider is configured, adds diagnostics if not

type RetryConfig

type RetryConfig struct {
	Base     time.Duration
	Cap      time.Duration
	MaxTries int
}

Jump to

Keyboard shortcuts

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