resource

package
v0.0.0-...-2873e01 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataSourceResourceType  = "data:raw"
	SettingsResourceType    = "setting"
	RbacResourceType        = "rbac-rule"
	ResourceTranslationType = "resource-translation"
)

Functions

func APIGatewayErrUnresolved

func APIGatewayErrUnresolved(ii Identifiers) error

func ApplicationErrUnresolved

func ApplicationErrUnresolved(ii Identifiers) error

func AutomationWorkflowErrUnresolved

func AutomationWorkflowErrUnresolved(ii Identifiers) error

func AutomationWorkflowRbacReferences

func AutomationWorkflowRbacReferences(workflow string) (res *Ref, pp []*Ref, err error)

AutomationWorkflowRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func AutomationWorkflowResourceTranslationReferences

func AutomationWorkflowResourceTranslationReferences(workflow string) (res *Ref, pp []*Ref, err error)

AutomationWorkflowResourceTranslationReferences generates Locale references

Resources with "envoy: false" are skipped

This function is auto-generated

func Check

func Check(a string, ii ...interface{}) bool

Check checks if the identifier c is in the set of identifiers ii

func ComposeChartErrUnresolved

func ComposeChartErrUnresolved(ii Identifiers) error

func ComposeChartRbacReferences

func ComposeChartRbacReferences(namespaceID string, chart string) (res *Ref, pp []*Ref, err error)

ComposeChartRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func ComposeChartResourceTranslationReferences

func ComposeChartResourceTranslationReferences(namespaceID string, self string) (res *Ref, pp []*Ref, err error)

ComposeChartResourceTranslationReferences generates Locale references

This function is auto-generated

func ComposeModuleErrUnresolved

func ComposeModuleErrUnresolved(ii Identifiers) error

func ComposeModuleFieldErrUnresolved

func ComposeModuleFieldErrUnresolved(ii Identifiers) error

func ComposeModuleFieldExtractUserFieldRoles

func ComposeModuleFieldExtractUserFieldRoles(i interface{}) []string

ComposeModuleFieldExtractUserFieldRoles is a helper to extract roles from the given filer options.

func ComposeModuleFieldRbacReferences

func ComposeModuleFieldRbacReferences(namespaceID string, moduleID string, moduleField string) (res *Ref, pp []*Ref, err error)

ComposeModuleFieldRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func ComposeModuleFieldResourceTranslationReferences

func ComposeModuleFieldResourceTranslationReferences(namespaceID string, moduleID string, self string) (res *Ref, pp []*Ref, err error)

ComposeModuleFieldResourceTranslationReferences generates Locale references

This function is auto-generated

func ComposeModuleRbacReferences

func ComposeModuleRbacReferences(namespaceID string, module string) (res *Ref, pp []*Ref, err error)

ComposeModuleRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func ComposeModuleResourceTranslationReferences

func ComposeModuleResourceTranslationReferences(namespaceID string, self string) (res *Ref, pp []*Ref, err error)

ComposeModuleResourceTranslationReferences generates Locale references

This function is auto-generated

func ComposeNamespaceErrUnresolved

func ComposeNamespaceErrUnresolved(ii Identifiers) error

func ComposeNamespaceRbacReferences

func ComposeNamespaceRbacReferences(namespace string) (res *Ref, pp []*Ref, err error)

ComposeNamespaceRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func ComposeNamespaceResourceTranslationReferences

func ComposeNamespaceResourceTranslationReferences(self string) (res *Ref, pp []*Ref, err error)

ComposeNamespaceResourceTranslationReferences generates Locale references

This function is auto-generated

func ComposePageErrUnresolved

func ComposePageErrUnresolved(ii Identifiers) error

func ComposePageLayoutErrUnresolved

func ComposePageLayoutErrUnresolved(ii Identifiers) error

func ComposePageLayoutRbacReferences

func ComposePageLayoutRbacReferences(namespaceID string, pageID string, pageLayout string) (res *Ref, pp []*Ref, err error)

ComposePageLayoutRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func ComposePageLayoutResourceTranslationReferences

func ComposePageLayoutResourceTranslationReferences(namespaceID string, pageID string, self string) (res *Ref, pp []*Ref, err error)

ComposePageLayoutResourceTranslationReferences generates Locale references

This function is auto-generated

func ComposePageRbacReferences

func ComposePageRbacReferences(namespaceID string, page string) (res *Ref, pp []*Ref, err error)

ComposePageRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func ComposePageResourceTranslationReferences

func ComposePageResourceTranslationReferences(namespaceID string, self string) (res *Ref, pp []*Ref, err error)

ComposePageResourceTranslationReferences generates Locale references

This function is auto-generated

func ComposeRecordErrUnresolved

func ComposeRecordErrUnresolved(ii Identifiers) error

func ComposeRecordRbacReferences

func ComposeRecordRbacReferences(namespaceID string, moduleID string, record string) (res *Ref, pp []*Ref, err error)

ComposeRecordRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func ComposeRecordShaper

func ComposeRecordShaper() shaper

ComposeRecordShaper initializes and returns a new compose record resource shaper

func FederationExposedModuleRbacReferences

func FederationExposedModuleRbacReferences(nodeID string, exposedModule string) (res *Ref, pp []*Ref, err error)

FederationExposedModuleRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func FederationNodeRbacReferences

func FederationNodeRbacReferences(node string) (res *Ref, pp []*Ref, err error)

FederationNodeRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func FederationSharedModuleRbacReferences

func FederationSharedModuleRbacReferences(nodeID string, sharedModule string) (res *Ref, pp []*Ref, err error)

FederationSharedModuleRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func FindAPIGateway

func FindAPIGateway(rr InterfaceSet, ii Identifiers) (ns *types.ApigwRoute)

FindAPIGateway looks for the ApigwRoute in the resource set

func FindApplication

func FindApplication(rr InterfaceSet, ii Identifiers) (ap *types.Application)

FindApplication looks for the app in the resource set

func FindAutomationWorkflow

func FindAutomationWorkflow(rr InterfaceSet, ii Identifiers) (ns *types.Workflow)

FindAutomationWorkflow looks for the workflow in the resource set

func FindComposeChart

func FindComposeChart(rr InterfaceSet, ii Identifiers) (ch *types.Chart)

FindComposeChart looks for the chart in the resources

func FindComposeModule

func FindComposeModule(rr InterfaceSet, ii Identifiers) (ns *types.Module)

FindComposeModule looks for the module in the resource set

func FindComposeModuleField

func FindComposeModuleField(rr InterfaceSet, mod, ii Identifiers) (field *types.ModuleField)

FindComposeModule looks for the module in the resource set

func FindComposeNamespace

func FindComposeNamespace(rr InterfaceSet, ii Identifiers) (ns *types.Namespace)

FindComposeNamespace looks for the namespace in the resource set

func FindComposePage

func FindComposePage(rr InterfaceSet, ii Identifiers) (pg *types.Page)

FindComposePage looks for the page in the resources

func FindComposePageLayout

func FindComposePageLayout(rr InterfaceSet, ii Identifiers) (pg *types.PageLayout)

FindComposePageLayout looks for the page in the resources

func FindReport

func FindReport(rr InterfaceSet, ii Identifiers) (ns *types.Report)

FindReport looks for the workflow in the resource set

func FindRole

func FindRole(rr InterfaceSet, ii Identifiers) (rl *types.Role)

FindRole looks for the role in the resources

func FindTemplate

func FindTemplate(rr InterfaceSet, ii Identifiers) (u *types.Template)

FindTemplate looks for the template in the resources

func FindUser

func FindUser(rr InterfaceSet, ii Identifiers) (u *types.User)

FindUser looks for the user in the resources

func IgnoreDepResolution

func IgnoreDepResolution(ref *Ref) bool

func ParseResourceTranslation

func ParseResourceTranslation(res string) (string, *Ref, []*Ref, error)

ParseResourceTranslation generates resource setting logic for each resource

Resources with "envoy: false" are skipped

This function is auto-generated

func ParseRule

func ParseRule(res string) (string, *Ref, []*Ref, error)

Parse generates resource setting logic for each resource

Resources with "envoy: false" are skipped

This function is auto-generated

func RbacResourceErrNotFound

func RbacResourceErrNotFound(ii Identifiers) error

func ReportErrUnresolved

func ReportErrUnresolved(ii Identifiers) error

func ResourceTranslationErrNotFound

func ResourceTranslationErrNotFound(ii Identifiers) error

func RoleErrUnresolved

func RoleErrUnresolved(ii Identifiers) error

func SystemApigwRouteRbacReferences

func SystemApigwRouteRbacReferences(apigwRoute string) (res *Ref, pp []*Ref, err error)

SystemApigwRouteRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemApplicationRbacReferences

func SystemApplicationRbacReferences(application string) (res *Ref, pp []*Ref, err error)

SystemApplicationRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemAuthClientRbacReferences

func SystemAuthClientRbacReferences(authClient string) (res *Ref, pp []*Ref, err error)

SystemAuthClientRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemDalConnectionRbacReferences

func SystemDalConnectionRbacReferences(dalConnection string) (res *Ref, pp []*Ref, err error)

SystemDalConnectionRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemDataPrivacyRequestRbacReferences

func SystemDataPrivacyRequestRbacReferences(dataPrivacyRequest string) (res *Ref, pp []*Ref, err error)

SystemDataPrivacyRequestRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemQueueRbacReferences

func SystemQueueRbacReferences(queue string) (res *Ref, pp []*Ref, err error)

SystemQueueRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemReportRbacReferences

func SystemReportRbacReferences(report string) (res *Ref, pp []*Ref, err error)

SystemReportRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemRoleRbacReferences

func SystemRoleRbacReferences(role string) (res *Ref, pp []*Ref, err error)

SystemRoleRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemTemplateRbacReferences

func SystemTemplateRbacReferences(template string) (res *Ref, pp []*Ref, err error)

SystemTemplateRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func SystemUserRbacReferences

func SystemUserRbacReferences(user string) (res *Ref, pp []*Ref, err error)

SystemUserRbacReferences generates RBAC references

Resources with "envoy: false" are skipped

This function is auto-generated

func TemplateErrUnresolved

func TemplateErrUnresolved(ii Identifiers) error

func UnpackComposePage

func UnpackComposePage(p *types.Page) (*types.Page, *Ref, *Ref)

func UnpackComposePageLayout

func UnpackComposePageLayout(p *types.PageLayout) (*types.PageLayout, *Ref, *Ref)

func UserErrUnresolved

func UserErrUnresolved(ii Identifiers) error

Types

type APIGateway

