resources

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRoutingRules = RoutingRulesRepr{
	Rule: []RoutingRuleModel{{
		Requestor: RequestorModel{Type: "any"},
		Resource:  ResourceModel{Type: "any"},
		Approval: []ApprovalModel{{
			Type:    "p0",
			Options: &ApprovalOptionsModel{AllowOneParty: &False, RequireReason: &False}}},
	}},
}
View Source
var False = false

Functions

func NewRoutingRules

func NewRoutingRules() resource.Resource

Types

type ApprovalModel

type ApprovalModel struct {
	Directory   *string               `json:"directory" tfsdk:"directory"`
	Id          *string               `json:"id" tfsdk:"id"`
	Integration *string               `json:"integration" tfsdk:"integration"`
	Label       *string               `json:"label" tfsdk:"label"`
	Options     *ApprovalOptionsModel `json:"options" tfsdk:"options"`
	Services    *[]string             `json:"services" tfsdk:"services"`
	Type        string                `json:"type" tfsdk:"type"`
}

type ApprovalOptionsModel

type ApprovalOptionsModel struct {
	AllowOneParty *bool `json:"allowOneParty" tfsdk:"allow_one_party"`
	RequireReason *bool `json:"requireReason" tfsdk:"require_reason"`
}

type RequestorModel

type RequestorModel struct {
	Directory *string `json:"directory" tfsdk:"directory"`
	Id        *string `json:"id" tfsdk:"id"`
	Label     *string `json:"label" tfsdk:"label"`
	Type      string  `json:"type" tfsdk:"type"`
	Uid       *string `json:"uid" tfsdk:"uid"`
}

type ResourceFilterModel

type ResourceFilterModel struct {
	Effect  string  `json:"effect" tfsdk:"effect"`
	Key     *string `json:"key" tfsdk:"key"`
	Pattern *string `json:"pattern" tfsdk:"pattern"`
}

type ResourceModel

type ResourceModel struct {
	Filters *map[string]ResourceFilterModel `json:"filters" tfsdk:"filters"`
	Service *string                         `json:"service" tfsdk:"service"`
	Type    string                          `json:"type" tfsdk:"type"`
}

type RoutingRuleModel

type RoutingRuleModel struct {
	Requestor RequestorModel  `json:"requestor" tfsdk:"requestor"`
	Resource  ResourceModel   `json:"resource" tfsdk:"resource"`
	Approval  []ApprovalModel `json:"approval" tfsdk:"approval"`
}

type RoutingRules

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

func (*RoutingRules) Configure

func (*RoutingRules) Create

func (*RoutingRules) Delete

func (*RoutingRules) ImportState

func (*RoutingRules) Metadata

func (*RoutingRules) Read

func (*RoutingRules) Schema

func (*RoutingRules) Update

type RoutingRulesModel

type RoutingRulesModel struct {
	Rule    []RoutingRuleModel `tfsdk:"rule"`
	Version types.String       `tfsdk:"version"`
}

type RoutingRulesRepr

type RoutingRulesRepr struct {
	Rule    []RoutingRuleModel `json:"rules"`
	Version *string            `json:"version"`
}

Need a separate representation for JSON data as version handling is different: - In TF state, it may be present, unknown (during update), or null - In JSON state, it is either present or null.

type WorkflowLatestApi

type WorkflowLatestApi struct {
	Workflow RoutingRulesRepr `json:"workflow"`
}

Jump to

Keyboard shortcuts

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