Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Filename = ".patterner.yml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WorkspaceID string  `default:"" yaml:"workspaceID,omitempty"`
	Lint        Lint    `yaml:"lint,omitempty"`
	Metrics     Metrics `yaml:"metrics,omitempty"`
}

func Load

func Load() (*Config, error)

func New

func New() (*Config, error)

type InsecureAuthorization

type InsecureAuthorization struct {
	Enabled bool `default:"true" yaml:"enabled,omitempty"`
}

type Lint

type Lint struct {
	Acceptable int   `default:"0" yaml:"acceptable,omitempty"`
	Rules      Rules `yaml:"rules,omitempty,omitzero"`
}

type Metrics added in v0.6.0

type Metrics struct {
	Octocov Octocov `yaml:"octocov,omitempty,omitzero"`
}

type MultipleMutations

type MultipleMutations struct {
	Enabled bool `default:"true" yaml:"enabled,omitempty"`
}

type Octocov added in v0.6.0

type Octocov struct {
	Acceptables []string `yaml:"acceptables,omitempty"`
}

type Pipeline

type Pipeline struct {
	DeprecatedFeature     PipelineDeprecatedFeature `yaml:"deprecatedFeature,omitempty,omitzero"`
	InsecureAuthorization InsecureAuthorization     `yaml:"insecureAuthorization,omitempty,omitzero"`
	StepCount             StepCount                 `yaml:"stepCount,omitempty,omitzero"`
	MultipleMutations     MultipleMutations         `yaml:"multipleMutations,omitempty,omitzero"`
	QueryBeforeMutation   QueryBeforeMutation       `yaml:"queryBeforeMutation,omitempty,omitzero"`
}

type PipelineDeprecatedFeature

type PipelineDeprecatedFeature struct {
	Enabled        bool `default:"true" yaml:"enabled,omitempty"`
	AllowDraft     bool `default:"false" yaml:"allowDraft,omitempty"`
	AllowStateFlow bool `default:"false" yaml:"allowStateFlow,omitempty"`
	AllowCELScript bool `default:"false" yaml:"allowCELScript,omitempty"`
}

type QueryBeforeMutation

type QueryBeforeMutation struct {
	Enabled bool `default:"true" yaml:"enabled,omitempty"`
}

type Rules added in v0.3.0

type Rules struct {
	Pipeline  Pipeline  `yaml:"pipeline,omitempty,omitzero"`
	TailorDB  TailorDB  `yaml:"tailordb,omitempty,omitzero"`
	StateFlow StateFlow `yaml:"stateflow,omitempty,omitzero"`
}

type StateFlow

type StateFlow struct {
	DeprecatedFeature StateFlowDeprecatedFeature `yaml:"deprecatedFeature,omitempty,omitzero"`
}

type StateFlowDeprecatedFeature

type StateFlowDeprecatedFeature struct {
	Enabled bool `default:"true" yaml:"enabled,omitempty"`
}

type StepCount added in v0.4.1

type StepCount struct {
	Enabled bool `default:"true" yaml:"enabled,omitempty"`
	Max     int  `default:"30" yaml:"max,omitempty"`
}

type TailorDB

type TailorDB struct {
	DeprecatedFeature TailorDBDeprecatedFeature `yaml:"deprecatedFeature,omitempty,omitzero"`
}

type TailorDBDeprecatedFeature

type TailorDBDeprecatedFeature struct {
	Enabled               bool `default:"true" yaml:"enabled,omitempty"`
	AllowDraft            bool `default:"false" yaml:"allowDraft,omitempty"`
	AllowCELHooks         bool `default:"false" yaml:"allowCELHooks,omitempty"`
	AllowTypePermission   bool `default:"false" yaml:"allowTypePermission,omitempty"`
	AllowRecordPermission bool `default:"false" yaml:"allowRecordPermission,omitempty"`
}

Jump to

Keyboard shortcuts

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