type APIGateway struct {
	Res *types.ApigwRoute

	Filters []*APIGatewayFilter
	// contains filtered or unexported fields
}

func NewAPIGateway

func NewAPIGateway(res *types.ApigwRoute) *APIGateway

func (*APIGateway) AddGatewayFilter

func (r *APIGateway) AddGatewayFilter(res *types.ApigwFilter) *APIGatewayFilter

func (APIGateway) AddIdentifier

func (t APIGateway) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (APIGateway) AddRef

func (t APIGateway) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (APIGateway) Config

func (t APIGateway) Config() *EnvoyConfig

func (APIGateway) HasRefs

func (t APIGateway) HasRefs() bool

func (APIGateway) Identifiers

func (t APIGateway) Identifiers() Identifiers

func (APIGateway) MarkPlaceholder

func (t APIGateway) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (APIGateway) Placeholder

func (t APIGateway) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*APIGateway) RBACParts

func (r *APIGateway) RBACParts() (resource string, ref *Ref, path []*Ref)

func (APIGateway) ReID

func (t APIGateway) ReID(ii Identifiers)

func (APIGateway) ReRef

func (t APIGateway) ReRef(old RefSet, new RefSet)

func (APIGateway) Ref

func (t APIGateway) Ref() *Ref

func (APIGateway) Refs

func (t APIGateway) Refs() RefSet

func (APIGateway) ReplaceRef

func (t APIGateway) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*APIGateway) Resource

func (r *APIGateway) Resource() interface{}

func (APIGateway) ResourceType

func (t APIGateway) ResourceType() string

func (APIGateway) SetConfig

func (t APIGateway) SetConfig(cfg *EnvoyConfig)

func (APIGateway) SetIdentifier

func (t APIGateway) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (APIGateway) SetResourceType

func (t APIGateway) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (APIGateway) SetTimestamps

func (t APIGateway) SetTimestamps(ts *Timestamps)

func (APIGateway) SetUserRefs

func (t APIGateway) SetUserRefs(uu []*Userstamp)

func (APIGateway) SetUserstamps

func (t APIGateway) SetUserstamps(us *Userstamps)

func (*APIGateway) SysID

func (r *APIGateway) SysID() uint64

func (APIGateway) Timestamps

func (t APIGateway) Timestamps() *Timestamps

func (APIGateway) UserRefs

func (t APIGateway) UserRefs() RefSet

func (APIGateway) Userstamps

func (t APIGateway) Userstamps() *Userstamps

type APIGatewayFilter

type APIGatewayFilter struct {
	Res *types.ApigwFilter
	// contains filtered or unexported fields
}

func (APIGatewayFilter) AddIdentifier

func (t APIGatewayFilter) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (APIGatewayFilter) AddRef

func (t APIGatewayFilter) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (APIGatewayFilter) Config

func (t APIGatewayFilter) Config() *EnvoyConfig

func (APIGatewayFilter) HasRefs

func (t APIGatewayFilter) HasRefs() bool

func (APIGatewayFilter) Identifiers

func (t APIGatewayFilter) Identifiers() Identifiers

func (APIGatewayFilter) MarkPlaceholder

func (t APIGatewayFilter) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (APIGatewayFilter) Placeholder

func (t APIGatewayFilter) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (APIGatewayFilter) ReID

func (t APIGatewayFilter) ReID(ii Identifiers)

func (APIGatewayFilter) ReRef

func (t APIGatewayFilter) ReRef(old RefSet, new RefSet)

func (APIGatewayFilter) Ref

func (t APIGatewayFilter) Ref() *Ref

func (APIGatewayFilter) Refs

func (t APIGatewayFilter) Refs() RefSet

func (APIGatewayFilter) ReplaceRef

func (t APIGatewayFilter) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (APIGatewayFilter) ResourceType

func (t APIGatewayFilter) ResourceType() string

func (APIGatewayFilter) SetConfig

func (t APIGatewayFilter) SetConfig(cfg *EnvoyConfig)

func (APIGatewayFilter) SetIdentifier

func (t APIGatewayFilter) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (APIGatewayFilter) SetResourceType

func (t APIGatewayFilter) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (APIGatewayFilter) SetTimestamps

func (t APIGatewayFilter) SetTimestamps(ts *Timestamps)

func (APIGatewayFilter) SetUserRefs

func (t APIGatewayFilter) SetUserRefs(uu []*Userstamp)

func (APIGatewayFilter) SetUserstamps

func (t APIGatewayFilter) SetUserstamps(us *Userstamps)

func (APIGatewayFilter) Timestamps

func (t APIGatewayFilter) Timestamps() *Timestamps

func (APIGatewayFilter) UserRefs

func (t APIGatewayFilter) UserRefs() RefSet

func (APIGatewayFilter) Userstamps

func (t APIGatewayFilter) Userstamps() *Userstamps

type Application

type Application struct {
	Res *types.Application
	// contains filtered or unexported fields
}

Application represents a Application

func NewApplication

func NewApplication(res *types.Application) *Application

func (Application) AddIdentifier

func (t Application) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (Application) AddRef

func (t Application) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (Application) Config

func (t Application) Config() *EnvoyConfig

func (Application) HasRefs

func (t Application) HasRefs() bool

func (Application) Identifiers

func (t Application) Identifiers() Identifiers

func (Application) MarkPlaceholder

func (t Application) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Application) Placeholder

func (t Application) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*Application) RBACParts

func (r *Application) RBACParts() (resource string, ref *Ref, path []*Ref)

func (Application) ReID

func (t Application) ReID(ii Identifiers)

func (Application) ReRef

func (t Application) ReRef(old RefSet, new RefSet)

func (Application) Ref

func (t Application) Ref() *Ref

func (Application) Refs

func (t Application) Refs() RefSet

func (Application) ReplaceRef

func (t Application) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*Application) Resource

func (r *Application) Resource() interface{}

func (Application) ResourceType

func (t Application) ResourceType() string

func (Application) SetConfig

func (t Application) SetConfig(cfg *EnvoyConfig)

func (Application) SetIdentifier

func (t Application) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (Application) SetResourceType

func (t Application) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (Application) SetTimestamps

func (t Application) SetTimestamps(ts *Timestamps)

func (Application) SetUserRefs

func (t Application) SetUserRefs(uu []*Userstamp)

func (Application) SetUserstamps

func (t Application) SetUserstamps(us *Userstamps)

func (*Application) SysID

func (r *Application) SysID() uint64

func (Application) Timestamps

func (t Application) Timestamps() *Timestamps

func (Application) UserRefs

func (t Application) UserRefs() RefSet

func (Application) Userstamps

func (t Application) Userstamps() *Userstamps

type AutomationTrigger

type AutomationTrigger struct {
	Res *types.Trigger
	// contains filtered or unexported fields
}

func (AutomationTrigger) AddIdentifier

func (t AutomationTrigger) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (AutomationTrigger) AddRef

func (t AutomationTrigger) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (AutomationTrigger) Config

func (t AutomationTrigger) Config() *EnvoyConfig

func (AutomationTrigger) HasRefs

func (t AutomationTrigger) HasRefs() bool

func (AutomationTrigger) Identifiers

func (t AutomationTrigger) Identifiers() Identifiers

func (AutomationTrigger) MarkPlaceholder

func (t AutomationTrigger) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (AutomationTrigger) Placeholder

func (t AutomationTrigger) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (AutomationTrigger) ReID

func (t AutomationTrigger) ReID(ii Identifiers)

func (AutomationTrigger) ReRef

func (t AutomationTrigger) ReRef(old RefSet, new RefSet)

func (AutomationTrigger) Ref

func (t AutomationTrigger) Ref() *Ref

func (AutomationTrigger) Refs

func (t AutomationTrigger) Refs() RefSet

func (AutomationTrigger) ReplaceRef

func (t AutomationTrigger) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (AutomationTrigger) ResourceType

func (t AutomationTrigger) ResourceType() string

func (AutomationTrigger) SetConfig

func (t AutomationTrigger) SetConfig(cfg *EnvoyConfig)

func (AutomationTrigger) SetIdentifier

func (t AutomationTrigger) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (AutomationTrigger) SetResourceType

func (t AutomationTrigger) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (AutomationTrigger) SetTimestamps

func (t AutomationTrigger) SetTimestamps(ts *Timestamps)

func (AutomationTrigger) SetUserRefs

func (t AutomationTrigger) SetUserRefs(uu []*Userstamp)

func (AutomationTrigger) SetUserstamps

func (t AutomationTrigger) SetUserstamps(us *Userstamps)

func (AutomationTrigger) Timestamps

func (t AutomationTrigger) Timestamps() *Timestamps

func (AutomationTrigger) UserRefs

func (t AutomationTrigger) UserRefs() RefSet

func (AutomationTrigger) Userstamps

func (t AutomationTrigger) Userstamps() *Userstamps

type AutomationWorkflow

type AutomationWorkflow struct {
	Res *types.Workflow

	Triggers []*AutomationTrigger
	Steps    []*AutomationWorkflowStep
	Paths    []*AutomationWorkflowPath
	// contains filtered or unexported fields
}

func NewAutomationWorkflow

func NewAutomationWorkflow(res *types.Workflow) *AutomationWorkflow

func (*AutomationWorkflow) AddAutomationTrigger

func (r *AutomationWorkflow) AddAutomationTrigger(res *types.Trigger) *AutomationTrigger

func (*AutomationWorkflow) AddAutomationWorkflowPath

func (r *AutomationWorkflow) AddAutomationWorkflowPath(res *types.WorkflowPath) *AutomationWorkflowPath

func (*AutomationWorkflow) AddAutomationWorkflowStep

func (r *AutomationWorkflow) AddAutomationWorkflowStep(res *types.WorkflowStep) *AutomationWorkflowStep

func (AutomationWorkflow) AddIdentifier

func (t AutomationWorkflow) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (AutomationWorkflow) AddRef

func (t AutomationWorkflow) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (AutomationWorkflow) Config

func (t AutomationWorkflow) Config() *EnvoyConfig

func (AutomationWorkflow) HasRefs

func (t AutomationWorkflow) HasRefs() bool

func (AutomationWorkflow) Identifiers

func (t AutomationWorkflow) Identifiers() Identifiers

func (AutomationWorkflow) MarkPlaceholder

func (t AutomationWorkflow) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (AutomationWorkflow) Placeholder

func (t AutomationWorkflow) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*AutomationWorkflow) RBACParts

func (r *AutomationWorkflow) RBACParts() (resource string, ref *Ref, path []*Ref)

func (AutomationWorkflow) ReID

