config

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowableAnalysisDepths = []AnalysisDepth{Diff, Repo, Organization}

Functions

func WithConfig

func WithConfig(ctx context.Context, cfg *Configuration) context.Context

Types

type AnalysisDepth added in v0.12.0

type AnalysisDepth string
const (
	Diff         AnalysisDepth = "Diff"
	Repo         AnalysisDepth = "Repo"
	Organization AnalysisDepth = "Organization"
)

type AnalyzeAPIsConfiguration added in v0.12.0

type AnalyzeAPIsConfiguration struct {
	Enabled *bool `yaml:"enabled"`
}

type AnalyzeConfiguration added in v0.12.0

type AnalyzeConfiguration struct {
	AIAgent      string                           `yaml:"aiAgent"`
	Depth        AnalysisDepth                    `yaml:"depth"`
	Protos       analyze.ProtosConfiguration      `yaml:"protos"`
	APIs         AnalyzeAPIsConfiguration         `yaml:"apis"`
	SQL          AnalyzeSQLConfiguration          `yaml:"sql"`
	Reliability  AnalyzeReliabilityConfiguration  `yaml:"reliability"`
	Dependencies AnalyzeDependenciesConfiguration `yaml:"dependencies"`
	Ownership    AnalyzeOwnershipConfiguration    `yaml:"ownership"`
}

type AnalyzeDependenciesConfiguration added in v0.12.0

type AnalyzeDependenciesConfiguration struct {
	Enabled *bool `yaml:"enabled"`
}

type AnalyzeOwnershipConfiguration added in v0.12.0

type AnalyzeOwnershipConfiguration struct {
	Enabled *bool `yaml:"enabled"`
}

type AnalyzeReliabilityConfiguration added in v0.12.0

type AnalyzeReliabilityConfiguration struct {
	Enabled *bool `yaml:"enabled"`
}

type AnalyzeSQLConfiguration added in v0.12.0

type AnalyzeSQLConfiguration struct {
	Enabled *bool `yaml:"enabled"`
}

type Configuration

type Configuration struct {
	Analyze  AnalyzeConfiguration  `yaml:"analyze"`
	Keygen   KeygenConfiguration   `yaml:"keygen"`
	Postgres PostgresConfiguration `yaml:"postgres"`
	Release  ReleaseConfiguration  `yaml:"release"`
}

func GetConfig

func GetConfig(ctx context.Context) (*Configuration, bool)

func LoadConfig

func LoadConfig(configDirPath string) (*Configuration, error)

type KeygenConfiguration added in v0.9.0

type KeygenConfiguration struct {
	Length *int `yaml:"length"`
}

type PostgresConfiguration

type PostgresConfiguration struct {
	Environments map[string]PostgresEnvironmentConfig `yaml:"environments"`
}

type PostgresEnvironmentConfig

type PostgresEnvironmentConfig struct {
	Host     string  `yaml:"host"`
	Database string  `yaml:"database"`
	Port     int     `yaml:"port"`
	SSLMode  string  `yaml:"sslMode"`
	UserName string  `yaml:"username"`
	Password *string `yaml:"password"`
	Iam      *bool   `yaml:"iam"`
}

type PsqlConfig

type PsqlConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	Database string
	SSLMode  string
}

type ReleaseConfiguration added in v0.10.0

type ReleaseConfiguration struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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