reader

package
v0.0.0-...-da649aa Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PolicyDatlyResourceNamespace = "component_policy_reader_policy"

DatlyResourceNamespace identifies this package's generated resource filesystem.

Variables

View Source
var PolicyDatly = new(PolicyComponent)

The public value supports explicit component wiring.

View Source
var PolicyDatlyResources embed.FS

Functions

func PolicyDatlyType

func PolicyDatlyType() reflect.Type

PolicyDatlyType returns the public component type.

Types

type Input

type Input struct {
	TenantId        string    `parameter:"TenantId,kind=query,in=tenantId,dataType=string,required=true" predicate:"equal,h,tenant_id"`
	ResourceKind    string    `parameter:"ResourceKind,kind=query,in=resourceKind,dataType=string,required=true" predicate:"equal,h,resource_kind"`
	ResourceId      string    `parameter:"ResourceId,kind=query,in=resourceId,dataType=string,required=true" predicate:"equal,h,resource_id"`
	ResourceVersion string    `parameter:"ResourceVersion,kind=query,in=resourceVersion,dataType=string,required=true" predicate:"equal,h,resource_version"`
	Has             *InputHas `setMarker:"true" typeName:"InputHas" json:"-" sqlx:"-"`
}

Input is the generated input scaffold for policy.

func (*Input) SetResourceId

func (input *Input) SetResourceId(value string)

func (*Input) SetResourceKind

func (input *Input) SetResourceKind(value string)

func (*Input) SetResourceVersion

func (input *Input) SetResourceVersion(value string)

func (*Input) SetTenantId

func (input *Input) SetTenantId(value string)

type InputHas

type InputHas struct {
	TenantId        bool
	ResourceKind    bool
	ResourceId      bool
	ResourceVersion bool
}

type Output

type Output struct {
	Policies []*ResourcePolicy `` /* 195-byte string literal not displayed */
}

Output is the generated output scaffold for policy.

type PolicyComponent

type PolicyComponent struct {
	Contract xdatly.Component[Input, Output] "" /* 318-byte string literal not displayed */
}

Component is the generated component scaffold for policy.

func (PolicyComponent) EmbedFS

func (PolicyComponent) EmbedFS() *embed.FS

func (PolicyComponent) EmbedNamespace

func (PolicyComponent) EmbedNamespace() string

type ResourcePolicy

type ResourcePolicy struct {
	Revision        *int            `sqlx:"revision,required=true" json:"revision"`
	TenantId        string          `sqlx:"tenant_id,required=true,primaryKey=true" json:"tenantId"`
	ResourceKind    string          `sqlx:"resource_kind,required=true,primaryKey=true" json:"resourceKind"`
	ResourceId      string          `sqlx:"resource_id,required=true,primaryKey=true" json:"resourceId"`
	ResourceVersion string          `sqlx:"resource_version,required=true,primaryKey=true" json:"resourceVersion"`
	PoliciesJson    json.RawMessage `sqlx:"policies_json,enc=JSON" json:"policiesJson"`
}

ResourcePolicy is generated canonical view metadata for policy.

Jump to

Keyboard shortcuts

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