func (t AutomationWorkflow) ReID(ii Identifiers)

func (AutomationWorkflow) ReRef

func (t AutomationWorkflow) ReRef(old RefSet, new RefSet)

func (AutomationWorkflow) Ref

func (t AutomationWorkflow) Ref() *Ref

func (AutomationWorkflow) Refs

func (t AutomationWorkflow) Refs() RefSet

func (AutomationWorkflow) ReplaceRef

func (t AutomationWorkflow) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*AutomationWorkflow) Resource

func (r *AutomationWorkflow) Resource() interface{}

func (*AutomationWorkflow) ResourceTranslationParts

func (r *AutomationWorkflow) ResourceTranslationParts() (resource string, ref *Ref, path []*Ref)

func (AutomationWorkflow) ResourceType

func (t AutomationWorkflow) ResourceType() string

func (AutomationWorkflow) SetConfig

func (t AutomationWorkflow) SetConfig(cfg *EnvoyConfig)

func (AutomationWorkflow) SetIdentifier

func (t AutomationWorkflow) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (AutomationWorkflow) SetResourceType

func (t AutomationWorkflow) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (AutomationWorkflow) SetTimestamps

func (t AutomationWorkflow) SetTimestamps(ts *Timestamps)

func (AutomationWorkflow) SetUserRefs

func (t AutomationWorkflow) SetUserRefs(uu []*Userstamp)

func (AutomationWorkflow) SetUserstamps

func (t AutomationWorkflow) SetUserstamps(us *Userstamps)

func (*AutomationWorkflow) SysID

func (r *AutomationWorkflow) SysID() uint64

func (AutomationWorkflow) Timestamps

func (t AutomationWorkflow) Timestamps() *Timestamps

func (AutomationWorkflow) UserRefs

func (t AutomationWorkflow) UserRefs() RefSet

func (AutomationWorkflow) Userstamps

func (t AutomationWorkflow) Userstamps() *Userstamps

type AutomationWorkflowPath

type AutomationWorkflowPath struct {
	Res *types.WorkflowPath

	ParentStep Identifiers
	ChildStep  Identifiers
	// contains filtered or unexported fields
}

func (AutomationWorkflowPath) AddIdentifier

func (t AutomationWorkflowPath) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (AutomationWorkflowPath) AddRef

func (t AutomationWorkflowPath) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (AutomationWorkflowPath) Config

func (t AutomationWorkflowPath) Config() *EnvoyConfig

func (AutomationWorkflowPath) HasRefs

func (t AutomationWorkflowPath) HasRefs() bool

func (AutomationWorkflowPath) Identifiers

func (t AutomationWorkflowPath) Identifiers() Identifiers

func (AutomationWorkflowPath) MarkPlaceholder

func (t AutomationWorkflowPath) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (AutomationWorkflowPath) Placeholder

func (t AutomationWorkflowPath) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (AutomationWorkflowPath) ReID

func (t AutomationWorkflowPath) ReID(ii Identifiers)

func (AutomationWorkflowPath) ReRef

func (t AutomationWorkflowPath) ReRef(old RefSet, new RefSet)

func (AutomationWorkflowPath) Ref

func (t AutomationWorkflowPath) Ref() *Ref

func (AutomationWorkflowPath) Refs

func (t AutomationWorkflowPath) Refs() RefSet

func (AutomationWorkflowPath) ReplaceRef

func (t AutomationWorkflowPath) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (AutomationWorkflowPath) ResourceType

func (t AutomationWorkflowPath) ResourceType() string

func (AutomationWorkflowPath) SetConfig

func (t AutomationWorkflowPath) SetConfig(cfg *EnvoyConfig)

func (AutomationWorkflowPath) SetIdentifier

func (t AutomationWorkflowPath) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (AutomationWorkflowPath) SetResourceType

func (t AutomationWorkflowPath) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (AutomationWorkflowPath) SetTimestamps

func (t AutomationWorkflowPath) SetTimestamps(ts *Timestamps)

func (AutomationWorkflowPath) SetUserRefs

func (t AutomationWorkflowPath) SetUserRefs(uu []*Userstamp)

func (AutomationWorkflowPath) SetUserstamps

func (t AutomationWorkflowPath) SetUserstamps(us *Userstamps)

func (AutomationWorkflowPath) Timestamps

func (t AutomationWorkflowPath) Timestamps() *Timestamps

func (AutomationWorkflowPath) UserRefs

func (t AutomationWorkflowPath) UserRefs() RefSet

func (AutomationWorkflowPath) Userstamps

func (t AutomationWorkflowPath) Userstamps() *Userstamps

type AutomationWorkflowStep

type AutomationWorkflowStep struct {
	Res *types.WorkflowStep
	// contains filtered or unexported fields
}

func (AutomationWorkflowStep) AddIdentifier

func (t AutomationWorkflowStep) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (AutomationWorkflowStep) AddRef

func (t AutomationWorkflowStep) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (AutomationWorkflowStep) Config

func (t AutomationWorkflowStep) Config() *EnvoyConfig

func (AutomationWorkflowStep) HasRefs

func (t AutomationWorkflowStep) HasRefs() bool

func (AutomationWorkflowStep) Identifiers

func (t AutomationWorkflowStep) Identifiers() Identifiers

func (AutomationWorkflowStep) MarkPlaceholder

func (t AutomationWorkflowStep) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (AutomationWorkflowStep) Placeholder

func (t AutomationWorkflowStep) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (AutomationWorkflowStep) ReID

func (t AutomationWorkflowStep) ReID(ii Identifiers)

func (AutomationWorkflowStep) ReRef

func (t AutomationWorkflowStep) ReRef(old RefSet, new RefSet)

func (AutomationWorkflowStep) Ref

func (t AutomationWorkflowStep) Ref() *Ref

func (AutomationWorkflowStep) Refs

func (t AutomationWorkflowStep) Refs() RefSet

func (AutomationWorkflowStep) ReplaceRef

func (t AutomationWorkflowStep) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (AutomationWorkflowStep) ResourceType

func (t AutomationWorkflowStep) ResourceType() string

func (AutomationWorkflowStep) SetConfig

func (t AutomationWorkflowStep) SetConfig(cfg *EnvoyConfig)

func (AutomationWorkflowStep) SetIdentifier

func (t AutomationWorkflowStep) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (AutomationWorkflowStep) SetResourceType

func (t AutomationWorkflowStep) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (AutomationWorkflowStep) SetTimestamps

func (t AutomationWorkflowStep) SetTimestamps(ts *Timestamps)

func (AutomationWorkflowStep) SetUserRefs

func (t AutomationWorkflowStep) SetUserRefs(uu []*Userstamp)

func (AutomationWorkflowStep) SetUserstamps

func (t AutomationWorkflowStep) SetUserstamps(us *Userstamps)

func (AutomationWorkflowStep) Timestamps

func (t AutomationWorkflowStep) Timestamps() *Timestamps

func (AutomationWorkflowStep) UserRefs

func (t AutomationWorkflowStep) UserRefs() RefSet

func (AutomationWorkflowStep) Userstamps

func (t AutomationWorkflowStep) Userstamps() *Userstamps

type ComposeChart

type ComposeChart struct {
	Res *types.Chart

	// Might keep track of related namespace
	RefNs   *Ref
	RefMods RefSet
	// contains filtered or unexported fields
}

ComposeChart represents a ComposeChart

func NewComposeChart

func NewComposeChart(res *types.Chart, nsRef *Ref, mmRef RefSet) *ComposeChart

func (ComposeChart) AddIdentifier

func (t ComposeChart) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposeChart) AddRef

func (t ComposeChart) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposeChart) Config

func (t ComposeChart) Config() *EnvoyConfig

func (*ComposeChart) EncodeTranslations

func (r *ComposeChart) EncodeTranslations() ([]*ResourceTranslation, error)

func (ComposeChart) HasRefs

func (t ComposeChart) HasRefs() bool

func (ComposeChart) Identifiers

func (t ComposeChart) Identifiers() Identifiers

func (ComposeChart) MarkPlaceholder

func (t ComposeChart) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposeChart) Placeholder

func (t ComposeChart) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*ComposeChart) RBACParts

func (r *ComposeChart) RBACParts() (resource string, ref *Ref, path []*Ref)

func (ComposeChart) ReID

func (t ComposeChart) ReID(ii Identifiers)

func (*ComposeChart) ReRef

func (r *ComposeChart) ReRef(old RefSet, new RefSet)

func (ComposeChart) Ref

func (t ComposeChart) Ref() *Ref

func (ComposeChart) Refs

func (t ComposeChart) Refs() RefSet

func (ComposeChart) ReplaceRef

func (t ComposeChart) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposeChart) Resource

func (r *ComposeChart) Resource() interface{}

func (*ComposeChart) ResourceTranslationParts

func (r *ComposeChart) ResourceTranslationParts() (resource string, ref *Ref, path []*Ref)

func (ComposeChart) ResourceType

func (t ComposeChart) ResourceType() string

func (ComposeChart) SetConfig

func (t ComposeChart) SetConfig(cfg *EnvoyConfig)

func (ComposeChart) SetIdentifier

func (t ComposeChart) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposeChart) SetResourceType

func (t ComposeChart) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposeChart) SetTimestamps

func (t ComposeChart) SetTimestamps(ts *Timestamps)

func (ComposeChart) SetUserRefs

func (t ComposeChart) SetUserRefs(uu []*Userstamp)

func (ComposeChart) SetUserstamps

func (t ComposeChart) SetUserstamps(us *Userstamps)

func (*ComposeChart) SysID

func (r *ComposeChart) SysID() uint64

func (ComposeChart) Timestamps

func (t ComposeChart) Timestamps() *Timestamps

func (ComposeChart) UserRefs

func (t ComposeChart) UserRefs() RefSet

func (ComposeChart) Userstamps

func (t ComposeChart) Userstamps() *Userstamps

type ComposeModule

type ComposeModule struct {
	Res       *types.Module
	ResFields []*ComposeModuleField

	// Might keep track of related NS
	RefNs    *Ref
	RefMods  RefSet
	RefRoles RefSet
	// contains filtered or unexported fields
}

func NewComposeModule

func NewComposeModule(res *types.Module, nsRef *Ref) *ComposeModule

func (*ComposeModule) AddField

func (r *ComposeModule) AddField(f *ComposeModuleField)

func (ComposeModule) AddIdentifier

func (t ComposeModule) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposeModule) AddRef

func (t ComposeModule) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposeModule) Config

func (t ComposeModule) Config() *EnvoyConfig

func (*ComposeModule) EncodeTranslations

