config

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 6 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualsConfig added in v0.31.3

func EqualsConfig[T vtcompare.EqualVT[T]](t1 T, c2 Config) bool

EqualsConfig implements EqualsConfig assuming both Config are the same type and have VTEqual.

func IsEqualVT added in v0.31.4

func IsEqualVT[T vtcompare.EqualVT[T]](c1, c2 T) bool

IsEqualVT compares two objects with VTEqual.

func MergeDebugVals added in v0.31.5

func MergeDebugVals(to DebugValues, from ...DebugValues)

MergeDebugVals merges multiple DebugValues into the first DebugValues passed.

Types

type Config

type Config interface {
	// Validate validates the configuration.
	// This is a cursory validation to see if the values "look correct."
	Validate() error
	// GetConfigID returns the unique string for this configuration type.
	// This string is stored with the encoded config.
	GetConfigID() string
	// EqualsConfig checks if the config is equal to another.
	EqualsConfig(other Config) bool

	// Marshaler is the json marshaler type.
	json.Marshaler
	// Unmarshaler is the json unmarshaler type.
	json.Unmarshaler

	// Message indicates this is a protobuf_go_lite message.
	protobuf_go_lite.Message
}

Config is an object specifying configuration for a component of the system.

type Constructor

type Constructor interface {
	// GetConfigID returns the unique string for this configuration type.
	GetConfigID() string
	// ConstructConfig constructs a new configuration object.
	ConstructConfig() Config
}

Constructor constructs configuration objects.

type DebugValues

type DebugValues map[string][]string

DebugValues maps string key to a list of values. It is used for debug visualizations.

type Debuggable

type Debuggable interface {
	// GetDebugVals returns the directive arguments as key/value pairs.
	// This should be something like param1="test", param2="test".
	// This is not necessarily unique, and is primarily intended for display.
	GetDebugVals() DebugValues
}

Debuggable is a configuration with debug values.

These debug values are sometimes combined with Exec or Load directives.

type Placeholder added in v0.15.1

type Placeholder struct {
	// contains filtered or unexported fields
}

Placeholder is a config used for type assertions.

func (*Placeholder) CloneMessageVT added in v0.23.6

func (m *Placeholder) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Placeholder) CloneVT added in v0.15.1

func (m *Placeholder) CloneVT() *Placeholder

func (*Placeholder) EqualMessageVT added in v0.23.6

func (this *Placeholder) EqualMessageVT(thatMsg any) bool

func (*Placeholder) EqualVT added in v0.15.1

func (this *Placeholder) EqualVT(that *Placeholder) bool

func (*Placeholder) EqualsConfig added in v0.15.1

func (c *Placeholder) EqualsConfig(other Config) bool

EqualsConfig checks if the config is equal to another.

func (*Placeholder) GetConfigID added in v0.15.1

func (c *Placeholder) GetConfigID() string

GetConfigID returns the unique string for this configuration type.

func (*Placeholder) MarshalJSON added in v0.41.0

func (x *Placeholder) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Placeholder to JSON.

func (*Placeholder) MarshalProtoJSON added in v0.41.0

func (x *Placeholder) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Placeholder message to JSON.

func (*Placeholder) MarshalProtoText added in v0.42.0

func (x *Placeholder) MarshalProtoText() string

func (*Placeholder) MarshalToSizedBufferVT added in v0.15.1

func (m *Placeholder) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Placeholder) MarshalToVT added in v0.15.1

func (m *Placeholder) MarshalToVT(dAtA []byte) (int, error)

func (*Placeholder) MarshalVT added in v0.15.1

func (m *Placeholder) MarshalVT() (dAtA []byte, err error)

func (*Placeholder) ProtoMessage added in v0.15.1

func (*Placeholder) ProtoMessage()

func (*Placeholder) Reset added in v0.15.1

func (x *Placeholder) Reset()

func (*Placeholder) SizeVT added in v0.15.1

func (m *Placeholder) SizeVT() (n int)

func (*Placeholder) String added in v0.15.1

func (x *Placeholder) String() string

func (*Placeholder) UnmarshalJSON added in v0.41.0

func (x *Placeholder) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Placeholder from JSON.

func (*Placeholder) UnmarshalProtoJSON added in v0.41.0

func (x *Placeholder) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Placeholder message from JSON.

func (*Placeholder) UnmarshalVT added in v0.15.1

func (m *Placeholder) UnmarshalVT(dAtA []byte) error

func (*Placeholder) Validate added in v0.15.1

func (c *Placeholder) Validate() error

Validate validates the configuration. This is a cursory validation to see if the values "look correct."

Jump to

Keyboard shortcuts

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