annotations

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AutoCreated = "AutoCreated"
View Source
const CheckVersion = "CheckVersion"
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 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 NormalizedResource = "NormalizedResource"
View Source
const SourceDef = "SourceDef"

property params

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

Variables

This section is empty.

Functions

func Disable

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

func Enable

func Enable(resource Annotated, names ...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

Jump to

Keyboard shortcuts

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