blockcommand

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMaxMessageLength is the default maximum length of a block message.
	DefaultMaxMessageLength = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	UUID    string
	Type    BlockType
	Message string
}

Block represents a command block.

type BlockType

type BlockType int8

BlockType defines the block type for a command.

const (
	// DestroyBlock type identifies block that prevents model destruction.
	DestroyBlock BlockType = 1

	// RemoveBlock type identifies block that prevents
	// removal of machines, applications, units or relations.
	RemoveBlock BlockType = 2

	// ChangeBlock type identifies block that prevents model changes such
	// as additions, modifications, removals of model entities.
	ChangeBlock BlockType = 3
)

func (BlockType) String

func (t BlockType) String() string

func (BlockType) Validate

func (t BlockType) Validate() error

Validate checks if the block type is valid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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