func (r *ComposeModule) EncodeTranslations() ([]*ResourceTranslation, error)

func (ComposeModule) HasRefs

func (t ComposeModule) HasRefs() bool

func (ComposeModule) Identifiers

func (t ComposeModule) Identifiers() Identifiers

func (ComposeModule) MarkPlaceholder

func (t ComposeModule) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposeModule) Placeholder

func (t ComposeModule) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*ComposeModule) RBACParts

func (r *ComposeModule) RBACParts() (resource string, ref *Ref, path []*Ref)

func (ComposeModule) ReID

func (t ComposeModule) ReID(ii Identifiers)

func (*ComposeModule) ReRef

func (r *ComposeModule) ReRef(old RefSet, new RefSet)

func (ComposeModule) Ref

func (t ComposeModule) Ref() *Ref

func (ComposeModule) Refs

func (t ComposeModule) Refs() RefSet

func (ComposeModule) ReplaceRef

func (t ComposeModule) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposeModule) Resource

func (r *ComposeModule) Resource() interface{}

func (*ComposeModule) ResourceTranslationParts

func (r *ComposeModule) ResourceTranslationParts() (resource string, ref *Ref, path []*Ref)

func (ComposeModule) ResourceType

func (t ComposeModule) ResourceType() string

func (ComposeModule) SetConfig

func (t ComposeModule) SetConfig(cfg *EnvoyConfig)

func (ComposeModule) SetIdentifier

func (t ComposeModule) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposeModule) SetResourceType

func (t ComposeModule) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposeModule) SetTimestamps

func (t ComposeModule) SetTimestamps(ts *Timestamps)

func (ComposeModule) SetUserRefs

func (t ComposeModule) SetUserRefs(uu []*Userstamp)

func (ComposeModule) SetUserstamps

func (t ComposeModule) SetUserstamps(us *Userstamps)

func (*ComposeModule) SysID

func (r *ComposeModule) SysID() uint64

func (ComposeModule) Timestamps

func (t ComposeModule) Timestamps() *Timestamps

func (ComposeModule) UserRefs

func (t ComposeModule) UserRefs() RefSet

func (ComposeModule) Userstamps

func (t ComposeModule) Userstamps() *Userstamps

type ComposeModuleField

type ComposeModuleField struct {
	Res *types.ModuleField

	RefNs  *Ref
	RefMod *Ref
	// contains filtered or unexported fields
}

func NewComposeModuleField

func NewComposeModuleField(res *types.ModuleField, nsRef, modRef *Ref) *ComposeModuleField

func (ComposeModuleField) AddIdentifier

func (t ComposeModuleField) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposeModuleField) AddRef

func (t ComposeModuleField) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposeModuleField) Config

func (t ComposeModuleField) Config() *EnvoyConfig

func (*ComposeModuleField) EncodeTranslations

func (r *ComposeModuleField) EncodeTranslations() ([]*ResourceTranslation, error)

func (ComposeModuleField) HasRefs

func (t ComposeModuleField) HasRefs() bool

func (ComposeModuleField) Identifiers

func (t ComposeModuleField) Identifiers() Identifiers

func (ComposeModuleField) MarkPlaceholder

func (t ComposeModuleField) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposeModuleField) Placeholder

func (t ComposeModuleField) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*ComposeModuleField) RBACParts

func (r *ComposeModuleField) RBACParts() (resource string, ref *Ref, path []*Ref)

func (ComposeModuleField) ReID

func (t ComposeModuleField) ReID(ii Identifiers)

func (ComposeModuleField) ReRef

func (t ComposeModuleField) ReRef(old RefSet, new RefSet)

func (ComposeModuleField) Ref

func (t ComposeModuleField) Ref() *Ref

func (ComposeModuleField) Refs

func (t ComposeModuleField) Refs() RefSet

func (ComposeModuleField) ReplaceRef

func (t ComposeModuleField) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposeModuleField) Resource

func (r *ComposeModuleField) Resource() interface{}

func (*ComposeModuleField) ResourceTranslationParts

func (r *ComposeModuleField) ResourceTranslationParts() (resource string, ref *Ref, path []*Ref)

func (*ComposeModuleField) ResourceTranslations

func (r *ComposeModuleField) ResourceTranslations() ([]*ResourceTranslation, error)

func (ComposeModuleField) ResourceType

func (t ComposeModuleField) ResourceType() string

func (ComposeModuleField) SetConfig

func (t ComposeModuleField) SetConfig(cfg *EnvoyConfig)

func (ComposeModuleField) SetIdentifier

func (t ComposeModuleField) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposeModuleField) SetResourceType

func (t ComposeModuleField) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposeModuleField) SetTimestamps

func (t ComposeModuleField) SetTimestamps(ts *Timestamps)

func (ComposeModuleField) SetUserRefs

func (t ComposeModuleField) SetUserRefs(uu []*Userstamp)

func (ComposeModuleField) SetUserstamps

func (t ComposeModuleField) SetUserstamps(us *Userstamps)

func (ComposeModuleField) Timestamps

func (t ComposeModuleField) Timestamps() *Timestamps

func (ComposeModuleField) UserRefs

func (t ComposeModuleField) UserRefs() RefSet

func (ComposeModuleField) Userstamps

func (t ComposeModuleField) Userstamps() *Userstamps

type ComposeNamespace

type ComposeNamespace struct {
	Res *types.Namespace
	// contains filtered or unexported fields
}

func NewComposeNamespace

func NewComposeNamespace(ns *types.Namespace) *ComposeNamespace

func (ComposeNamespace) AddIdentifier

func (t ComposeNamespace) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposeNamespace) AddRef

func (t ComposeNamespace) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposeNamespace) Config

func (t ComposeNamespace) Config() *EnvoyConfig

func (*ComposeNamespace) EncodeTranslations

func (r *ComposeNamespace) EncodeTranslations() ([]*ResourceTranslation, error)

func (ComposeNamespace) HasRefs

func (t ComposeNamespace) HasRefs() bool

func (ComposeNamespace) Identifiers

func (t ComposeNamespace) Identifiers() Identifiers

func (ComposeNamespace) MarkPlaceholder

func (t ComposeNamespace) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposeNamespace) Placeholder

func (t ComposeNamespace) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*ComposeNamespace) RBACParts

func (r *ComposeNamespace) RBACParts() (resource string, ref *Ref, path []*Ref)

func (ComposeNamespace) ReID

func (t ComposeNamespace) ReID(ii Identifiers)

func (ComposeNamespace) ReRef

func (t ComposeNamespace) ReRef(old RefSet, new RefSet)

func (ComposeNamespace) Ref

func (t ComposeNamespace) Ref() *Ref

func (ComposeNamespace) Refs

func (t ComposeNamespace) Refs() RefSet

func (ComposeNamespace) ReplaceRef

func (t ComposeNamespace) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposeNamespace) Resource

func (r *ComposeNamespace) Resource() interface{}

func (*ComposeNamespace) ResourceTranslationParts

func (r *ComposeNamespace) ResourceTranslationParts() (resource string, ref *Ref, path []*Ref)

func (ComposeNamespace) ResourceType

func (t ComposeNamespace) ResourceType() string

func (ComposeNamespace) SetConfig

func (t ComposeNamespace) SetConfig(cfg *EnvoyConfig)

func (ComposeNamespace) SetIdentifier

func (t ComposeNamespace) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposeNamespace) SetResourceType

func (t ComposeNamespace) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposeNamespace) SetTimestamps

func (t ComposeNamespace) SetTimestamps(ts *Timestamps)

func (ComposeNamespace) SetUserRefs

func (t ComposeNamespace) SetUserRefs(uu []*Userstamp)

func (ComposeNamespace) SetUserstamps

func (t ComposeNamespace) SetUserstamps(us *Userstamps)

func (*ComposeNamespace) SysID

func (r *ComposeNamespace) SysID() uint64

func (ComposeNamespace) Timestamps

func (t ComposeNamespace) Timestamps() *Timestamps

func (ComposeNamespace) UserRefs

func (t ComposeNamespace) UserRefs() RefSet

func (ComposeNamespace) Userstamps

func (t ComposeNamespace) Userstamps() *Userstamps

type ComposePage

type ComposePage struct {
	Res *types.Page

	RefNs     *Ref
	RefMod    *Ref
	RefParent *Ref

	WfRefs    RefSet
	ModRefs   RefSet
	RefCharts RefSet

	BlockRefs map[int]RefSet
	// contains filtered or unexported fields
}

ComposePage represents a ComposePage

func NewComposePage

func NewComposePage(pg *types.Page, nsRef, modRef, parentRef *Ref) *ComposePage

func (ComposePage) AddIdentifier

func (t ComposePage) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposePage) AddRef

func (t ComposePage) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposePage) Config

func (t ComposePage) Config() *EnvoyConfig

func (*ComposePage) EncodeTranslations

func (r *ComposePage) EncodeTranslations() ([]*ResourceTranslation, error)

func (ComposePage) HasRefs

func (t ComposePage) HasRefs() bool

func (ComposePage) Identifiers

func (t ComposePage) Identifiers() Identifiers

func (ComposePage) MarkPlaceholder

func (t ComposePage) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposePage) Placeholder

func (t ComposePage) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*ComposePage) Prune

func (r *ComposePage) Prune(ref *Ref)

func (*ComposePage) RBACParts

func (r *ComposePage) RBACParts() (resource string, ref *Ref, path []*Ref)

func (ComposePage) ReID

func (t ComposePage) ReID(ii Identifiers)

func (*ComposePage) ReRef

func (r *ComposePage) ReRef(old RefSet, new RefSet)

func (ComposePage) Ref

func (t ComposePage) Ref() *Ref

func (ComposePage) Refs

func (t ComposePage) Refs() RefSet

func (ComposePage) ReplaceRef

func (t ComposePage) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposePage) Resource

func (r *ComposePage) Resource() interface{}

func (*ComposePage) ResourceTranslationParts

func (r *ComposePage) ResourceTranslationParts() (resource string, ref *Ref, path []*Ref)

func (ComposePage) ResourceType

func (t ComposePage) ResourceType() string

func (ComposePage) SetConfig

func (t ComposePage) SetConfig(cfg *EnvoyConfig)

func (ComposePage) SetIdentifier

func (t ComposePage) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposePage) SetResourceType

func (t ComposePage) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposePage) SetTimestamps

func (t ComposePage) SetTimestamps(ts *Timestamps)

func (ComposePage) SetUserRefs

func (t ComposePage) SetUserRefs(uu []*Userstamp)

func (ComposePage) SetUserstamps

