distributedstorage

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDistributedStorageArgs added in v0.1.3

func NewDistributedStorageArgs(storageArgs map[string]interface{}) (*shared.DistributedStorageArgs, error)

NewDistributedStorageArgs creates a new DistributedStorageArgs type

Types

type DistributedStorageDefinition added in v0.1.3

type DistributedStorageDefinition struct {
	Name string                         `default:"" validate:"" json:",inline" yaml:",inline"`
	Args *shared.DistributedStorageArgs `default:"" validate:"" json:",inline" yaml:",inline"`
}

DistributedStorageDefinition represents a single storage configuration as a tuple (Name, Arguments)

func NewDistributedStorageDefinition added in v0.1.3

func NewDistributedStorageDefinition(storageDef []interface{}) (*DistributedStorageDefinition, error)

NewDistributedStorageDefinition creates a new DistributedStorageDefinition

func (DistributedStorageDefinition) MarshalJSON added in v0.1.3

func (ds DistributedStorageDefinition) MarshalJSON() ([]byte, error)

func (DistributedStorageDefinition) UnmarshalJSON added in v0.1.3

func (ds DistributedStorageDefinition) UnmarshalJSON(buf []byte) error

type DistributedStorageFieldGroup

type DistributedStorageFieldGroup struct {
	DistributedStorageConfig           map[string]*DistributedStorageDefinition `default:"{}" validate:"" json:"DISTRIBUTED_STORAGE_CONFIG,omitempty" yaml:"DISTRIBUTED_STORAGE_CONFIG,omitempty"`
	DistributedStoragePreference       []string                                 `default:"[]" validate:"" json:"DISTRIBUTED_STORAGE_PREFERENCE,omitempty" yaml:"DISTRIBUTED_STORAGE_PREFERENCE,omitempty"`
	DistributedStorageDefaultLocations []string                                 `` /* 134-byte string literal not displayed */
	FeatureStorageReplication          bool                                     `default:"false" validate:"" json:"FEATURE_STORAGE_REPLICATION" yaml:"FEATURE_STORAGE_REPLICATION"`
	FeatureProxyStorage                bool                                     `default:"false" validate:"" json:"FEATURE_PROXY_STORAGE" yaml:"FEATURE_PROXY_STORAGE"`
}

DistributedStorageFieldGroup represents the DistributedStorageFieldGroup config fields

func NewDistributedStorageFieldGroup added in v0.1.3

func NewDistributedStorageFieldGroup(fullConfig map[string]interface{}) (*DistributedStorageFieldGroup, error)

NewDistributedStorageFieldGroup creates a new DistributedStorageFieldGroup

func (*DistributedStorageFieldGroup) Fields added in v0.1.3

func (fg *DistributedStorageFieldGroup) Fields() []string

Fields returns a list of strings representing the fields in this field group

func (*DistributedStorageFieldGroup) Validate added in v0.1.3

Validate checks the configuration settings for this field group

Jump to

Keyboard shortcuts

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