Documentation
¶
Index ¶
- func Expand(s string, mapping func(string) string) string
- func Label(ctx context.Context) string
- func Logger(ctx context.Context) server.Logger
- func New(plugins ...server.Plugin) (*pluginProvider, error)
- func NewPlugin(v server.Plugin, path string) (*pluginMeta, error)
- func NewProvider(tasks ...server.Task) server.Provider
- func NewVariables() *variables
- func WithLabel(ctx context.Context, label string) context.Context
- func WithLogger(ctx context.Context, logger server.Logger) context.Context
- type Parser
- type PluginMeta
- type ProviderContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expand ¶ added in v1.4.11
Expand replaces ${var} or $var in the string based on the mapping function. For example, os.ExpandEnv(s) is equivalent to os.Expand(s, os.Getenv).
func NewProvider ¶
Create a new provider with tasks in the order they have been created.
func NewVariables ¶ added in v1.4.11
func NewVariables() *variables
Types ¶
type PluginMeta ¶ added in v1.4.2
type PluginMeta struct { Name string `json:"name"` Description string `json:"description"` Fields []metafield `json:"fields"` Type reflect.Type `json:"-"` // contains filtered or unexported fields }
func NewPluginMeta ¶ added in v1.4.9
func NewPluginMeta(v server.Plugin) (*PluginMeta, error)
NewPluginMeta returns metadata for a plugin
func (*PluginMeta) Get ¶ added in v1.4.2
func (m *PluginMeta) Get(v server.Plugin, label string) (any, error)
func (*PluginMeta) Set ¶ added in v1.4.2
func (m *PluginMeta) Set(v server.Plugin, label string, value any) error
func (*PluginMeta) String ¶ added in v1.4.11
func (m *PluginMeta) String() string
type ProviderContextKey ¶ added in v1.4.2
type ProviderContextKey int
Source Files
¶
Click to show internal directories.
Click to hide internal directories.