func (t ComposePage) SetUserstamps(us *Userstamps)

func (*ComposePage) SysID

func (r *ComposePage) SysID() uint64

func (ComposePage) Timestamps

func (t ComposePage) Timestamps() *Timestamps

func (ComposePage) UserRefs

func (t ComposePage) UserRefs() RefSet

func (ComposePage) Userstamps

func (t ComposePage) Userstamps() *Userstamps

type ComposePageLayout

type ComposePageLayout struct {
	Res *types.PageLayout

	RefNs     *Ref
	RefMod    *Ref
	RefParent *Ref

	WfRefs    RefSet
	ModRefs   RefSet
	RefCharts RefSet

	BlockRefs map[int]RefSet
	// contains filtered or unexported fields
}

ComposePageLayout represents a ComposePageLayout

func NewComposePageLayout

func NewComposePageLayout(pg *types.PageLayout, nsRef, modRef, parentRef *Ref) *ComposePageLayout

func (ComposePageLayout) AddIdentifier

func (t ComposePageLayout) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposePageLayout) AddRef

func (t ComposePageLayout) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposePageLayout) Config

func (t ComposePageLayout) Config() *EnvoyConfig

func (*ComposePageLayout) EncodeTranslations

func (r *ComposePageLayout) EncodeTranslations() ([]*ResourceTranslation, error)

func (ComposePageLayout) HasRefs

func (t ComposePageLayout) HasRefs() bool

func (ComposePageLayout) Identifiers

func (t ComposePageLayout) Identifiers() Identifiers

func (ComposePageLayout) MarkPlaceholder

func (t ComposePageLayout) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposePageLayout) Placeholder

func (t ComposePageLayout) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*ComposePageLayout) Prune

func (r *ComposePageLayout) Prune(ref *Ref)

func (*ComposePageLayout) RBACParts

func (r *ComposePageLayout) RBACParts() (resource string, ref *Ref, path []*Ref)

func (ComposePageLayout) ReID

func (t ComposePageLayout) ReID(ii Identifiers)

func (*ComposePageLayout) ReRef

func (r *ComposePageLayout) ReRef(old RefSet, new RefSet)

func (ComposePageLayout) Ref

func (t ComposePageLayout) Ref() *Ref

func (ComposePageLayout) Refs

func (t ComposePageLayout) Refs() RefSet

func (ComposePageLayout) ReplaceRef

func (t ComposePageLayout) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposePageLayout) Resource

func (r *ComposePageLayout) Resource() interface{}

func (*ComposePageLayout) ResourceTranslationParts

func (r *ComposePageLayout) ResourceTranslationParts() (resource string, ref *Ref, path []*Ref)

func (ComposePageLayout) ResourceType

func (t ComposePageLayout) ResourceType() string

func (ComposePageLayout) SetConfig

func (t ComposePageLayout) SetConfig(cfg *EnvoyConfig)

func (ComposePageLayout) SetIdentifier

func (t ComposePageLayout) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposePageLayout) SetResourceType

func (t ComposePageLayout) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposePageLayout) SetTimestamps

func (t ComposePageLayout) SetTimestamps(ts *Timestamps)

func (ComposePageLayout) SetUserRefs

func (t ComposePageLayout) SetUserRefs(uu []*Userstamp)

func (ComposePageLayout) SetUserstamps

func (t ComposePageLayout) SetUserstamps(us *Userstamps)

func (*ComposePageLayout) SysID

func (r *ComposePageLayout) SysID() uint64

func (ComposePageLayout) Timestamps

func (t ComposePageLayout) Timestamps() *Timestamps

func (ComposePageLayout) UserRefs

func (t ComposePageLayout) UserRefs() RefSet

func (ComposePageLayout) Userstamps

func (t ComposePageLayout) Userstamps() *Userstamps

type ComposeRecord

type ComposeRecord struct {
	Walker CrsWalker

	RefNs *Ref

	RefMod *Ref
	RelMod *composeTypes.Module

	IDMap map[string]uint64
	// UserFlakes help the system by predefining a set of potential sys user references.
	// This should make the operation cheaper for larger datasets.
	UserFlakes UserstampIndex
	// contains filtered or unexported fields
}

func FindComposeRecordResource

func FindComposeRecordResource(rr InterfaceSet, ii Identifiers) (rec *ComposeRecord)

func NewComposeRecordSet

func NewComposeRecordSet(w CrsWalker, nsRef, modRef string) *ComposeRecord

func (ComposeRecord) AddIdentifier

func (t ComposeRecord) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposeRecord) AddRef

func (t ComposeRecord) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposeRecord) Config

func (t ComposeRecord) Config() *EnvoyConfig

func (ComposeRecord) HasRefs

func (t ComposeRecord) HasRefs() bool

func (ComposeRecord) Identifiers

func (t ComposeRecord) Identifiers() Identifiers

func (ComposeRecord) MarkPlaceholder

func (t ComposeRecord) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposeRecord) Placeholder

func (t ComposeRecord) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*ComposeRecord) RBACParts

func (r *ComposeRecord) RBACParts() (resource string, ref *Ref, path []*Ref)

func (ComposeRecord) ReID

func (t ComposeRecord) ReID(ii Identifiers)

func (ComposeRecord) ReRef

func (t ComposeRecord) ReRef(old RefSet, new RefSet)

func (ComposeRecord) Ref

func (t ComposeRecord) Ref() *Ref

func (ComposeRecord) Refs

func (t ComposeRecord) Refs() RefSet

func (ComposeRecord) ReplaceRef

func (t ComposeRecord) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposeRecord) Resource

func (r *ComposeRecord) Resource() interface{}

func (ComposeRecord) ResourceType

func (t ComposeRecord) ResourceType() string

func (ComposeRecord) SetConfig

func (t ComposeRecord) SetConfig(cfg *EnvoyConfig)

func (ComposeRecord) SetIdentifier

func (t ComposeRecord) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposeRecord) SetResourceType

func (t ComposeRecord) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposeRecord) SetTimestamps

func (t ComposeRecord) SetTimestamps(ts *Timestamps)

func (*ComposeRecord) SetUserFlakes

func (r *ComposeRecord) SetUserFlakes(uu UserstampIndex)

func (ComposeRecord) SetUserRefs

func (t ComposeRecord) SetUserRefs(uu []*Userstamp)

func (ComposeRecord) SetUserstamps

func (t ComposeRecord) SetUserstamps(us *Userstamps)

func (ComposeRecord) Timestamps

func (t ComposeRecord) Timestamps() *Timestamps

func (ComposeRecord) UserRefs

func (t ComposeRecord) UserRefs() RefSet

func (ComposeRecord) Userstamps

func (t ComposeRecord) Userstamps() *Userstamps

type ComposeRecordRaw

type ComposeRecordRaw struct {
	ID     string
	Values map[string]string

	Ts *Timestamps
	Us *Userstamps

	Config *EnvoyConfig
}

type ComposeRecordRawSet

type ComposeRecordRawSet []*ComposeRecordRaw

type ComposeRecordTemplate

type ComposeRecordTemplate struct {
	ModRef *Ref
	NsRef  *Ref

	// Name is the source name; topically file name
	Name string
	// Key determines what defines an identifier
	Key         []string
	FieldMap    MappingTplSet
	Defaultable bool
	// contains filtered or unexported fields
}

func NewComposeRecordTemplate

func NewComposeRecordTemplate(modRef, nsRef, name string, defaultable bool, fieldMap MappingTplSet, key ...string) *ComposeRecordTemplate

NewComposeRecordTemplate returns a record template based on the provided parameters.

The template is only valid up until the resource shaping; it is not allowed after the fact.

func (ComposeRecordTemplate) AddIdentifier

func (t ComposeRecordTemplate) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ComposeRecordTemplate) AddRef

func (t ComposeRecordTemplate) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ComposeRecordTemplate) Config

func (t ComposeRecordTemplate) Config() *EnvoyConfig

func (ComposeRecordTemplate) HasRefs

func (t ComposeRecordTemplate) HasRefs() bool

func (ComposeRecordTemplate) Identifiers

func (t ComposeRecordTemplate) Identifiers() Identifiers

func (ComposeRecordTemplate) MarkPlaceholder

func (t ComposeRecordTemplate) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposeRecordTemplate) Placeholder

func (t ComposeRecordTemplate) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ComposeRecordTemplate) ReID

func (t ComposeRecordTemplate) ReID(ii Identifiers)

func (ComposeRecordTemplate) ReRef

func (t ComposeRecordTemplate) ReRef(old RefSet, new RefSet)

func (ComposeRecordTemplate) Ref

func (t ComposeRecordTemplate) Ref() *Ref

func (ComposeRecordTemplate) Refs

func (t ComposeRecordTemplate) Refs() RefSet

func (ComposeRecordTemplate) ReplaceRef

func (t ComposeRecordTemplate) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ComposeRecordTemplate) Resource

func (r *ComposeRecordTemplate) Resource() interface{}

func (ComposeRecordTemplate) ResourceType

func (t ComposeRecordTemplate) ResourceType() string

func (ComposeRecordTemplate) SetConfig

func (t ComposeRecordTemplate) SetConfig(cfg *EnvoyConfig)

func (ComposeRecordTemplate) SetIdentifier

func (t ComposeRecordTemplate) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ComposeRecordTemplate) SetResourceType

func (t ComposeRecordTemplate) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ComposeRecordTemplate) SetTimestamps

func (t ComposeRecordTemplate) SetTimestamps(ts *Timestamps)

func (ComposeRecordTemplate) SetUserRefs

func (t ComposeRecordTemplate) SetUserRefs(uu []*Userstamp)

func (ComposeRecordTemplate) SetUserstamps

func (t ComposeRecordTemplate) SetUserstamps(us *Userstamps)

func (ComposeRecordTemplate) Timestamps

func (t ComposeRecordTemplate) Timestamps() *Timestamps

func (ComposeRecordTemplate) UserRefs

func (t ComposeRecordTemplate) UserRefs() RefSet

func (ComposeRecordTemplate) Userstamps

func (t ComposeRecordTemplate) Userstamps() *Userstamps

type CrsWalker

type CrsWalker func(f func(r *ComposeRecordRaw) error) error

type EnvoyConfig

type EnvoyConfig struct {
	// SkipIf determines when the encoding should be skipped for this resource
	SkipIf     string
	OnExisting MergeAlg
}

type ErrorWrapper

type ErrorWrapper interface {
	WrapError(act string, err error) error
}

type IdentifiableInterface

type IdentifiableInterface interface {
	Interface

	SysID() uint64
}

type Identifiers

type Identifiers []string

