annotations

package
v1.3.97 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ActionApi = "ActionApi"
View Source
const AllowEmptyPrimitive = "AllowEmptyPrimitive"
View Source
const AllowPublicAccess = "AllowPublicAccess"

security

View Source
const AllowPublicCreateAccess = "AllowPublicCreateAccess"
View Source
const AllowPublicDeleteAccess = "AllowPublicDeleteAccess"
View Source
const AllowPublicReadAccess = "AllowPublicGetAccess"
View Source
const AllowPublicUpdateAccess = "AllowPublicUpdateAccess"
View Source
const AutoCreated = "AutoCreated"
View Source
const BypassExtensions = "BypassExtensions"

bypass extensions

View Source
const CascadeReference = "CascadeReference"
View Source
const CheckVersion = "CheckVersion"
View Source
const CommonType = "CommonType"
View Source
const DisableBackup = "DisableBackup"
View Source
const DisableVersion = "DisableVersion"
View Source
const EnableAudit = "EnableAudit"
View Source
const Enabled = "true"

values: true

View Source
const ExtensionId = "ExtensionId"

extensionId

View Source
const HclBlock = "HclBlock"
View Source
const HistoryResource = "HistoryResource"
View Source
const Identity = "Identity"
View Source
const IgnoreIfExists = "IgnoreIfExists"

request annotations

View Source
const IsHclLabel = "IsHclLabel"

hcl

View Source
const KeepHistory = "KeepHistory"

resource flags

View Source
const OpenApiGroup = "OpenApiGroup"

openapi

View Source
const OpenApiHide = "OpenApiHide"
View Source
const OpenApiRestPath = "OpenApiRestPath"
View Source
const RestApiDisabled = "RestApiDisabled"

restapi

View Source
const SQLType = "SQLType"

sql

View Source
const SQLUseTextType = "SQLUseTextType"
View Source
const SelfContainedProperty = "SelfContainedProperty"
View Source
const ServiceKey = "ServiceKey"

service

View Source
const SourceDef = "SourceDef"

property params

View Source
const SourceIdentity = "SourceIdentity"
View Source
const SourceMatchKey = "SourceMatchKey"
View Source
const SpecialProperty = "SpecialProperty"
View Source
const TypeName = "TypeName"

code generator

View Source
const UseJoinTable = "UseJoinTable"

Variables

View Source
var ClientAllowedAnnotations = map[string]bool{
	BypassExtensions: true,
}

Functions

func Disable

func Disable(resource Annotated, names ...string)

func Enable

func Enable(resource Annotated, names ...string)

func EnableWith added in v1.1.37

func EnableWith(annotations map[string]string, names ...string) map[string]string

func Get

func Get(resource Annotated, name string) string

func IsEnabled

func IsEnabled(resource Annotated, name string) bool

func IsEnabledOnCtx

func IsEnabledOnCtx(ctx context.Context, name string) bool

func IsSame

func IsSame(a, b map[string]string) bool

func Set

func Set(resource Annotated, name, value string)

func SetWithContext

func SetWithContext(parent context.Context, name, value string) context.Context

func ToString

func ToString(resource Annotated) string

func WithContext

func WithContext(parent context.Context, annotated Annotated) context.Context

Types

type Annotated

type Annotated interface {
	GetAnnotations() map[string]string
}

func FromCtx

func FromCtx(ctx context.Context) Annotated

func FromMap added in v1.3.43

func FromMap(m map[string]string) Annotated

Jump to

Keyboard shortcuts

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