Documentation
¶
Index ¶
- Constants
- Variables
- func CreateConfig(ctx context.Context, params *CreateParams) (*any, error)
- func DeleteConfig(ctx context.Context, params *providertypes.Params[wfconfig.NamespacedName]) (*any, error)
- func GetProviders() map[string]cuexruntime.ProviderFn
- func GetTemplate() string
- type CreateConfigProperties
- type CreateParams
- type ListReturnVars
- type ListReturns
- type ListVars
- type ReadReturnVars
- type ReadReturns
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.
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
type CreateParams = providertypes.Params[CreateConfigProperties]
CreateParams is the create params
type ListReturnVars ¶ added in v0.6.3
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 ReadReturnVars ¶ added in v0.6.3
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
func ReadConfig(ctx context.Context, params *providertypes.Params[wfconfig.NamespacedName]) (*ReadReturns, error)
ReadConfig reads the config
Click to show internal directories.
Click to hide internal directories.