Documentation
¶
Index ¶
- func AreTagsUpToDate(ctx context.Context, client TagClient, spec []*svcapitypes.Tag, ...) (bool, error)
- func CompareEngineVersions(a, b string) int
- func DiffTags(spec []*svcapitypes.Tag, current []svcsdktypes.Tag) (addTags []svcsdktypes.Tag, removeTags []string)
- func ListTagsForResource(ctx context.Context, client TagClient, resourceName *string) ([]svcsdktypes.Tag, error)
- func UpdateTagsForResource(ctx context.Context, client TagClient, spec []*svcapitypes.Tag, ...) error
- type EngineVersion
- type TagClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreTagsUpToDate ¶
func AreTagsUpToDate(ctx context.Context, client TagClient, spec []*svcapitypes.Tag, resourceName *string) (bool, error)
AreTagsUpToDate for spec and resourceName
func CompareEngineVersions ¶
CompareEngineVersions is a shortcut to compare two engine versions.
func DiffTags ¶
func DiffTags(spec []*svcapitypes.Tag, current []svcsdktypes.Tag) (addTags []svcsdktypes.Tag, removeTags []string)
DiffTags between spec and current. Tags reserved by AWS (aws:) are left alone: they can't be changed or removed.
func ListTagsForResource ¶
func ListTagsForResource(ctx context.Context, client TagClient, resourceName *string) ([]svcsdktypes.Tag, error)
ListTagsForResource for the given resource
func UpdateTagsForResource ¶
func UpdateTagsForResource(ctx context.Context, client TagClient, spec []*svcapitypes.Tag, resourceName *string) error
UpdateTagsForResource with resourceName
Types ¶
type EngineVersion ¶
type EngineVersion []any
EngineVersion represents an AWS DocDB engine version.
func ParseEngineVersion ¶
func ParseEngineVersion(raw string) EngineVersion
ParseEngineVersion from a raw string.
func (EngineVersion) Compare ¶
func (v EngineVersion) Compare(other EngineVersion) int
Compare returns a positive value if v is represents a higher version number than other. A negative value is returned if other is higher than v. It returns 0 if both are considered equal.
type TagClient ¶
type TagClient interface {
ListTagsForResource(context.Context, *svcsdk.ListTagsForResourceInput, ...func(*svcsdk.Options)) (*svcsdk.ListTagsForResourceOutput, error)
AddTagsToResource(context.Context, *svcsdk.AddTagsToResourceInput, ...func(*svcsdk.Options)) (*svcsdk.AddTagsToResourceOutput, error)
RemoveTagsFromResource(context.Context, *svcsdk.RemoveTagsFromResourceInput, ...func(*svcsdk.Options)) (*svcsdk.RemoveTagsFromResourceOutput, error)
}
TagClient is the part of the DocumentDB API used to manage tags.