validating

package
v0.0.0-...-27b20b4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParallelBufferSize = 1000
	ParallelWorkers    = 10
)

Functions

func IsValidID

func IsValidID(id string) bool

func ParallelDelete

func ParallelDelete[R any, T any](context contextpkg.Context, results util.Results[R], getTask func(result R) T, delete_ func(task T) error) error

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)

Jump to

Keyboard shortcuts

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