provider

package
v0.0.0-...-57f2219 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: LGPL-2.1 Imports: 16 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: LGPL-2.1-or-later

SPDX-License-Identifier: LGPL-2.1-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

func NewBlueChiNodeResource

func NewBlueChiNodeResource() resource.Resource

Types

type BlueChiAgentModel

type BlueChiAgentModel struct {
	NodeName          types.String `tfsdk:"node_name"`
	ManagerHost       types.String `tfsdk:"manager_host"`
	ManagerPort       types.Int64  `tfsdk:"manager_port"`
	ManagerAddress    types.String `tfsdk:"manager_address"`
	HeartbeatInterval types.Int64  `tfsdk:"heartbeat_interval"`
	LogLevel          types.String `tfsdk:"log_level"`
	LogTarget         types.String `tfsdk:"log_target"`
	LogIsQuiet        types.Bool   `tfsdk:"log_is_quiet"`
	ConfigFile        types.String `tfsdk:"config_file"`
}

func (BlueChiAgentModel) ToConfig

type BlueChiControllerModel

type BlueChiControllerModel struct {
	AllowedNodeNames types.Set    `tfsdk:"allowed_node_names"`
	ManagerPort      types.Int64  `tfsdk:"manager_port"`
	LogLevel         types.String `tfsdk:"log_level"`
	LogTarget        types.String `tfsdk:"log_target"`
	LogIsQuiet       types.Bool   `tfsdk:"log_is_quiet"`
	ConfigFile       types.String `tfsdk:"config_file"`
}

func (BlueChiControllerModel) ToConfig

type BlueChiNodeResource

type BlueChiNodeResource struct{}

func (*BlueChiNodeResource) Configure

func (*BlueChiNodeResource) Create

func (*BlueChiNodeResource) Delete

func (*BlueChiNodeResource) ImportState

func (*BlueChiNodeResource) Metadata

func (*BlueChiNodeResource) Read

func (*BlueChiNodeResource) Schema

func (*BlueChiNodeResource) Update

type BlueChiNodeResourceModel

type BlueChiNodeResourceModel struct {
	Id                types.String            `tfsdk:"id"`
	SSH               BlueChiSSHModel         `tfsdk:"ssh"`
	BlueChiController *BlueChiControllerModel `tfsdk:"bluechi_controller"`
	BlueChiAgent      *BlueChiAgentModel      `tfsdk:"bluechi_agent"`
}

type BlueChiProvider

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

func (*BlueChiProvider) Configure

func (*BlueChiProvider) DataSources

func (p *BlueChiProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*BlueChiProvider) Metadata

func (*BlueChiProvider) Resources

func (p *BlueChiProvider) Resources(ctx context.Context) []func() resource.Resource

func (*BlueChiProvider) Schema

type BlueChiProviderModel

type BlueChiProviderModel struct{}

type BlueChiSSHModel

type BlueChiSSHModel struct {
	Host                  types.String `tfsdk:"host"`
	User                  types.String `tfsdk:"user"`
	Password              types.String `tfsdk:"password"`
	PrivateKeyPath        types.String `tfsdk:"private_key_path"`
	AcceptHostKeyInsecure types.Bool   `tfsdk:"accept_host_key_insecure"`
}

Jump to

Keyboard shortcuts

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