Documentation ¶
Overview ¶
This package hold commonly shared parts of code. Should not have dependencis to other rcc packages.
Index ¶
- Constants
- Variables
- func AcceptableOutput(message string) bool
- func BadHololibScriptsLocation() string
- func BadHololibSitePackagesLocation() string
- func BinLocation() string
- func BinRcc() string
- func BlueprintHash(blueprint []byte) string
- func CaBundleFile() string
- func ControllerIdentity() string
- func DayCountSince(timestamp time.Time) int
- func Debug(format string, details ...interface{}) error
- func DebugFlag() bool
- func DefineVerbosity(silent, debug, trace bool)
- func Digest(content string) string
- func DisablePycManagement() bool
- func DisableTempManagement() bool
- func EndOfTimeline()
- func Entropy(input []byte) float64
- func Error(context string, err error)
- func EventJournal() string
- func Exit(code int, format string, rest ...interface{})
- func ExpandPath(entry string) string
- func Fatal(context string, err error)
- func ForceDebug()
- func Gcd(left, right int64) int64
- func GenerateKillCommand(keys []int) string
- func Hexdigest(raw []byte) string
- func HoloInitCommonFile() string
- func HoloInitLocation() string
- func HoloInitUserFile() string
- func HoloLocation() string
- func HololibCatalogLocation() string
- func HololibCompressMarker() string
- func HololibLibraryLocation() string
- func HololibLocation() string
- func HololibPids() string
- func HololibUsageLocation() string
- func HolotreeLocation() string
- func HolotreeLock() string
- func IgnoreAllPanics()
- func IsBundled() bool
- func IsInsideRobocorpHome(location string) (_ bool, err error)
- func JournalLocation() string
- func Log(format string, details ...interface{})
- func MambaPackages() string
- func MambaRootPrefix() string
- func MicroMambaRcFile() string
- func MicromambaLocation() string
- func NewDigester(legacy bool) hash.Hash
- func OldEventJournal() string
- func OneOutOf(limit uint8) bool
- func OverrideSystemRequirements() bool
- func PipCache() string
- func PipRcFile() string
- func Platform() string
- func PlatformSyncDelay()
- func RandomIdentifier() string
- func RccRemoteAuthorization() (string, bool)
- func RccRemoteOrigin() string
- func RegisterJournal(target runJournal)
- func RobocorpHome() string
- func RobocorpLock() string
- func RobocorpTemp() string
- func RobocorpTempName() string
- func RobocorpTempRoot() string
- func RobotCache() string
- func RunJournal(event, detail, commentForm string, fields ...interface{}) error
- func SettingsFile() string
- func SharedMarkerLocation() string
- func ShortDigest(content string) string
- func Silent() bool
- func Siphash(left, right uint64, body []byte) uint64
- func Sipit(key []byte) uint64
- func Stdout(format string, details ...interface{})
- func Stopwatch(form string, details ...interface{}) *stopwatch
- func SymbolicUserIdentity() string
- func TemplateLocation() string
- func Textual(key uint64, size int) string
- func Timeline(form string, details ...interface{})
- func TimelineBegin(form string, details ...interface{})
- func TimelineEnd()
- func Trace(format string, details ...interface{}) error
- func TraceFlag() bool
- func UnifyStageHandling()
- func UserAgent() string
- func UserHomeIdentity() string
- func UsesHolotree() bool
- func UvCache() string
- func VerboseEnvironmentBuilding() bool
- func WaitLogs()
- func WarrantyVoided() bool
- func WheelCache() string
- type Commander
- type Diagnoser
- func (it Diagnoser) Fail(category uint64, link, form string, details ...interface{})
- func (it Diagnoser) Fatal(category uint64, link, form string, details ...interface{})
- func (it Diagnoser) Ok(category uint64, form string, details ...interface{})
- func (it Diagnoser) Warning(category uint64, link, form string, details ...interface{})
- type DiagnosticCheck
- type DiagnosticStatus
- type Duration
- type ExitCode
- type Scorecard
- type Verbosity
Constants ¶
View Source
const ( CategoryUndefined = 0 CategoryLongPath = 1010 CategoryLockFile = 1020 CategoryLockPid = 1021 CategoryPathCheck = 1030 CategoryEnvVarCheck = 1040 CategoryRobocorpHome = 3010 CategoryRobocorpHomeMembers = 3020 CategoryNetworkDNS = 4010 CategoryNetworkLink = 4020 CategoryNetworkHEAD = 4030 CategoryNetworkCanary = 4040 CategoryNetworkTLSVersion = 4050 CategoryNetworkTLSVerify = 4060 CategoryNetworkTLSChain = 4070 CategoryEnvironmentCache = 5010 )
View Source
const ( StatusOk = `ok` StatusWarning = `warning` StatusFail = `fail` StatusFatal = `fatal` )
View Source
const ( ROBOCORP_HOME_VARIABLE = `ROBOCORP_HOME` RCC_REMOTE_ORIGIN = `RCC_REMOTE_ORIGIN` RCC_REMOTE_AUTHORIZATION = `RCC_REMOTE_AUTHORIZATION` RCC_NO_TEMP_MANAGEMENT = `RCC_NO_TEMP_MANAGEMENT` RCC_NO_PYC_MANAGEMENT = `RCC_NO_PYC_MANAGEMENT` VERBOSE_ENVIRONMENT_BUILDING = `RCC_VERBOSE_ENVIRONMENT_BUILDING` ROBOCORP_OVERRIDE_SYSTEM_REQUIREMENTS = `ROBOCORP_OVERRIDE_SYSTEM_REQUIREMENTS` RCC_VERBOSITY = `RCC_VERBOSITY` SILENTLY = `silent` TRACING = `trace` DEBUGGING = `debug` )
View Source
const (
Version = `v17.28.2`
)
Variables ¶
View Source
var ( Identities chan string Startup time.Time )
View Source
var ( NoBuild bool NoRetryBuild bool NoTempManagement bool NoPycManagement bool ExternallyManaged bool DeveloperFlag bool StrictFlag bool LogLinenumbers bool NoCache bool NoOutputCapture bool Liveonly bool UnmanagedSpace bool FreshlyBuildEnvironment bool WarrantyVoidedFlag bool BundledFlag bool StageFolder string ControllerType string HolotreeSpace string EnvironmentHash string SemanticTag string ForcedRobocorpHome string When int64 Clock *stopwatch LogHides []string )
View Source
var (
TimelineEnabled bool
)
Functions ¶
func AcceptableOutput ¶
func BadHololibScriptsLocation ¶
func BadHololibScriptsLocation() string
func BadHololibSitePackagesLocation ¶
func BadHololibSitePackagesLocation() string
func BinLocation ¶
func BinLocation() string
func BlueprintHash ¶
func CaBundleFile ¶
func CaBundleFile() string
func ControllerIdentity ¶
func ControllerIdentity() string
func DayCountSince ¶
func DefineVerbosity ¶
func DefineVerbosity(silent, debug, trace bool)
func DisablePycManagement ¶
func DisablePycManagement() bool
func DisableTempManagement ¶
func DisableTempManagement() bool
func EndOfTimeline ¶
func EndOfTimeline()
func EventJournal ¶
func EventJournal() string
func ExpandPath ¶
func ForceDebug ¶
func ForceDebug()
func GenerateKillCommand ¶
func HoloInitCommonFile ¶
func HoloInitCommonFile() string
func HoloInitLocation ¶
func HoloInitLocation() string
func HoloInitUserFile ¶
func HoloInitUserFile() string
func HoloLocation ¶
func HoloLocation() string
func HololibCatalogLocation ¶
func HololibCatalogLocation() string
func HololibCompressMarker ¶
func HololibCompressMarker() string
func HololibLibraryLocation ¶
func HololibLibraryLocation() string
func HololibLocation ¶
func HololibLocation() string
func HololibPids ¶
func HololibPids() string
func HololibUsageLocation ¶
func HololibUsageLocation() string
func HolotreeLocation ¶
func HolotreeLocation() string
func HolotreeLock ¶
func HolotreeLock() string
func IgnoreAllPanics ¶
func IgnoreAllPanics()
func IsInsideRobocorpHome ¶
func JournalLocation ¶
func JournalLocation() string
func MambaPackages ¶
func MambaPackages() string
func MambaRootPrefix ¶
func MambaRootPrefix() string
func MicroMambaRcFile ¶
func MicroMambaRcFile() string
func MicromambaLocation ¶
func MicromambaLocation() string
func NewDigester ¶
func OldEventJournal ¶
func OldEventJournal() string
func OverrideSystemRequirements ¶
func OverrideSystemRequirements() bool
func PlatformSyncDelay ¶
func PlatformSyncDelay()
func RandomIdentifier ¶
func RandomIdentifier() string
func RccRemoteAuthorization ¶
func RccRemoteOrigin ¶
func RccRemoteOrigin() string
func RegisterJournal ¶
func RegisterJournal(target runJournal)
func RobocorpHome ¶
func RobocorpHome() string
func RobocorpLock ¶
func RobocorpLock() string
func RobocorpTemp ¶
func RobocorpTemp() string
func RobocorpTempName ¶
func RobocorpTempName() string
func RobocorpTempRoot ¶
func RobocorpTempRoot() string
func RobotCache ¶
func RobotCache() string
func RunJournal ¶
func SettingsFile ¶
func SettingsFile() string
func SharedMarkerLocation ¶
func SharedMarkerLocation() string
func ShortDigest ¶
func SymbolicUserIdentity ¶
func SymbolicUserIdentity() string
func TemplateLocation ¶
func TemplateLocation() string
func TimelineBegin ¶
func TimelineBegin(form string, details ...interface{})
func TimelineEnd ¶
func TimelineEnd()
func UnifyStageHandling ¶
func UnifyStageHandling()
func UserHomeIdentity ¶
func UserHomeIdentity() string
func UsesHolotree ¶
func UsesHolotree() bool
func VerboseEnvironmentBuilding ¶
func VerboseEnvironmentBuilding() bool
func WarrantyVoided ¶
func WarrantyVoided() bool
func WheelCache ¶
func WheelCache() string
Types ¶
type Commander ¶
type Commander struct {
// contains filtered or unexported fields
}
func NewCommander ¶
func (*Commander) ConditionalFlag ¶
type DiagnosticCheck ¶
type DiagnosticStatus ¶
type DiagnosticStatus struct { Details map[string]string `json:"details"` Checks []*DiagnosticCheck `json:"checks"` }
func (*DiagnosticStatus) AsJson ¶
func (it *DiagnosticStatus) AsJson() (string, error)
func (*DiagnosticStatus) Counts ¶
func (it *DiagnosticStatus) Counts() (fatal, fail, warning, ok int)
func (*DiagnosticStatus) Diagnose ¶
func (it *DiagnosticStatus) Diagnose(kind string) Diagnoser
type Duration ¶
func (Duration) Milliseconds ¶
type ExitCode ¶
func (ExitCode) ShowMessage ¶
func (it ExitCode) ShowMessage()
Click to show internal directories.
Click to hide internal directories.