target

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const NamespaceSeparator = "::"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID ID `yaml:"-"`

	Stage     stage.Stage     `yaml:"stage"`
	StagePrio stage.StagePrio `yaml:"-"`

	Steps []step.Config `yaml:"steps"`

	Inputs       []input.ID `yaml:"inputs,omitempty"`
	Dependencies []ID       `yaml:"depends,omitempty"`
}

func (*Config) Init

func (c *Config) Init(id ID) (err error)

Init initializes this config.

type IConfig

type IConfig interface {
	ID() string
	Stage() stage.Stages
}

type ID

type ID string

func DefineID

func DefineID(componentName string, inputName string) ID

func (*ID) Name added in v0.28.0

func (i *ID) Name() string

Name returns the name part (second part) after "::".

func (*ID) Namespace added in v0.28.0

func (i *ID) Namespace() (n string, exists bool)

Namespace returns the namespace part (first part) before "::" if it exists.

func (*ID) String

func (i *ID) String() string

String returns the string of the ID.

Jump to

Keyboard shortcuts

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