Documentation ¶
Index ¶
- Constants
- Variables
- func CreateConfig(ctx context.Context, params *CreateParams) (*any, error)
- func DeleteConfig(ctx context.Context, params *oamprovidertypes.Params[config.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 ErrRequestInvalid = errors.New("the request is in valid")
ErrRequestInvalid means the request is invalid
Functions ¶
func CreateConfig ¶
func CreateConfig(ctx context.Context, params *CreateParams) (*any, error)
CreateConfig creates a config
func DeleteConfig ¶
func DeleteConfig(ctx context.Context, params *oamprovidertypes.Params[config.NamespacedName]) (*any, error)
DeleteConfig deletes a config
func GetProviders ¶
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 ¶
type CreateParams = oamprovidertypes.Params[CreateConfigProperties]
CreateParams is the create params
type ListReturnVars ¶
ListReturnVars is the list return vars
type ListReturns ¶
type ListReturns = oamprovidertypes.Returns[ListReturnVars]
ListReturns is the list returns
func ListConfig ¶
func ListConfig(ctx context.Context, params *oamprovidertypes.Params[ListVars]) (*ListReturns, error)
ListConfig lists the config
type ReadReturnVars ¶
ReadReturnVars is the read return vars
type ReadReturns ¶
type ReadReturns = oamprovidertypes.Returns[ReadReturnVars]
ReadReturns is the read returns
func ReadConfig ¶
func ReadConfig(ctx context.Context, params *oamprovidertypes.Params[config.NamespacedName]) (*ReadReturns, error)
ReadConfig reads the config
Click to show internal directories.
Click to hide internal directories.