topology

package
v1.0.0-alpha1.0...-2e0dbe4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() []string

Types

type T

type T int

T is an integer representing the opensvc object topology.

const (
	// Invalid is for invalid kinds
	Invalid T = iota
	// Failover is the topology where only one instance is activable.
	Failover
	// Flex is the topology where many instances are activable simultaneously. At most 1 per node.
	Flex
)

func New

func New(s string) T

New returns a topology from its string representation.

func (T) MarshalText

func (t T) MarshalText() ([]byte, error)

MarshalText marshals the enum as a quoted json string

func (T) String

func (t T) String() string

func (*T) UnmarshalText

func (t *T) UnmarshalText(b []byte) error

UnmarshalText unmashals a quoted json string to the enum value

Jump to

Keyboard shortcuts

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