schemautil

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromConnector added in v0.1.8

func FromConnector(d *schema.ResourceData, connectors *border0client.SocketConnectors) diag.Diagnostics

FromConnector reads the `connector_id` from the first connector in the list of connectors from a Border0 socket, and sets the `connector_id` in the terraform resource data.

func FromSocket added in v0.1.8

func FromSocket(d *schema.ResourceData, socket *border0client.Socket) diag.Diagnostics

FromSocket converts a border0client.Socket's top level fields into terraform resource data. Those fields are: - name - socket_type - description - upstream_type - recording_enabled - connector_authentication_enabled

func FromUpstreamConfig

func FromUpstreamConfig(
	d *schema.ResourceData,
	socket *border0client.Socket,
	configs *border0client.SocketUpstreamConfigs,
) diag.Diagnostics

FromUpstreamConfig translates a socket's upstream service config to terraform resource data. In short: *border0client.SocketUpstreamConfigs -> *schema.ResourceData

func SetValues

func SetValues(d *schema.ResourceData, values map[string]any) diag.Diagnostics

SetValues sets multiple values in a resource schema.

func ToSocket added in v0.1.8

ToSocket read top level socket fields from terraform resource data and sets them in a border0client.Socket. Those fields are: - description - upstream_type - upstream_http_hostname - tags - recording_enabled - connector_authentication_enabled - connector_id

func ToUpstreamConfig

func ToUpstreamConfig(d *schema.ResourceData, socket *border0client.Socket) diag.Diagnostics

ToUpstreamConfig translates terraform resource data to a socket's upstream service config. In short: *schema.ResourceData -> *border0client.SocketUpstreamConfigs

Types

This section is empty.

Directories

Path Synopsis
socket
ssh
tls

Jump to

Keyboard shortcuts

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