func MakeIdentifiers

func MakeIdentifiers(ss ...string) Identifiers

func (Identifiers) Add

func (ri Identifiers) Add(ii ...string) Identifiers

func (Identifiers) Clone

func (ri Identifiers) Clone() Identifiers

func (Identifiers) First

func (ri Identifiers) First() string

func (Identifiers) FirstID

func (ri Identifiers) FirstID() uint64

func (Identifiers) HasAny

func (ri Identifiers) HasAny(check Identifiers) bool

func (Identifiers) StringSlice

func (ri Identifiers) StringSlice() []string

type Interface

type Interface interface {
	Identifiers() Identifiers
	ResourceType() string
	Resource() interface{}
	Refs() RefSet
	MarkPlaceholder()
	Placeholder() bool
	ReID(Identifiers)
	ReRef(old RefSet, new RefSet)
}

func Shape

func Shape(rr []Interface, ss ...shaper) ([]Interface, error)

Shape shapes ResourceDatasets based on their correlated Template

During the shaping step, no data is removed, nor added to the original resource slice. The shapers are ran in the same order they were provided.

type InterfaceSet

type InterfaceSet []Interface

func (InterfaceSet) SearchForIdentifiers

func (rr InterfaceSet) SearchForIdentifiers(resource string, ii Identifiers) (out InterfaceSet)

SearchForIdentifiers returns the resources where the provided identifiers exist

The Resource is matching if at least one identifier matches.

func (InterfaceSet) SearchForReferences

func (rr InterfaceSet) SearchForReferences(ref *Ref) (out InterfaceSet)

SearchForReferences returns the resources where the provided references exist

The Resource is matching if at least one reference matches.

func (InterfaceSet) Walk

func (rr InterfaceSet) Walk(f func(r Interface) error) (err error)

type LocaleInterface

type LocaleInterface interface {
	Interface

	ResourceTranslationParts() (string, *Ref, []*Ref)
	EncodeTranslations() ([]*ResourceTranslation, error)
}

type MappingTpl

type MappingTpl struct {
	// Index is like Cell, but the index
	Index uint
	Cell  string
	Field string

	// If specifies when the field should be mapped
	// @todo
	If string

	// Expr specifies how to aditionally manipulate the value
	// @todo
	Expr string
}

func (*MappingTpl) IsIgnored

func (t *MappingTpl) IsIgnored() bool

type MappingTplSet

type MappingTplSet []*MappingTpl

func MapToMappingTplSet

func MapToMappingTplSet(b map[string]string) MappingTplSet

MapToMappingTplSet converts the given string map to a propper MappingTplSet

type MergeAlg

type MergeAlg int
const (
	// Default takes the operation defined default
	Default MergeAlg = iota
	// Skip skips the existing resource
	Skip
	// Replace replaces the existing resource
	Replace
	// MergeLeft updates the existing resource, giving priority to the existing data
	MergeLeft
	// MergeRight updates the existing resource, giving priority to the new data
	MergeRight
)

type PrunableInterface

type PrunableInterface interface {
	Interface

	Prune(*Ref)
}

type RBACInterface

type RBACInterface interface {
	Interface

	RBACParts() (string, *Ref, []*Ref)
}

type RbacRule

type RbacRule struct {
	Res *rbac.Rule

	RefResource string
	RefRes      *Ref
	RefRole     *Ref
	RefPath     []*Ref
	// contains filtered or unexported fields
}

func NewRbacRule

func NewRbacRule(res *rbac.Rule, refRole, refRes *Ref, refResource string, refPath ...*Ref) *RbacRule

func (RbacRule) AddIdentifier

func (t RbacRule) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (RbacRule) AddRef

func (t RbacRule) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (RbacRule) Config

func (t RbacRule) Config() *EnvoyConfig

func (RbacRule) HasRefs

func (t RbacRule) HasRefs() bool

func (RbacRule) Identifiers

func (t RbacRule) Identifiers() Identifiers

func (RbacRule) MarkPlaceholder

func (t RbacRule) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (RbacRule) Placeholder

func (t RbacRule) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (RbacRule) ReID

func (t RbacRule) ReID(ii Identifiers)

func (*RbacRule) ReRef

func (r *RbacRule) ReRef(old RefSet, new RefSet)

func (RbacRule) Ref

func (t RbacRule) Ref() *Ref

func (RbacRule) Refs

func (t RbacRule) Refs() RefSet

func (RbacRule) ReplaceRef

func (t RbacRule) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*RbacRule) Resource

func (r *RbacRule) Resource() interface{}

func (RbacRule) ResourceType

func (t RbacRule) ResourceType() string

func (RbacRule) SetConfig

func (t RbacRule) SetConfig(cfg *EnvoyConfig)

func (RbacRule) SetIdentifier

func (t RbacRule) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (RbacRule) SetResourceType

func (t RbacRule) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (RbacRule) SetTimestamps

func (t RbacRule) SetTimestamps(ts *Timestamps)

func (RbacRule) SetUserRefs

func (t RbacRule) SetUserRefs(uu []*Userstamp)

func (RbacRule) SetUserstamps

func (t RbacRule) SetUserstamps(us *Userstamps)

func (RbacRule) Timestamps

func (t RbacRule) Timestamps() *Timestamps

func (RbacRule) UserRefs

func (t RbacRule) UserRefs() RefSet

func (RbacRule) Userstamps

func (t RbacRule) Userstamps() *Userstamps

func (*RbacRule) WrapError

func (r *RbacRule) WrapError(act string, err error) error

type Ref

type Ref struct {
	// @todo check with Denis regarding strings here (the cdocs comment)
	// @todo should this become node type instead?
	ResourceType string
	Identifiers  Identifiers
	Constraints  RefSet
}

func MakeModuleRef

func MakeModuleRef(id uint64, handle, name string) *Ref

func MakeNamespaceRef

func MakeNamespaceRef(id uint64, handle, name string) *Ref

func MakePageRef

func MakePageRef(id uint64, handle, title string) *Ref

func MakeRef

func MakeRef(rt string, ii Identifiers) *Ref

func MakeRoleRef

func MakeRoleRef(id uint64, handle, name string) *Ref

func MakeWildRef

func MakeWildRef(rt string) *Ref

func (*Ref) Constraint

func (r *Ref) Constraint(c *Ref) *Ref

Constraint returns the current reference with added constraint

func (*Ref) IsWildcard

func (r *Ref) IsWildcard() bool

IsWildcard checks if this Ref points to all resources of a specific resource type

type RefSet

type RefSet []*Ref

func (RefSet) Equals

func (aa RefSet) Equals(bb RefSet) bool

Equals checks if two RefSets match

They match if everything matches, even constraints (important)

func (RefSet) HasRef

func (rr RefSet) HasRef(ref *Ref) bool

func (RefSet) IsSubset

func (aa RefSet) IsSubset(bb RefSet) bool

IsSbubset checks if aa is subset of bb

Order is important; primary use is RBAC and res. tr. path checking.

func (RefSet) Unique

func (rr RefSet) Unique() RefSet

Unique returns only unique references

Uniqueness is defined as "two references may not define the same resource type and identifier" combinations.

type RefableInterface

type RefableInterface interface {
	Interface

	Ref() string
}

type Report

type Report struct {
	Res *types.Report

	Sources []*ReportSource
	Blocks  []*ReportBlock
	// contains filtered or unexported fields
}

func NewReport

func NewReport(res *types.Report) *Report

func (Report) AddIdentifier

func (t Report) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (Report) AddRef

func (t Report) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (*Report) AddReportBlock

func (r *Report) AddReportBlock(res *types.ReportBlock) *ReportBlock

func (*Report) AddReportSource

func (r *Report) AddReportSource(res *types.ReportDataSource) *ReportSource

func (Report) Config

func (t Report) Config() *EnvoyConfig

func (Report) HasRefs

func (t Report) HasRefs() bool

func (Report) Identifiers

func (t Report) Identifiers() Identifiers

func (Report) MarkPlaceholder

func (t Report) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Report) Placeholder

func (t Report) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*Report) RBACParts

func (r *Report) RBACParts() (resource string, ref *Ref, path []*Ref)

func (Report) ReID

func (t Report) ReID(ii Identifiers)

func (Report) ReRef

func (t Report) ReRef(old RefSet, new RefSet)

func (Report) Ref

func (t Report) Ref() *Ref

func (Report) Refs

func (t Report) Refs() RefSet

func (Report) ReplaceRef

func (t Report) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*Report) Resource

func (r *Report) Resource() interface{}

func (Report) ResourceType

func (t Report) ResourceType() string

func (Report) SetConfig

func (t Report) SetConfig(cfg *EnvoyConfig)

func (Report) SetIdentifier

func (t Report) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (Report) SetResourceType

func (t Report) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (Report) SetTimestamps

func (t Report) SetTimestamps(ts *Timestamps)

func (Report) SetUserRefs

func (t Report) SetUserRefs(uu []*Userstamp)

func (Report) SetUserstamps

func (t Report) SetUserstamps(us *Userstamps)

func (*Report) SysID

func (r *Report) SysID() uint64

func (Report) Timestamps

func (t Report) Timestamps() *Timestamps

func (Report) UserRefs

func (t Report) UserRefs() RefSet

func (Report) Userstamps

func (t Report) Userstamps() *Userstamps

type ReportBlock

type ReportBlock struct {
	Res *types.ReportBlock
	// contains filtered or unexported fields
}

func (ReportBlock) AddIdentifier

func (t ReportBlock) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ReportBlock) AddRef

func (t ReportBlock) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ReportBlock) Config

func (t ReportBlock) Config() *EnvoyConfig

func (ReportBlock) HasRefs

func (t ReportBlock) HasRefs() bool

func (ReportBlock) Identifiers

func (t ReportBlock) Identifiers() Identifiers

func (ReportBlock) MarkPlaceholder

func (t ReportBlock) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ReportBlock) Placeholder

func (t ReportBlock) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ReportBlock) ReID

func (t ReportBlock) ReID(ii Identifiers)

func (ReportBlock) ReRef

func (t ReportBlock) ReRef(old RefSet, new RefSet)

func (ReportBlock) Ref

func (t ReportBlock) Ref() *Ref

func (ReportBlock) Refs

func (t ReportBlock) Refs() RefSet

func (ReportBlock) ReplaceRef

func (t ReportBlock) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (ReportBlock) ResourceType

func (t ReportBlock) ResourceType() string

func (ReportBlock) SetConfig

func (t ReportBlock) SetConfig(cfg *EnvoyConfig)

func (ReportBlock) SetIdentifier

