Documentation
¶
Index ¶
- Variables
- func IsValidID(id string) bool
- func ParallelDelete[R any, T any](context contextpkg.Context, results util.Results[R], getTask func(result R) T, ...) error
- func ValidateWindow(window *backendpkg.Window) error
- type ValidatingBackend
- func (self *ValidatingBackend) CancelDeploymentModification(context contextpkg.Context, modificationToken string) error
- func (self *ValidatingBackend) Connect(context contextpkg.Context) error
- func (self *ValidatingBackend) CreateDeployment(context contextpkg.Context, deployment *backend.Deployment) error
- func (self *ValidatingBackend) DeleteDeployment(context contextpkg.Context, deploymentId string) error
- func (self *ValidatingBackend) DeletePlugin(context contextpkg.Context, pluginId backend.PluginID) error
- func (self *ValidatingBackend) DeleteSite(context contextpkg.Context, siteId string) error
- func (self *ValidatingBackend) DeleteTemplate(context contextpkg.Context, templateId string) error
- func (self *ValidatingBackend) EndDeploymentModification(context contextpkg.Context, modificationToken string, package_ tkoutil.Package, ...) (string, error)
- func (self *ValidatingBackend) GetDeployment(context contextpkg.Context, deploymentId string) (*backend.Deployment, error)
- func (self *ValidatingBackend) GetPlugin(context contextpkg.Context, pluginId backend.PluginID) (*backend.Plugin, error)
- func (self *ValidatingBackend) GetSite(context contextpkg.Context, siteId string) (*backend.Site, error)
- func (self *ValidatingBackend) GetTemplate(context contextpkg.Context, templateId string) (*backend.Template, error)
- func (self *ValidatingBackend) ListDeployments(context contextpkg.Context, selectDeployments backend.SelectDeployments, ...) (util.Results[backend.DeploymentInfo], error)
- func (self *ValidatingBackend) ListPlugins(context contextpkg.Context, selectPlugins backend.SelectPlugins, ...) (util.Results[backend.Plugin], error)
- func (self *ValidatingBackend) ListSites(context contextpkg.Context, selectSites backend.SelectSites, ...) (util.Results[backend.SiteInfo], error)
- func (self *ValidatingBackend) ListTemplates(context contextpkg.Context, selectTemplates backend.SelectTemplates, ...) (util.Results[backend.TemplateInfo], error)
- func (self *ValidatingBackend) PurgeDeployments(context contextpkg.Context, selectDeployments backend.SelectDeployments) error
- func (self *ValidatingBackend) PurgePlugins(context contextpkg.Context, selectPlugins backend.SelectPlugins) error
- func (self *ValidatingBackend) PurgeSites(context contextpkg.Context, selectSites backend.SelectSites) error
- func (self *ValidatingBackend) PurgeTemplates(context contextpkg.Context, selectTemplates backend.SelectTemplates) error
- func (self *ValidatingBackend) Release(context contextpkg.Context) error
- func (self *ValidatingBackend) SetPlugin(context contextpkg.Context, plugin *backend.Plugin) error
- func (self *ValidatingBackend) SetSite(context contextpkg.Context, site *backend.Site) error
- func (self *ValidatingBackend) SetTemplate(context contextpkg.Context, template *backend.Template) error
- func (self *ValidatingBackend) StartDeploymentModification(context contextpkg.Context, deploymentId string) (string, *backend.Deployment, error)
- func (self *ValidatingBackend) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ParallelBufferSize = 1000 ParallelWorkers = 10 )
Functions ¶
func ParallelDelete ¶
func ValidateWindow ¶
func ValidateWindow(window *backendpkg.Window) error
Types ¶
type ValidatingBackend ¶
type ValidatingBackend struct { Backend backendpkg.Backend Validation *validationpkg.Validation }
func NewValidatingBackend ¶
func NewValidatingBackend(backend backendpkg.Backend, validation *validationpkg.Validation) *ValidatingBackend
Wraps an existing backend with argument validation support, including the running of resource validation plugins.
func (*ValidatingBackend) CancelDeploymentModification ¶
func (self *ValidatingBackend) CancelDeploymentModification(context contextpkg.Context, modificationToken string) error
(backend.Backend interface)
func (*ValidatingBackend) Connect ¶
func (self *ValidatingBackend) Connect(context contextpkg.Context) error
(backend.Backend interface)
func (*ValidatingBackend) CreateDeployment ¶
func (self *ValidatingBackend) CreateDeployment(context contextpkg.Context, deployment *backend.Deployment) error
(backend.Backend interface)
func (*ValidatingBackend) DeleteDeployment ¶
func (self *ValidatingBackend) DeleteDeployment(context contextpkg.Context, deploymentId string) error
(backend.Backend interface)
func (*ValidatingBackend) DeletePlugin ¶
func (self *ValidatingBackend) DeletePlugin(context contextpkg.Context, pluginId backend.PluginID) error
(backend.Backend interface)
func (*ValidatingBackend) DeleteSite ¶
func (self *ValidatingBackend) DeleteSite(context contextpkg.Context, siteId string) error
(backend.Backend interface)
func (*ValidatingBackend) DeleteTemplate ¶
func (self *ValidatingBackend) DeleteTemplate(context contextpkg.Context, templateId string) error
(backend.Backend interface)
func (*ValidatingBackend) EndDeploymentModification ¶
func (self *ValidatingBackend) EndDeploymentModification(context contextpkg.Context, modificationToken string, package_ tkoutil.Package, validation *validationpkg.Validation) (string, error)
(backend.Backend interface)
func (*ValidatingBackend) GetDeployment ¶
func (self *ValidatingBackend) GetDeployment(context contextpkg.Context, deploymentId string) (*backend.Deployment, error)
(backend.Backend interface)
func (*ValidatingBackend) GetPlugin ¶
func (self *ValidatingBackend) GetPlugin(context contextpkg.Context, pluginId backend.PluginID) (*backend.Plugin, error)
(backend.Backend interface)
func (*ValidatingBackend) GetSite ¶
func (self *ValidatingBackend) GetSite(context contextpkg.Context, siteId string) (*backend.Site, error)
(backend.Backend interface)
func (*ValidatingBackend) GetTemplate ¶
func (self *ValidatingBackend) GetTemplate(context contextpkg.Context, templateId string) (*backend.Template, error)
(backend.Backend interface)
func (*ValidatingBackend) ListDeployments ¶
func (self *ValidatingBackend) ListDeployments(context contextpkg.Context, selectDeployments backend.SelectDeployments, window backend.Window) (util.Results[backend.DeploymentInfo], error)
(backend.Backend interface)
func (*ValidatingBackend) ListPlugins ¶
func (self *ValidatingBackend) ListPlugins(context contextpkg.Context, selectPlugins backend.SelectPlugins, window backend.Window) (util.Results[backend.Plugin], error)
(backend.Backend interface)
func (*ValidatingBackend) ListSites ¶
func (self *ValidatingBackend) ListSites(context contextpkg.Context, selectSites backend.SelectSites, window backend.Window) (util.Results[backend.SiteInfo], error)
(backend.Backend interface)
func (*ValidatingBackend) ListTemplates ¶
func (self *ValidatingBackend) ListTemplates(context contextpkg.Context, selectTemplates backend.SelectTemplates, window backend.Window) (util.Results[backend.TemplateInfo], error)
(backend.Backend interface)
func (*ValidatingBackend) PurgeDeployments ¶
func (self *ValidatingBackend) PurgeDeployments(context contextpkg.Context, selectDeployments backend.SelectDeployments) error
(backend.Backend interface)
func (*ValidatingBackend) PurgePlugins ¶
func (self *ValidatingBackend) PurgePlugins(context contextpkg.Context, selectPlugins backend.SelectPlugins) error
(backend.Backend interface)
func (*ValidatingBackend) PurgeSites ¶
func (self *ValidatingBackend) PurgeSites(context contextpkg.Context, selectSites backend.SelectSites) error
(backend.Backend interface)
func (*ValidatingBackend) PurgeTemplates ¶
func (self *ValidatingBackend) PurgeTemplates(context contextpkg.Context, selectTemplates backend.SelectTemplates) error
(backend.Backend interface)
func (*ValidatingBackend) Release ¶
func (self *ValidatingBackend) Release(context contextpkg.Context) error
(backend.Backend interface)
func (*ValidatingBackend) SetPlugin ¶
func (self *ValidatingBackend) SetPlugin(context contextpkg.Context, plugin *backend.Plugin) error
(backend.Backend interface)
func (*ValidatingBackend) SetSite ¶
func (self *ValidatingBackend) SetSite(context contextpkg.Context, site *backend.Site) error
(backend.Backend interface)
func (*ValidatingBackend) SetTemplate ¶
func (self *ValidatingBackend) SetTemplate(context contextpkg.Context, template *backend.Template) error
(backend.Backend interface)
func (*ValidatingBackend) StartDeploymentModification ¶
func (self *ValidatingBackend) StartDeploymentModification(context contextpkg.Context, deploymentId string) (string, *backend.Deployment, error)
(backend.Backend interface)
func (*ValidatingBackend) String ¶
func (self *ValidatingBackend) String() string
(fmt.Stringer interface) (backend.Backend interface)