tag

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTagCompliance

func GetTagCompliance(resource interface{}, opts *Options) ([]string, error)

GetTagCompliance performs struct tag compliance checks.

Types

type Options

type Options struct {
	Disabled           bool
	DisableTagPresent  bool
	DisableTagMismatch bool
	DisableTagOnEmpty  bool
	AllowFieldMismatch bool
	AllowedFields      map[string]interface{}
}

Options stores compliance check options.

Jump to

Keyboard shortcuts

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