config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnsupportedExtension is returned when the file extension is not supported.
	ErrUnsupportedExtension = errors.New("extension not supported")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Triggers []v1alpha1.TriggerMeta `json:"triggers"`
}

Config is what actually stores configs in memory. When marshalling or unmarshalling, simplified.ConfigWrapper will be used instead to make it easier for the user to write.

func New

func New() *Config

New news a config

func NewFromFileOrDir

func NewFromFileOrDir(path string) (*Config, error)

NewFromFileOrDir news a config from file or dir.

func (*Config) Validate

func (c *Config) Validate(ctx context.Context, cli client.Client, sourceReg *sourceregistry.Registry) error

Validate validates config.

Jump to

Keyboard shortcuts

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