func (t ReportBlock) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ReportBlock) SetResourceType

func (t ReportBlock) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ReportBlock) SetTimestamps

func (t ReportBlock) SetTimestamps(ts *Timestamps)

func (ReportBlock) SetUserRefs

func (t ReportBlock) SetUserRefs(uu []*Userstamp)

func (ReportBlock) SetUserstamps

func (t ReportBlock) SetUserstamps(us *Userstamps)

func (ReportBlock) Timestamps

func (t ReportBlock) Timestamps() *Timestamps

func (ReportBlock) UserRefs

func (t ReportBlock) UserRefs() RefSet

func (ReportBlock) Userstamps

func (t ReportBlock) Userstamps() *Userstamps

type ReportSource

type ReportSource struct {
	Res *types.ReportDataSource
	// contains filtered or unexported fields
}

func (ReportSource) AddIdentifier

func (t ReportSource) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ReportSource) AddRef

func (t ReportSource) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ReportSource) Config

func (t ReportSource) Config() *EnvoyConfig

func (ReportSource) HasRefs

func (t ReportSource) HasRefs() bool

func (ReportSource) Identifiers

func (t ReportSource) Identifiers() Identifiers

func (ReportSource) MarkPlaceholder

func (t ReportSource) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ReportSource) Placeholder

func (t ReportSource) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ReportSource) ReID

func (t ReportSource) ReID(ii Identifiers)

func (ReportSource) ReRef

func (t ReportSource) ReRef(old RefSet, new RefSet)

func (ReportSource) Ref

func (t ReportSource) Ref() *Ref

func (ReportSource) Refs

func (t ReportSource) Refs() RefSet

func (ReportSource) ReplaceRef

func (t ReportSource) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (ReportSource) ResourceType

func (t ReportSource) ResourceType() string

func (ReportSource) SetConfig

func (t ReportSource) SetConfig(cfg *EnvoyConfig)

func (ReportSource) SetIdentifier

func (t ReportSource) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ReportSource) SetResourceType

func (t ReportSource) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ReportSource) SetTimestamps

func (t ReportSource) SetTimestamps(ts *Timestamps)

func (ReportSource) SetUserRefs

func (t ReportSource) SetUserRefs(uu []*Userstamp)

func (ReportSource) SetUserstamps

func (t ReportSource) SetUserstamps(us *Userstamps)

func (ReportSource) Timestamps

func (t ReportSource) Timestamps() *Timestamps

func (ReportSource) UserRefs

func (t ReportSource) UserRefs() RefSet

func (ReportSource) Userstamps

func (t ReportSource) Userstamps() *Userstamps

type ResourceDataset

type ResourceDataset struct {
	P provider
	// contains filtered or unexported fields
}

func NewResourceDataset

func NewResourceDataset(name string, p provider) *ResourceDataset

func (ResourceDataset) AddIdentifier

func (t ResourceDataset) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ResourceDataset) AddRef

func (t ResourceDataset) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ResourceDataset) Config

func (t ResourceDataset) Config() *EnvoyConfig

func (ResourceDataset) HasRefs

func (t ResourceDataset) HasRefs() bool

func (ResourceDataset) Identifiers

func (t ResourceDataset) Identifiers() Identifiers

func (ResourceDataset) MarkPlaceholder

func (t ResourceDataset) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ResourceDataset) Placeholder

func (t ResourceDataset) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ResourceDataset) ReID

func (t ResourceDataset) ReID(ii Identifiers)

func (ResourceDataset) ReRef

func (t ResourceDataset) ReRef(old RefSet, new RefSet)

func (ResourceDataset) Ref

func (t ResourceDataset) Ref() *Ref

func (ResourceDataset) Refs

func (t ResourceDataset) Refs() RefSet

func (ResourceDataset) ReplaceRef

func (t ResourceDataset) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ResourceDataset) Resource

func (r *ResourceDataset) Resource() interface{}

func (ResourceDataset) ResourceType

func (t ResourceDataset) ResourceType() string

func (ResourceDataset) SetConfig

func (t ResourceDataset) SetConfig(cfg *EnvoyConfig)

func (ResourceDataset) SetIdentifier

func (t ResourceDataset) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ResourceDataset) SetResourceType

func (t ResourceDataset) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ResourceDataset) SetTimestamps

func (t ResourceDataset) SetTimestamps(ts *Timestamps)

func (ResourceDataset) SetUserRefs

func (t ResourceDataset) SetUserRefs(uu []*Userstamp)

func (ResourceDataset) SetUserstamps

func (t ResourceDataset) SetUserstamps(us *Userstamps)

func (ResourceDataset) Timestamps

func (t ResourceDataset) Timestamps() *Timestamps

func (ResourceDataset) UserRefs

func (t ResourceDataset) UserRefs() RefSet

func (ResourceDataset) Userstamps

func (t ResourceDataset) Userstamps() *Userstamps

type ResourceTranslation

type ResourceTranslation struct {
	Res types.ResourceTranslationSet

	RefResource string
	RefRes      *Ref
	RefPath     []*Ref

	Priority int
	// contains filtered or unexported fields
}

func NewResourceTranslation

func NewResourceTranslation(res types.ResourceTranslationSet, refResource string, refRes *Ref, refPath ...*Ref) *ResourceTranslation

func (ResourceTranslation) AddIdentifier

func (t ResourceTranslation) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (ResourceTranslation) AddRef

func (t ResourceTranslation) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (ResourceTranslation) Config

func (t ResourceTranslation) Config() *EnvoyConfig

func (ResourceTranslation) HasRefs

func (t ResourceTranslation) HasRefs() bool

func (ResourceTranslation) Identifiers

func (t ResourceTranslation) Identifiers() Identifiers

func (*ResourceTranslation) IsDefault

func (l *ResourceTranslation) IsDefault() bool

func (*ResourceTranslation) IsGeneric

func (l *ResourceTranslation) IsGeneric() bool

func (*ResourceTranslation) MarkDefault

func (l *ResourceTranslation) MarkDefault()

func (*ResourceTranslation) MarkGeneric

func (l *ResourceTranslation) MarkGeneric()

func (ResourceTranslation) MarkPlaceholder

func (t ResourceTranslation) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ResourceTranslation) Placeholder

func (t ResourceTranslation) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (ResourceTranslation) ReID

func (t ResourceTranslation) ReID(ii Identifiers)

func (*ResourceTranslation) ReRef

func (r *ResourceTranslation) ReRef(old RefSet, new RefSet)

func (ResourceTranslation) Ref

func (t ResourceTranslation) Ref() *Ref

func (ResourceTranslation) Refs

func (t ResourceTranslation) Refs() RefSet

func (ResourceTranslation) ReplaceRef

func (t ResourceTranslation) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*ResourceTranslation) Resource

func (r *ResourceTranslation) Resource() interface{}

func (ResourceTranslation) ResourceType

func (t ResourceTranslation) ResourceType() string

func (ResourceTranslation) SetConfig

func (t ResourceTranslation) SetConfig(cfg *EnvoyConfig)

func (ResourceTranslation) SetIdentifier

func (t ResourceTranslation) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (ResourceTranslation) SetResourceType

func (t ResourceTranslation) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (ResourceTranslation) SetTimestamps

func (t ResourceTranslation) SetTimestamps(ts *Timestamps)

func (ResourceTranslation) SetUserRefs

func (t ResourceTranslation) SetUserRefs(uu []*Userstamp)

func (ResourceTranslation) SetUserstamps

func (t ResourceTranslation) SetUserstamps(us *Userstamps)

func (ResourceTranslation) Timestamps

func (t ResourceTranslation) Timestamps() *Timestamps

func (ResourceTranslation) UserRefs

func (t ResourceTranslation) UserRefs() RefSet

func (ResourceTranslation) Userstamps

func (t ResourceTranslation) Userstamps() *Userstamps

type Role

type Role struct {
	Res *types.Role
	// contains filtered or unexported fields
}

Role represents a Role

func NewRole

func NewRole(rl *types.Role) *Role

func (Role) AddIdentifier

func (t Role) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (Role) AddRef

func (t Role) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (Role) Config

func (t Role) Config() *EnvoyConfig

func (Role) HasRefs

func (t Role) HasRefs() bool

func (Role) Identifiers

func (t Role) Identifiers() Identifiers

func (Role) MarkPlaceholder

func (t Role) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Role) Placeholder

func (t Role) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*Role) RBACParts

func (r *Role) RBACParts() (resource string, ref *Ref, path []*Ref)

func (Role) ReID

func (t Role) ReID(ii Identifiers)

func (Role) ReRef

func (t Role) ReRef(old RefSet, new RefSet)

func (Role) Ref

func (t Role) Ref() *Ref

func (Role) Refs

func (t Role) Refs() RefSet

func (Role) ReplaceRef

func (t Role) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*Role) Resource

func (r *Role) Resource() interface{}

func (Role) ResourceType

func (t Role) ResourceType() string

func (Role) SetConfig

func (t Role) SetConfig(cfg *EnvoyConfig)

func (Role) SetIdentifier

func (t Role) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (Role) SetResourceType

func (t Role) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (Role) SetTimestamps

func (t Role) SetTimestamps(ts *Timestamps)

func (Role) SetUserRefs

func (t Role) SetUserRefs(uu []*Userstamp)

func (Role) SetUserstamps

func (t Role) SetUserstamps(us *Userstamps)

func (*Role) SysID

func (r *Role) SysID() uint64

func (Role) Timestamps

func (t Role) Timestamps() *Timestamps

func (Role) UserRefs

func (t Role) UserRefs() RefSet

func (Role) Userstamps

func (t Role) Userstamps() *Userstamps

type Setting

type Setting struct {
	Res types.SettingValue
	// contains filtered or unexported fields
}

func NewSetting

func NewSetting(s *types.SettingValue) *Setting

func (Setting) AddIdentifier

func (t Setting) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (Setting) AddRef

func (t Setting) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (Setting) Config

func (t Setting) Config() *EnvoyConfig

func (Setting) HasRefs

func (t Setting) HasRefs() bool

func (Setting) Identifiers

func (t Setting) Identifiers() Identifiers

func (Setting) MarkPlaceholder

func (t Setting) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Setting) Placeholder

func (t Setting) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Setting) ReID

func (t Setting) ReID(ii Identifiers)

func (Setting) ReRef

func (t Setting) ReRef(old RefSet, new RefSet)

func (Setting) Ref

func (t Setting) Ref() *Ref

func (Setting) Refs

func (t Setting) Refs() RefSet

func (Setting) ReplaceRef

func (t Setting) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*Setting) Resource

