Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- func NewEncoreDataSource(typeRef TypeRef, name string, tfTypes ...TFType) datasource.DataSource
- func NewPubSubSubscription() datasource.DataSource
- func NewPubSubTopic() datasource.DataSource
- type AWSSNSTopic
- type AWSSQSQueue
- type EncoreDataSource
- func (d *EncoreDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *EncoreDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *EncoreDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *EncoreDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type EncoreProvider
- func (p *EncoreProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *EncoreProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *EncoreProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *EncoreProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *EncoreProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type EncoreProviderModel
- type Error
- type GCPPubSubSubscription
- type GCPPubSubTopic
- type Need
- type NeedsData
- type OAuthData
- type PlatformClient
- type Satisfier
- type TFType
- type TypeRef
Constants ¶
View Source
const DefaultBaseURL = "https://api.encore.dev"
Variables ¶
This section is empty.
Functions ¶
func NewEncoreDataSource ¶
func NewEncoreDataSource(typeRef TypeRef, name string, tfTypes ...TFType) datasource.DataSource
func NewPubSubSubscription ¶
func NewPubSubSubscription() datasource.DataSource
func NewPubSubTopic ¶
func NewPubSubTopic() datasource.DataSource
Types ¶
type AWSSNSTopic ¶
type AWSSNSTopic struct {
Arn string
}
type AWSSQSQueue ¶
type AWSSQSQueue struct {
Arn string
}
type EncoreDataSource ¶
type EncoreDataSource struct {
// contains filtered or unexported fields
}
func (*EncoreDataSource) Configure ¶
func (d *EncoreDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*EncoreDataSource) Metadata ¶
func (d *EncoreDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*EncoreDataSource) Read ¶
func (d *EncoreDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*EncoreDataSource) Schema ¶
func (d *EncoreDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type EncoreProvider ¶
type EncoreProvider struct {
// contains filtered or unexported fields
}
EncoreProvider defines the provider implementation.
func (*EncoreProvider) Configure ¶
func (p *EncoreProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*EncoreProvider) DataSources ¶
func (p *EncoreProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*EncoreProvider) Metadata ¶
func (p *EncoreProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*EncoreProvider) Resources ¶
func (p *EncoreProvider) Resources(ctx context.Context) []func() resource.Resource
func (*EncoreProvider) Schema ¶
func (p *EncoreProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type EncoreProviderModel ¶
type EncoreProviderModel struct { APIKey types.String `tfsdk:"auth_key"` EnvName types.String `tfsdk:"env"` }
EncoreProviderModel describes the provider data model.
type Error ¶
type Error struct { HTTPStatus string `json:"-"` HTTPCode int `json:"-"` Code string Detail json.RawMessage }
type GCPPubSubSubscription ¶
type GCPPubSubSubscription struct {
SelfLink string `tfsdk:"relative_resource_name"`
}
type GCPPubSubTopic ¶
type GCPPubSubTopic struct {
SelfLink string `tfsdk:"relative_resource_name"`
}
type NeedsData ¶
type NeedsData struct {
// contains filtered or unexported fields
}
func NewNeedsData ¶
func NewNeedsData(client *PlatformClient, envName string, ds []func() datasource.DataSource) *NeedsData
type PlatformClient ¶
type PlatformClient struct {
// contains filtered or unexported fields
}
func NewPlatformClient ¶
func NewPlatformClient(version string) *PlatformClient
func (*PlatformClient) Auth ¶
func (p *PlatformClient) Auth(ctx context.Context, authKey string) error
type Satisfier ¶
type Satisfier struct { Type string `graphql:"__typename"` AWSSQSQueue `graphql:"... on AWSSQSQueue"` GCPPubSubSubscription `graphql:"... on GCPPubSubSubscription"` GCPPubSubTopic `graphql:"... on GCPPubSubTopic"` AWSSNSTopic `graphql:"... on AWSSNSTopic"` }
Click to show internal directories.
Click to hide internal directories.