enum

package
v0.0.0-...-188b758 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE = iota
	STREAM
	API
	DATABASE
	S3
	MEMORY
	HARDWARE
	AZURE
	GCS
)

Variables

This section is empty.

Functions

func FromInt

func FromInt(i int) string

Types

type BookingStatus

type BookingStatus int
const (
	DRAFT BookingStatus = iota
	SCHEDULED
	STARTED
	FAILURE
	SUCCESS
	FORGOTTEN
	DELAYED
	CANCELLED
)

func StatusList

func StatusList() []BookingStatus

List

func (BookingStatus) EnumIndex

func (d BookingStatus) EnumIndex() int

EnumIndex - Creating common behavior - give the type a EnumIndex functio

func (BookingStatus) String

func (d BookingStatus) String() string

type CompletionStatus

type CompletionStatus int
const (
	DRAFTED CompletionStatus = iota
	PENDING
	CANCEL
	PARTIAL
	DISPUTED
	OVERDUE
	REFUND
)

func CompletionStatusList

func CompletionStatusList() []CompletionStatus

func (CompletionStatus) String

func (d CompletionStatus) String() string

type InfrastructureType

type InfrastructureType int
const (
	DOCKER InfrastructureType = iota
	KUBERNETES
	SLURM
	HW
	CONDOR
)

func InfrastructureList

func InfrastructureList() []InfrastructureType

get list of all infrastructure types

func (InfrastructureType) String

func (t InfrastructureType) String() string

type StorageSize

type StorageSize int
const (
	GB StorageSize = iota
	MB
	KB
	TB
)

StorageType - Enum that defines the type of storage

func SizeList

func SizeList() []StorageSize

func (StorageSize) String

func (t StorageSize) String() string

Size to string

func (StorageSize) ToArgo

func (dma StorageSize) ToArgo() string

New creates a new instance of the StorageResource struct

type StorageType

type StorageType int

enum of a data type

func TypeList

func TypeList() []StorageType

func (StorageType) String

func (t StorageType) String() string

String() - Returns the string representation of the storage type

Jump to

Keyboard shortcuts

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