config

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderName is provider name
	ProviderName = "config"
)

Variables

View Source
var ErrConfigFactoryNotConfigured = errors.New("config factory not configured")

ErrConfigFactoryNotConfigured means the config factory is not configured

View Source
var ErrRequestInvalid = errors.New("the request is invalid")

ErrRequestInvalid means the request is invalid

Functions

func CreateConfig added in v0.6.3

func CreateConfig(ctx context.Context, params *CreateParams) (*any, error)

CreateConfig creates a config

func DeleteConfig added in v0.6.3

func DeleteConfig(ctx context.Context, params *providertypes.Params[wfconfig.NamespacedName]) (*any, error)

DeleteConfig deletes a config

func GetProviders added in v0.6.3

func GetProviders() map[string]cuexruntime.ProviderFn

GetProviders returns the cue providers.

func GetTemplate added in v0.6.3

func GetTemplate() string

GetTemplate returns the cue template.

Types

type CreateConfigProperties

type CreateConfigProperties struct {
	Name      string                 `json:"name"`
	Namespace string                 `json:"namespace"`
	Template  string                 `json:"template,omitempty"`
	Config    map[string]interface{} `json:"config"`
}

CreateConfigProperties the request body for creating a config

type CreateParams added in v0.6.3

CreateParams is the create params

type ListReturnVars added in v0.6.3

type ListReturnVars struct {
	Configs []map[string]any `json:"configs"`
}

ListReturnVars is the list return vars

type ListReturns added in v0.6.3

type ListReturns = providertypes.Returns[ListReturnVars]

ListReturns is the list returns

func ListConfig added in v0.6.3

func ListConfig(ctx context.Context, params *providertypes.Params[ListVars]) (*ListReturns, error)

ListConfig lists the config

type ListVars added in v0.6.3

type ListVars struct {
	Namespace string `json:"namespace"`
	Template  string `json:"template"`
}

ListVars is the list vars

type ReadReturnVars added in v0.6.3

type ReadReturnVars struct {
	Config map[string]any `json:"config"`
}

ReadReturnVars is the read return vars

type ReadReturns added in v0.6.3

type ReadReturns = providertypes.Returns[ReadReturnVars]

ReadReturns is the read returns

func ReadConfig added in v0.6.3

ReadConfig reads the config

Jump to

Keyboard shortcuts

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