scorecard

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConditionSchema

func ConditionSchema() map[string]schema.Attribute

func NewScorecardResource

func NewScorecardResource() resource.Resource

func RuleSchema

func RuleSchema() map[string]schema.Attribute

func ScorecardSchema

func ScorecardSchema() map[string]schema.Attribute

Types

type Condition

type Condition struct {
	Operator types.String `tfsdk:"operator"`
	Property types.String `tfsdk:"property"`
	Value    types.String `tfsdk:"value"`
}

type Query

type Query struct {
	Combinator types.String `tfsdk:"combinator"`
	Conditions []Condition  `tfsdk:"conditions"`
}

type Rule

type Rule struct {
	Identifier types.String `tfsdk:"identifier"`
	Title      types.String `tfsdk:"title"`
	Level      types.String `tfsdk:"level"`
	Query      *Query       `tfsdk:"query"`
}

type ScorecardModel

type ScorecardModel struct {
	ID         types.String `tfsdk:"id"`
	Identifier types.String `tfsdk:"identifier"`
	Blueprint  types.String `tfsdk:"blueprint"`
	Title      types.String `tfsdk:"title"`
	Rules      []Rule       `tfsdk:"rules"`
	CreatedAt  types.String `tfsdk:"created_at"`
	CreatedBy  types.String `tfsdk:"created_by"`
	UpdatedAt  types.String `tfsdk:"updated_at"`
	UpdatedBy  types.String `tfsdk:"updated_by"`
}

type ScorecardResource

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

func (*ScorecardResource) Configure

func (*ScorecardResource) Create

func (*ScorecardResource) Delete

func (*ScorecardResource) ImportState

func (*ScorecardResource) Metadata

func (*ScorecardResource) Read

func (*ScorecardResource) Schema

func (*ScorecardResource) Update

Jump to

Keyboard shortcuts

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