Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewPolicyDataSource() datasource.DataSource
- type CedarProvider
- func (p *CedarProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *CedarProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *CedarProvider) Functions(ctx context.Context) []func() function.Function
- func (p *CedarProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *CedarProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *CedarProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type CedarProviderModel
- type PolicyDataSource
- type PolicyDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicyDataSource ¶
func NewPolicyDataSource() datasource.DataSource
Types ¶
type CedarProvider ¶
type CedarProvider struct {
// contains filtered or unexported fields
}
CedarProvider defines the provider implementation.
func (*CedarProvider) Configure ¶
func (p *CedarProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*CedarProvider) DataSources ¶
func (p *CedarProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*CedarProvider) Functions ¶
func (p *CedarProvider) Functions(ctx context.Context) []func() function.Function
func (*CedarProvider) Metadata ¶
func (p *CedarProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*CedarProvider) Resources ¶
func (p *CedarProvider) Resources(ctx context.Context) []func() resource.Resource
func (*CedarProvider) Schema ¶
func (p *CedarProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type CedarProviderModel ¶
type CedarProviderModel struct { }
CedarProviderModel describes the provider data model.
type PolicyDataSource ¶
type PolicyDataSource struct{}
func (*PolicyDataSource) Metadata ¶
func (d *PolicyDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*PolicyDataSource) Read ¶
func (d *PolicyDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PolicyDataSource) Schema ¶
func (d *PolicyDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type PolicyDataSourceModel ¶
type PolicyDataSourceModel struct { Policies []cedarpolicy.Policy `tfsdk:"policy"` Text types.String `tfsdk:"text"` }
Click to show internal directories.
Click to hide internal directories.