constants

package
v0.0.0-...-371bc73 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgUsername represents username to authenticate with password
	CfgUsername = cfgAuthOptions + "username"
	// CfgUserID represents user id to authenticate with password
	CfgUserID = cfgAuthOptions + "user-id"
	// CfgPassword represents password to authenticate
	CfgPassword = cfgAuthOptions + "password"

	// CfgPasscode represents passcode to authenticate with TOTP
	CfgPasscode = cfgAuthOptions + "passcode"

	// CfgDomainID represents domain id to authenticate
	CfgDomainID = cfgAuthOptions + "domain-id"
	// CfgDomainName represents domain name to authenticate
	CfgDomainName = cfgAuthOptions + "domain-name"

	// CfgTenantID represents tenant id to authenticate
	CfgTenantID = cfgAuthOptions + "tenant-id"
	// CfgTenantName represents tenant name to authenticate
	CfgTenantName = cfgAuthOptions + "tenant-name"

	// CfgAllowReauth true to allow cache credentials in memory
	CfgAllowReauth = cfgAuthOptions + "allow-reauth"

	// CfgTokenID represents token TenantID to authenticate
	CfgTokenID = cfgAuthOptions + "token-id"

	// CfgScopeProjectID represents scope project TenantID
	CfgScopeProjectID = cfgAuthOptions + cfgScope + "project-id"
	// CfgScopeProjectName represents scope project name
	CfgScopeProjectName = cfgAuthOptions + cfgScope + "project-name"
	// CfgScopeDomainID represents scope domain TenantID
	CfgScopeDomainID = cfgAuthOptions + cfgScope + "domain-id"
	// CfgScopeDomainName represents scope domain name
	CfgScopeDomainName = cfgAuthOptions + cfgScope + "domain-name"
	// CfgScopeSystem represents scope system
	CfgScopeSystem = cfgAuthOptions + cfgScope + "system"

	// CfgAppCredentialID represents id to authenticate using application credentials
	CfgAppCredentialID = cfgAuthOptions + "application-credential-id"
	// CfgAppCredentialName represents name to authenticate using application credentials
	CfgAppCredentialName = cfgAuthOptions + "application-credential-name"
	// CfgAppCredentialSecret represents secret to authenticate using application credentials
	CfgAppCredentialSecret = cfgAuthOptions + "application-credential-secret" // nolint: gosec
)
View Source
const (
	// CfgEndpointType represents the service type for the client
	CfgEndpointType = cfgEndpointOptions + "type"

	// CfgEndpointName represents the service name for the client
	CfgEndpointName = cfgEndpointOptions + "name"

	// CfgEndpointRegion represents the geographic region in which the endpoint resides
	CfgEndpointRegion = cfgEndpointOptions + "region"

	// CfgEndpointAvailability represents the visibility of the endpoint to be returned
	CfgEndpointAvailability = cfgEndpointOptions + "availability"
)
View Source
const (
	ErrCreatePrepReaderNil  = "error create Preparer when reader is nil"
	ErrCreatePrepLimiterNil = "error create Preparer when limiter is nil"
	ErrCreatePrepConnNil    = "error create Preparer when gRPC client connection is nil"

	ErrPrepEmptyNetUser = "error prepare empty NetUser"
	ErrPrepNoNetUser    = "error get id, unable to prepare network record"

	ErrPrepIPv4 = "unable to prepare ipv4 network record"
	ErrPrepIPv6 = "unable to prepare ipv6 network record"

	ErrPrepEmptyImage = "error prepare empty Image"
	ErrPrepNoImage    = "error get id, unable to prepare storage record"

	ErrPrepRegTime = "error get REGTIME, unable to prepare record"
	ErrPrepSize    = "error get SIZE, unable to prepare record"

	ErrPrepEmptyVM = "error prepare empty Virtual machine"

	ErrPrepWrite = "error send record" // nolint: gosec

	ErrNoSiteName  = "no site name in configuration"
	ErrNoCloudType = "no cloud type in configuration"
	ErrNoGroupName = "no group name"

	ErrCreateProcReaderNil = "error create Processor when Reader is nil"

	ErrPrepEmptyGPU = "error prepare empty GPU struct"
)

constants with error messages

View Source
const (
	// CfgIdentifier represents string identifier of a goat-os instance
	CfgIdentifier = "identifier"

	// CfgRecordsFrom represents time which records are filtered from
	CfgRecordsFrom = "records-from"
	// CfgRecordsTo represents time which records are filtered to
	CfgRecordsTo = "records-to"
	// CfgRecordsFrom represents duration which records are filtered for
	CfgRecordsForPeriod = "records-for-period"

	// CfgGoatEndpoint represents string of goat server endpoint
	CfgGoatEndpoint = "endpoint"

	// CfgOpenstackIdentityEndpoint represents string of Openstack identity endpoint
	CfgOpenstackIdentityEndpoint = "openstack-identity-endpoint"

	// CfgDebug represents true for debug mode; false otherwise
	CfgDebug = "debug"

	// CfgLogPath represents path to log file
	CfgLogPath = "log-path"
)

global constants

View Source
const (
	// CfgNetworkSiteName represents string of network site name
	CfgNetworkSiteName = cfgNetworkPrefix + "site-name"
	// CfgNetworkCloudType represents string of network cloud type
	CfgNetworkCloudType = cfgNetworkPrefix + "cloud-type"
	// CfgNetworkCloudComputeService represents string of network cloud compute service
	CfgNetworkCloudComputeService = cfgNetworkPrefix + "cloud-compute-service"
)

constants for network subcommand

View Source
const (
	// CfgSite represents string of storage site
	CfgSite = cfgStoragePrefix + "site"
	// CfgAccounted represents array of storages to be accounted
	CfgAccounted = cfgStoragePrefix + "accounted"
)

constants for storage subcommand

View Source
const (
	// CfgSiteName represents string of virtual machine site name
	CfgSiteName = cfgVMPrefix + "site-name"
	// CfgCloudType represents string of virtual machine cloud type
	CfgCloudType = cfgVMPrefix + "cloud-type"
	// CfgCloudComputeService represents string of virtual machine cloud compute service
	CfgCloudComputeService = cfgVMPrefix + "cloud-compute-service"
)

constants for virtual machine subcommand

View Source
const (
	// CfgGPUSiteName represents string of gpu site name
	CfgGPUSiteName = cfgGPUPrefix + "site-name"
)

constants for gpu subcommand

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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