preset

package
v2.18.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePreset

func CreatePreset(presetsProvider provider.PresetProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint

CreatePreset creates a preset for the selected provider and returns the name if successful, error otherwise

func DecodeCreatePreset

func DecodeCreatePreset(_ context.Context, r *http.Request) (interface{}, error)

func DecodeListPresets

func DecodeListPresets(_ context.Context, r *http.Request) (interface{}, error)

func DecodeListProviderPresets

func DecodeListProviderPresets(ctx context.Context, r *http.Request) (interface{}, error)

func DecodeUpdatePreset

func DecodeUpdatePreset(_ context.Context, r *http.Request) (interface{}, error)

func DecodeUpdatePresetStatus

func DecodeUpdatePresetStatus(_ context.Context, r *http.Request) (interface{}, error)

func ListPresets

func ListPresets(presetsProvider provider.PresetProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint

ListProviderPresets returns a list of preset names for the provider

func ListProviderPresets

func ListProviderPresets(presetsProvider provider.PresetProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint

ListProviderPresets returns a list of preset names for the provider

func UpdatePreset

func UpdatePreset(presetsProvider provider.PresetProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint

UpdatePreset updates a preset for the selected provider and returns the name if successful, error otherwise

func UpdatePresetStatus

func UpdatePresetStatus(presetsProvider provider.PresetProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint

UpdatePresetStatus updates the status of a preset. It can enable or disable it, so that it won't be listed by the list endpoints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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