resources

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapLabelMatchersToNative

func MapLabelMatchersToNative(ctx context.Context, labelMatchers []LabelMatcher) ([]string, diag.Diagnostics)

func MapLabelsFromNative

func MapLabelsFromNative(labels []*platformv1.Label) map[string]string

func MapLabelsToNative

func MapLabelsToNative(labels map[string]string) []*platformv1.Label

func MapSubscriptionProtocol

func MapSubscriptionProtocol(sp types.String) (*common.GraphQLSubscriptionProtocol, error)

func MapWebSocketSubprotocol

func MapWebSocketSubprotocol(wsp types.String) (*common.GraphQLWebsocketSubprotocol, error)

func NewFederatedGraphResource

func NewFederatedGraphResource() resource.Resource

func NewFederatedSubgraphResource

func NewFederatedSubgraphResource() resource.Resource

func NewNamespaceResource

func NewNamespaceResource() resource.Resource

Types

type FederatedGraphModel

type FederatedGraphModel struct {
	Id                     types.String  `tfsdk:"id"`
	Name                   types.String  `tfsdk:"name"`
	Namespace              types.String  `tfsdk:"namespace"`
	RoutingUrl             types.String  `tfsdk:"routing_url"`
	LabelMatchers          LabelMatchers `tfsdk:"label_matchers"`
	AdmissionWebhookUrl    types.String  `tfsdk:"admission_webhook_url"`
	AdmissionWebhookSecret types.String  `tfsdk:"admission_webhook_secret"`
}

FederatedGraphModel describes the resource data model.

type FederatedGraphResource

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

FederatedGraphResource defines the resource implementation.

func (*FederatedGraphResource) Configure

func (*FederatedGraphResource) Create

func (*FederatedGraphResource) Delete

func (*FederatedGraphResource) ImportState

func (*FederatedGraphResource) Metadata

func (*FederatedGraphResource) Read

func (*FederatedGraphResource) Schema

func (*FederatedGraphResource) Update

type FederatedSubgraphModel

type FederatedSubgraphModel struct {
	Id                   types.String `tfsdk:"id"`
	Name                 types.String `tfsdk:"name"`
	Namespace            types.String `tfsdk:"namespace"`
	RoutingUrl           types.String `tfsdk:"routing_url"`
	Schema               types.String `tfsdk:"schema"`
	SubscriptionUrl      types.String `tfsdk:"subscription_url"`
	SubscriptionProtocol types.String `tfsdk:"subscription_protocol"`
	WebsocketSubprotocol types.String `tfsdk:"websocket_subprotocol"`
	Labels               types.Map    `tfsdk:"labels"`
	IsEventDrivenGraph   types.Bool   `tfsdk:"is_event_driven_graph"`
	IsFeatureSubgraph    types.Bool   `tfsdk:"is_feature_subgraph"`
}

FederatedSubgraphModel describes the resource data model.

type FederatedSubgraphResource

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

FederatedSubgraphResource defines the resource implementation.

func (*FederatedSubgraphResource) Configure

func (*FederatedSubgraphResource) Create

func (*FederatedSubgraphResource) Delete

func (*FederatedSubgraphResource) ImportState

func (*FederatedSubgraphResource) Metadata

func (*FederatedSubgraphResource) Read

func (*FederatedSubgraphResource) Schema

func (*FederatedSubgraphResource) Update

type LabelMatcher

type LabelMatcher struct {
	Key    types.String `tfsdk:"key"`
	Values types.List   `tfsdk:"values"`
}

type LabelMatchers

type LabelMatchers []LabelMatcher

func MapLabelMatchersFromNative

func MapLabelMatchersFromNative(ctx context.Context, labelMatchers []string) (LabelMatchers, diag.Diagnostics)

func (*LabelMatchers) FindByKey

func (l *LabelMatchers) FindByKey(key string) *LabelMatcher

type NamespaceModel

type NamespaceModel struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

NamespaceModel describes the resource data model.

type NamespaceResource

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

NamespaceResource defines the resource implementation.

func (*NamespaceResource) Configure

func (*NamespaceResource) Create

func (*NamespaceResource) Delete

func (*NamespaceResource) ImportState

func (*NamespaceResource) Metadata

func (*NamespaceResource) Read

func (*NamespaceResource) Schema

func (*NamespaceResource) Update

Jump to

Keyboard shortcuts

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