common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// LabelAnnotationPrefix is the prefix of every labels and annotations added by the controller.
	LabelAnnotationPrefix = "data.fluid.io/"
	// The format is data.fluid.io/storage-{runtime_type}-{data_set_name}
	LabelAnnotationStorageCapacityPrefix = LabelAnnotationPrefix + "storage-"
	// The dataset annotation
	LabelAnnotationDataset = LabelAnnotationPrefix + "dataset"
)
View Source
const (
	ErrorProcessDatasetReason = "ErrorProcessDataset"

	ErrorProcessRuntimeReason = "ErrorProcessRuntime"

	ErrorHelmInstall = "ErrorHelmInstall"

	DatasetNotReady = "DatasetNotReady"

	RuntimeNotReady = "RuntimeNotReady"

	DataLoadCollision = "DataLoadCollision"

	PrefetchJobStarted = "Prefetch Started"

	PrefetchJobInterrupted = "PrefetchJobInterrupted"

	PrefetchJobComplete = "Prefetch Complete"

	PrefetchJobFailed = "Prefetch Failed"
)

Reason for Pillar events

View Source
const (
	ALLUXIO_RUNTIME = "alluxio"

	ALLUXIO_NAMESPACE = "alluxio-system"

	ALLUXIO_CHART = ALLUXIO_RUNTIME

	ALLUXIO_DATA_LOADER_IMAGE_ENV = "AlluxioDataLoaderImage"

	DEFAULT_ALLUXIO_DATA_LOADER_IMAGE = "registry.cn-huhehaote.aliyuncs.com/alluxio/alluxio-data-loader:v2.2.0"
)

Runtime for Alluxio

View Source
const (
	DATALOAD_FINALIZER     = "fluid-dataload-controller-finalizer"
	DATALOAD_CHART         = "fluid-dataloader"
	DATALOAD_DEFAULT_IMAGE = "registry.cn-hangzhou.aliyuncs.com/fluid/fluid-dataloader"
	DATALOAD_SUFFIX_LENGTH = 5
	ENV_DATALOADER_IMG     = "DATALOADER_IMG"
)
View Source
const RecommendedKubeConfigPathEnv = "KUBECONFIG"

Variables

This section is empty.

Functions

func GetDefaultTieredStoreOrder

func GetDefaultTieredStoreOrder(MediumType MediumType) (order int)

Types

type CacheStateList

type CacheStateList map[CacheStateName]string

ResourceList is a set of (resource name, quantity) pairs.

type CacheStateName

type CacheStateName string

CacheStateName is the name identifying various cacheStateName in a CacheStateNameList.

const (
	// Cached in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
	Cached CacheStateName = "cached"
	// Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
	// Cacheable CacheStateName = "cacheable"
	LowWaterMark CacheStateName = "lowWaterMark"
	// Memory, in bytes. (500Gi = 500GiB = 500 * 1024 * 1024 * 1024)
	HighWaterMark CacheStateName = "highWaterMark"
	// NonCacheable size, in bytes (e,g. 5Gi = 5GiB = 5 * 1024 * 1024 * 1024)
	NonCacheable CacheStateName = "nonCacheable"
	// Percentage represents the cache percentage over the total data in the underlayer filesystem.
	// 1.5 = 1500m
	CachedPercentage CacheStateName = "cachedPercentage"

	CacheCapacity CacheStateName = "cacheCapacity"
)

CacheStateName names must be not more than 63 characters, consisting of upper- or lower-case alphanumeric characters, with the -, _, and . characters allowed anywhere, except the first or last character. The default convention, matching that for annotations, is to use lower-case names, with dashes, rather than camel case, separating compound words. Fully-qualified resource typenames are constructed from a DNS-style subdomain, followed by a slash `/` and a name.

type CacheStoreType

type CacheStoreType string
const (
	DiskCacheStore CacheStoreType = "Disk"

	MemoryCacheStore CacheStoreType = "Memory"

	NoneCacheStore CacheStoreType = ""
)

type Category

type Category string
const (
	AccelerateCategory Category = "Accelerate"
)

type DataloadConditionType

type DataloadConditionType string

DataloadConditionType is a valid value for DataloadCondition.Type

const (
	// DataloadComplete means the Dataload has completed its execution.
	DataloadComplete DataloadConditionType = "Complete"
	// DataloadFailed means the Dataload has failed its execution.
	DataloadFailed DataloadConditionType = "Failed"
)

These are valid conditions of a Dataload.

type DataloadPhase

type DataloadPhase string
const (
	DataloadPhaseNone     DataloadPhase = ""
	DataloadPhasePending  DataloadPhase = "Pending"
	DataloadPhaseLoading  DataloadPhase = "Loading"
	DataloadPhaseComplete DataloadPhase = "Complete"
	DataloadPhaseFailed   DataloadPhase = "Failed"
)

type MediumType

type MediumType string
const (
	Memory MediumType = "MEM"

	SSD MediumType = "SSD"

	HDD MediumType = "HDD"
)

type ResourceList

type ResourceList map[corev1.ResourceName]string

type Resources

type Resources struct {
	Requests ResourceList `yaml:"requests,omitempty"`
	Limits   ResourceList `yaml:"limits,omitempty"`
}

type RuntimeRole

type RuntimeRole string

Jump to

Keyboard shortcuts

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