naming

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	sqlcheck.Options
	// Global or resource-specific options.
	All, Schema, Table, Column,
	Index, ForeignKey, Check Options
}

Analyzer checks for resource naming.

func New

func New(r *schemahcl.Resource) (*Analyzer, error)

New creates a new destructive changes Analyzer with the given options.

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(_ context.Context, p *sqlcheck.Pass) error

Analyze implements sqlcheck.Analyzer.

func (*Analyzer) Name

func (*Analyzer) Name() string

Name of the analyzer. Implements the sqlcheck.NamedAnalyzer interface.

type Options

type Options struct {
	Match   string `spec:"match"`
	Message string `spec:"message"`
	// contains filtered or unexported fields
}

Options for resource naming.

Jump to

Keyboard shortcuts

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