projectipaddresses

package
v1.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterIPsObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"cluster_name": types.StringType,
	"inbound":      types.ListType{ElemType: types.StringType},
	"outbound":     types.ListType{ElemType: types.StringType},
}}
View Source
var IPAddressesObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"project_id": types.StringType,
	"services":   ServicesObjectType,
}}
View Source
var ServicesObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"clusters": types.ListType{ElemType: ClusterIPsObjectType},
}}

Functions

func DataSource

func DataSource() datasource.DataSource

func DataSourceSchema

func DataSourceSchema(ctx context.Context) schema.Schema

Types

type TFClusterValueModel

type TFClusterValueModel struct {
	ClusterName types.String `tfsdk:"cluster_name"`
	Inbound     types.List   `tfsdk:"inbound"`
	Outbound    types.List   `tfsdk:"outbound"`
}

type TFProjectIpAddressesModel

type TFProjectIpAddressesModel struct {
	ProjectId types.String `tfsdk:"project_id"`
	Services  types.Object `tfsdk:"services"`
}

func NewTFProjectIPAddresses

func NewTFProjectIPAddresses(ctx context.Context, ipAddresses *admin.GroupIPAddresses) (*TFProjectIpAddressesModel, diag.Diagnostics)

type TFServicesModel

type TFServicesModel struct {
	Clusters []TFClusterValueModel `tfsdk:"clusters"`
}

Jump to

Keyboard shortcuts

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