Documentation ¶
Index ¶
- 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
- type FederatedGraphResource
- 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
- type FederatedSubgraphResource
- 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
- type LabelMatchers
- type NamespaceModel
- type NamespaceResource
- 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)
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 NewNamespaceResource ¶
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 (r *FederatedGraphResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FederatedGraphResource) Create ¶
func (r *FederatedGraphResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FederatedGraphResource) Delete ¶
func (r *FederatedGraphResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FederatedGraphResource) ImportState ¶
func (r *FederatedGraphResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FederatedGraphResource) Metadata ¶
func (r *FederatedGraphResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FederatedGraphResource) Read ¶
func (r *FederatedGraphResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FederatedGraphResource) Schema ¶
func (r *FederatedGraphResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FederatedGraphResource) Update ¶
func (r *FederatedGraphResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (r *FederatedSubgraphResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FederatedSubgraphResource) Create ¶
func (r *FederatedSubgraphResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FederatedSubgraphResource) Delete ¶
func (r *FederatedSubgraphResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FederatedSubgraphResource) ImportState ¶
func (r *FederatedSubgraphResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FederatedSubgraphResource) Metadata ¶
func (r *FederatedSubgraphResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FederatedSubgraphResource) Read ¶
func (r *FederatedSubgraphResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FederatedSubgraphResource) Schema ¶
func (r *FederatedSubgraphResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FederatedSubgraphResource) Update ¶
func (r *FederatedSubgraphResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type LabelMatcher ¶
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 ¶
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 (r *NamespaceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NamespaceResource) Create ¶
func (r *NamespaceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NamespaceResource) Delete ¶
func (r *NamespaceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NamespaceResource) ImportState ¶
func (r *NamespaceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NamespaceResource) Metadata ¶
func (r *NamespaceResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NamespaceResource) Read ¶
func (r *NamespaceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NamespaceResource) Schema ¶
func (r *NamespaceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NamespaceResource) Update ¶
func (r *NamespaceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Click to show internal directories.
Click to hide internal directories.