target

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseTargetDataSourceAttributes

func BaseTargetDataSourceAttributes(targetType targettype.TargetType, opts *BaseTargetDataSourceAttributeOptions) map[string]schema.Attribute

BaseTargetDataSourceAttributes returns a map of common TF attributes used by the bzero, database, kube, and web data source schemas.

func BaseVirtualTargetDataSourceAttributes

func BaseVirtualTargetDataSourceAttributes(targetType targettype.TargetType) map[string]schema.Attribute

BaseVirtualTargetDataSourceAttributes returns a map of common TF attributes used by the database and web data source schemas.

func ControlChannelSummaryAttribute

func ControlChannelSummaryAttribute() schema.Attribute

func FlattenControlChannelSummary

func FlattenControlChannelSummary(ctx context.Context, apiObject *targets.ControlChannelSummary) types.Object

func SetBaseTargetAttributes

func SetBaseTargetAttributes(ctx context.Context, schema TargetModelInterface, baseTarget targets.TargetInterface)

SetBaseTargetAttributes populates base target attributes in the TF schema from a base target

func SetBaseVirtualTargetAttributes

func SetBaseVirtualTargetAttributes(ctx context.Context, schema VirtualTargetModelInterface, virtualTarget targets.VirtualTargetInterface)

SetBaseVirtualTargetAttributes populates base virtual target attributes in the TF schema from a virtual target

func TargetDataSourceWithTimeoutMarkdownDescription

func TargetDataSourceWithTimeoutMarkdownDescription(baseDescription string, targetType targettype.TargetType) string

Types

type BaseTargetDataSourceAttributeOptions

type BaseTargetDataSourceAttributeOptions struct {
	IsIDRequired bool
	IsIDOptional bool
	IsIDComputed bool

	IsNameOptional bool
	IsNameComputed bool
}

BaseTargetDataSourceAttributeOptions are options to use when constructing the list of common TF attributes used by the bzero, database, kube, and web data source schemas.

type ControlChannelSummaryModel

type ControlChannelSummaryModel struct {
	ControlChannelID types.String `tfsdk:"control_channel_id"`
	ConnectionNodeID types.String `tfsdk:"connection_node_id"`
	StartTime        types.String `tfsdk:"start_time"`
	EndTime          types.String `tfsdk:"end_time"`
}

ControlChannelSummaryModel maps control channel summary data.

type TargetModelInterface

type TargetModelInterface interface {
	// SetID sets the target model's ID attribute.
	SetID(value types.String)
	// SetName sets the target model's name attribute.
	SetName(value types.String)
	// SetType sets the target model's type attribute.
	SetType(value types.String)
	// SetStatus sets the target model's status attribute.
	SetStatus(value types.String)
	// SetEnvironmentID sets the target model's environment ID attribute.
	SetEnvironmentID(value types.String)
	// SetLastAgentUpdate sets the target model's last agent update attribute.
	SetLastAgentUpdate(value types.String)
	// SetAgentVersion sets the target model's agent version attribute.
	SetAgentVersion(value types.String)
	// SetRegion sets the target model's region attribute.
	SetRegion(value types.String)
	// SetAgentPublicKey sets the target model's agent public key attribute.
	SetAgentPublicKey(value types.String)
}

TargetModelInterface lets you work with common attributes from any kind of target model (excluding DAC targets)

type VirtualTargetModelInterface

type VirtualTargetModelInterface interface {
	// SetProxyTargetID sets the target model's proxy_target_id attribute.
	SetProxyTargetID(value types.String)
	// SetRemoteHost sets the target model's remote_host attribute.
	SetRemoteHost(value types.String)
	// SetRemotePort sets the target model's remote_port attribute.
	SetRemotePort(value types.Int64)
	// SetLocalPort sets the target model's local_port attribute.
	SetLocalPort(value types.Int64)
}

VirtualTargetModelInterface lets you work with common attributes from any kind of virtual target model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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