source

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrWrongConfig is returned when a condition spec has missing attributes which are mandatory
	ErrWrongConfig = errors.New("wrong source configuration")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	resource.ResourceConfig `yaml:",inline"`
}

Config struct defines a source configuration

func (Config) JSONSchema added in v0.23.0

func (Config) JSONSchema() *jschema.Schema

JSONSchema implements the json schema interface to generate the "source" jsonschema.

func (*Config) Validate added in v0.23.0

func (c *Config) Validate() error

Validate checks if a source configuration is valid

type Source

type Source struct {
	// Changelog holds the changelog description
	Changelog string
	// Result stores the source result after a source run.
	Result result.Source
	// Output contains the value retrieved from a source
	Output string
	// Config defines a source specifications
	Config Config
	// Scm stores scm information
	Scm *scm.ScmHandler
}

Source defines how a value is retrieved from a specific source

func (*Source) Run

func (s *Source) Run() (err error)

Run execute actions defined by the source configuration

Jump to

Keyboard shortcuts

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