func (r *Setting) Resource() interface{}

func (Setting) ResourceType

func (t Setting) ResourceType() string

func (Setting) SetConfig

func (t Setting) SetConfig(cfg *EnvoyConfig)

func (Setting) SetIdentifier

func (t Setting) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (Setting) SetResourceType

func (t Setting) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (Setting) SetTimestamps

func (t Setting) SetTimestamps(ts *Timestamps)

func (Setting) SetUserRefs

func (t Setting) SetUserRefs(uu []*Userstamp)

func (Setting) SetUserstamps

func (t Setting) SetUserstamps(us *Userstamps)

func (Setting) Timestamps

func (t Setting) Timestamps() *Timestamps

func (Setting) UserRefs

func (t Setting) UserRefs() RefSet

func (Setting) Userstamps

func (t Setting) Userstamps() *Userstamps

type Settings

type Settings struct {
	Res types.SettingValueSet
	// contains filtered or unexported fields
}

func NewSettings

func NewSettings(vv map[string]interface{}) *Settings

func (Settings) AddIdentifier

func (t Settings) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (Settings) AddRef

func (t Settings) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (Settings) Config

func (t Settings) Config() *EnvoyConfig

func (Settings) HasRefs

func (t Settings) HasRefs() bool

func (Settings) Identifiers

func (t Settings) Identifiers() Identifiers

func (Settings) MarkPlaceholder

func (t Settings) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Settings) Placeholder

func (t Settings) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Settings) ReID

func (t Settings) ReID(ii Identifiers)

func (Settings) ReRef

func (t Settings) ReRef(old RefSet, new RefSet)

func (Settings) Ref

func (t Settings) Ref() *Ref

func (Settings) Refs

func (t Settings) Refs() RefSet

func (Settings) ReplaceRef

func (t Settings) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*Settings) Resource

func (r *Settings) Resource() interface{}

func (Settings) ResourceType

func (t Settings) ResourceType() string

func (Settings) SetConfig

func (t Settings) SetConfig(cfg *EnvoyConfig)

func (Settings) SetIdentifier

func (t Settings) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (Settings) SetResourceType

func (t Settings) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (Settings) SetTimestamps

func (t Settings) SetTimestamps(ts *Timestamps)

func (Settings) SetUserRefs

func (t Settings) SetUserRefs(uu []*Userstamp)

func (Settings) SetUserstamps

func (t Settings) SetUserstamps(us *Userstamps)

func (Settings) Timestamps

func (t Settings) Timestamps() *Timestamps

func (Settings) UserRefs

func (t Settings) UserRefs() RefSet

func (Settings) Userstamps

func (t Settings) Userstamps() *Userstamps

type Template

type Template struct {
	Res *types.Template
	// contains filtered or unexported fields
}

Template represents a Template

func NewTemplate

func NewTemplate(t *types.Template) *Template

func (Template) AddIdentifier

func (t Template) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (Template) AddRef

func (t Template) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (Template) Config

func (t Template) Config() *EnvoyConfig

func (Template) HasRefs

func (t Template) HasRefs() bool

func (Template) Identifiers

func (t Template) Identifiers() Identifiers

func (Template) MarkPlaceholder

func (t Template) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (Template) Placeholder

func (t Template) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*Template) RBACParts

func (r *Template) RBACParts() (resource string, ref *Ref, path []*Ref)

func (Template) ReID

func (t Template) ReID(ii Identifiers)

func (Template) ReRef

func (t Template) ReRef(old RefSet, new RefSet)

func (Template) Ref

func (t Template) Ref() *Ref

func (Template) Refs

func (t Template) Refs() RefSet

func (Template) ReplaceRef

func (t Template) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*Template) Resource

func (r *Template) Resource() interface{}

func (Template) ResourceType

func (t Template) ResourceType() string

func (Template) SetConfig

func (t Template) SetConfig(cfg *EnvoyConfig)

func (Template) SetIdentifier

func (t Template) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (Template) SetResourceType

func (t Template) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (Template) SetTimestamps

func (t Template) SetTimestamps(ts *Timestamps)

func (Template) SetUserRefs

func (t Template) SetUserRefs(uu []*Userstamp)

func (Template) SetUserstamps

func (t Template) SetUserstamps(us *Userstamps)

func (*Template) SysID

func (r *Template) SysID() uint64

func (Template) Timestamps

func (t Template) Timestamps() *Timestamps

func (Template) UserRefs

func (t Template) UserRefs() RefSet

func (Template) Userstamps

func (t Template) Userstamps() *Userstamps

type Timestamp

type Timestamp struct {
	// S is a stringified representation of the timestamp
	S string
	// T is a time representation of the timestamp
	T *time.Time
	// Tz is the timezone the timestamp will be encoded into
	Tz string
	// Tpl is the template the timestamp will be encoded into
	Tpl string
}

func MakeTimestamp

func MakeTimestamp(ts string) *Timestamp

MakeTimestamp initializes a Timestamp from the passed timestamp

func (*Timestamp) MarshalJSON

func (ts *Timestamp) MarshalJSON() ([]byte, error)

func (*Timestamp) MarshalYAML

func (ts *Timestamp) MarshalYAML() (interface{}, error)

func (*Timestamp) Model

func (ts *Timestamp) Model(tpl string, tz string) (*Timestamp, error)

Model stringifies the timestamp based on the passed template and timezone

type Timestamps

type Timestamps struct {
	CreatedAt   *Timestamp
	UpdatedAt   *Timestamp
	DeletedAt   *Timestamp
	ArchivedAt  *Timestamp
	SuspendedAt *Timestamp
}

func MakeTimestampsCUDA

func MakeTimestampsCUDA(c, u, d, a *time.Time) *Timestamps

MakeTimestampsCUDA initializes timestamps for createdAt, updatedAt, deletedAt and archivedAt

func MakeTimestampsCUDAS

func MakeTimestampsCUDAS(c, u, d, a, s *time.Time) *Timestamps

MakeTimestampsCUDAS initializes timestamps for createdAt, updatedAt, deletedAt, archivedAt and suspendedAt

func (*Timestamps) Model

func (tt *Timestamps) Model(tpl string, tz string) (*Timestamps, error)

Model stringifies the timestamps based on the passed template and timezone

type User

type User struct {
	Res *types.User

	RoleMembership []Identifiers
	RefRoles       RefSet
	// contains filtered or unexported fields
}

User represents a User

func NewUser

func NewUser(u *types.User, roles ...string) *User

func (User) AddIdentifier

func (t User) AddIdentifier(ss ...string)

AddIdentifier adds a set of identifiers to the current resource

func (User) AddRef

func (t User) AddRef(rt string, ii ...string) *Ref

AddRef adds a new reference to the current resource

func (*User) AddRoles

func (u *User) AddRoles(roles ...*types.Role) *User

func (User) Config

func (t User) Config() *EnvoyConfig

func (User) HasRefs

func (t User) HasRefs() bool

func (User) Identifiers

func (t User) Identifiers() Identifiers

func (User) MarkPlaceholder

func (t User) MarkPlaceholder()

MarkPlaceholder denotes that the given resource should be treated as a placeholder

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (User) Placeholder

func (t User) Placeholder() bool

Placeholder resources should not be encoded but should only provide additional context to resources that depend on it

func (*User) RBACParts

func (r *User) RBACParts() (resource string, ref *Ref, path []*Ref)

func (User) ReID

func (t User) ReID(ii Identifiers)

func (User) ReRef

func (t User) ReRef(old RefSet, new RefSet)

func (User) Ref

func (t User) Ref() *Ref

func (User) Refs

func (t User) Refs() RefSet

func (User) ReplaceRef

func (t User) ReplaceRef(old, new *Ref)

ReplaceRef replaces the given ref with the new one. The new ref is added regardles if the old one exists or not.

func (*User) Resource

func (r *User) Resource() interface{}

func (User) ResourceType

func (t User) ResourceType() string

func (User) SetConfig

func (t User) SetConfig(cfg *EnvoyConfig)

func (User) SetIdentifier

func (t User) SetIdentifier(ii Identifiers)

SetIdentifier sets the identifiers to whatever was provided

func (User) SetResourceType

func (t User) SetResourceType(rt string)

SetResourceType sets the resource type of the current resource struct

func (User) SetTimestamps

func (t User) SetTimestamps(ts *Timestamps)

func (User) SetUserRefs

func (t User) SetUserRefs(uu []*Userstamp)

func (User) SetUserstamps

func (t User) SetUserstamps(us *Userstamps)

func (*User) SysID

func (r *User) SysID() uint64

func (User) Timestamps

func (t User) Timestamps() *Timestamps

func (User) UserRefs

func (t User) UserRefs() RefSet

func (User) Userstamps

func (t User) Userstamps() *Userstamps

type Userstamp

type Userstamp struct {
	UserID uint64
	Ref    string
	U      *types.User
	// S is the stringified user representation
	S string
}

func MakeUserstamp

func MakeUserstamp(u *types.User) *Userstamp

MakeUserstamp initializes a userstamp from the passed user struct

func MakeUserstampFromID

func MakeUserstampFromID(ID uint64) *Userstamp

MakeUserstampFromRef initializes a userstamp from the passed userID

func MakeUserstampFromRef

func MakeUserstampFromRef(ref string) *Userstamp

MakeUserstampFromRef initializes a userstamp from the passed reference

If possible, the function determines the userID

func (*Userstamp) MarshalJSON

func (us *Userstamp) MarshalJSON() ([]byte, error)

func (*Userstamp) MarshalYAML

func (us *Userstamp) MarshalYAML() (interface{}, error)

func (*Userstamp) Model

func (us *Userstamp) Model() (string, error)

Model stringifies the userstamp

@todo make this configurable

type UserstampIndex

type UserstampIndex map[string]*Userstamp

func (UserstampIndex) Add

func (ux UserstampIndex) Add(uu ...*types.User)

func (UserstampIndex) GetByKey

func (ux UserstampIndex) GetByKey(kr interface{}) *Userstamp

func (UserstampIndex) GetByStamp

func (ux UserstampIndex) GetByStamp(s *Userstamp) *Userstamp

type Userstamps

type Userstamps struct {
	CreatedBy *Userstamp
	UpdatedBy *Userstamp
	DeletedBy *Userstamp
	OwnedBy   *Userstamp
	RunAs     *Userstamp
}

func MakeUserstampsCUDO

func MakeUserstampsCUDO(c, u, d, o uint64) *Userstamps

MakeUserstampsCUDO initializes userstamps for createdAt, updatedAt, deletedAt and ownedBy

Jump to

Keyboard shortcuts

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