validator

package
v0.0.0-...-614d85d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal      = errors.New("internal error")
	ErrBucketExisted = errors.New("BucketAlreadyExists")
)

Functions

This section is empty.

Types

type BucketValidator

type BucketValidator interface {
	Validate(bucketName string) error
}

BucketValidator is the generic validator for bucket

func NewUniqueBucketValidator

func NewUniqueBucketValidator(keyPrefix string, client *etcd.Client) BucketValidator

NewUniqueBucketValidator is the validator checking if the bucket name is unique

Jump to

Keyboard shortcuts

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