Versions in this module Expand all Collapse all v0 v0.1.0 Jul 29, 2024 Changes in this version + func MapLabelMatchersToNative(ctx context.Context, labelMatchers []LabelMatcher) ([]string, diag.Diagnostics) + func MapLabelsFromNative(labels []*platformv1.Label) map[string]string + func MapLabelsToNative(labels map[string]string) []*platformv1.Label + func MapSubscriptionProtocol(sp types.String) (*common.GraphQLSubscriptionProtocol, error) + func MapWebSocketSubprotocol(wsp types.String) (*common.GraphQLWebsocketSubprotocol, error) + func NewFederatedGraphResource() resource.Resource + func NewFederatedSubgraphResource() resource.Resource + func NewNamespaceResource() resource.Resource + type FederatedGraphModel struct + AdmissionWebhookSecret types.String + AdmissionWebhookUrl types.String + Id types.String + LabelMatchers LabelMatchers + Name types.String + Namespace types.String + RoutingUrl types.String + type FederatedGraphResource struct + func (r *FederatedGraphResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...) + func (r *FederatedGraphResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) + func (r *FederatedGraphResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) + func (r *FederatedGraphResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...) + func (r *FederatedGraphResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...) + func (r *FederatedGraphResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) + func (r *FederatedGraphResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) + func (r *FederatedGraphResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) + type FederatedSubgraphModel struct + Id types.String + IsEventDrivenGraph types.Bool + IsFeatureSubgraph types.Bool + Labels types.Map + Name types.String + Namespace types.String + RoutingUrl types.String + Schema types.String + SubscriptionProtocol types.String + SubscriptionUrl types.String + WebsocketSubprotocol types.String + type FederatedSubgraphResource struct + func (r *FederatedSubgraphResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...) + func (r *FederatedSubgraphResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) + func (r *FederatedSubgraphResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) + func (r *FederatedSubgraphResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...) + func (r *FederatedSubgraphResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...) + func (r *FederatedSubgraphResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) + func (r *FederatedSubgraphResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) + func (r *FederatedSubgraphResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) + type LabelMatcher struct + Key types.String + Values types.List + type LabelMatchers []LabelMatcher + func MapLabelMatchersFromNative(ctx context.Context, labelMatchers []string) (LabelMatchers, diag.Diagnostics) + func (l *LabelMatchers) FindByKey(key string) *LabelMatcher + type NamespaceModel struct + Id types.String + Name types.String + type NamespaceResource struct + func (r *NamespaceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...) + func (r *NamespaceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) + func (r *NamespaceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) + func (r *NamespaceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...) + func (r *NamespaceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...) + func (r *NamespaceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) + func (r *NamespaceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) + func (r *NamespaceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)