policy

package
v0.0.0-...-bfcd41d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
}

Validator is a collection policy validator

func NewValidator

func NewValidator() *Validator

NewValidator returns a new collection policy validator

func (*Validator) Validate

func (v *Validator) Validate(collConfig *pb.CollectionConfig) error

Validate validates various collection config types

func (*Validator) ValidateCollectionConfig

func (v *Validator) ValidateCollectionConfig(config *pb.StaticCollectionConfig) error

ValidateCollectionConfig validates a new collection config

func (*Validator) ValidateNewCollectionConfigAgainstCommitted

func (v *Validator) ValidateNewCollectionConfigAgainstCommitted(newColl, committedColl *pb.StaticCollectionConfig) error

ValidateNewCollectionConfigAgainstCommitted validates a new collection config against a committed collection config

func (*Validator) ValidateNewCollectionConfigsAgainstOld

func (v *Validator) ValidateNewCollectionConfigsAgainstOld(newCollectionConfigs []*pb.CollectionConfig, oldCollectionConfigs []*pb.CollectionConfig,
) error

ValidateNewCollectionConfigsAgainstOld validates updated collection configs

Jump to

Keyboard shortcuts

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