Documentation
¶
Index ¶
- Variables
- func AuthMiddleware(parent context.Context) echo.MiddlewareFunc
- func GetClusterIPs() clusterip.L
- func GetLogger(c echo.Context) *plog.Logger
- func JSONForbiddenMissingGrant(ctx echo.Context, missing ...rbac.Grant) error
- func JSONForbiddenMissingRole(ctx echo.Context, missing ...rbac.Role) error
- func JSONForbiddenStrategy(ctx echo.Context, strategy string, expected ...string) error
- func JSONFromSetInstanceMonitorError(eCtx echo.Context, p naming.Path, node string, value *instance.MonitorUpdate, ...) error
- func JSONFromSetNodeMonitorError(eCtx echo.Context, nodename string, value *node.MonitorUpdate, err error) error
- func JSONProblem(ctx echo.Context, code int, title, detail string) error
- func JSONProblemExpand(ctx echo.Context, err error) error
- func JSONProblemf(ctx echo.Context, code int, title, format string, a ...any) error
- func LogHandler(c echo.Context, name string) *plog.Logger
- func LogMiddleware(parent context.Context) echo.MiddlewareFunc
- func LogRequestMiddleWare(parent context.Context) echo.MiddlewareFunc
- func LogUserMiddleware(parent context.Context) echo.MiddlewareFunc
- func RateLimiterWithConfig(parent context.Context) echo.MiddlewareFunc
- func RequireRootOn(prefix string) echo.MiddlewareFunc
- func RequireScraper(next echo.HandlerFunc) echo.HandlerFunc
- func SubQS(ctx context.Context) pubsub.QueueSizer
- func UIMiddleware(_ context.Context, prefix string, specURL string) echo.MiddlewareFunc
- func WithSubQS(parent context.Context, subQS pubsub.QueueSizer) context.Context
- type DaemonAPI
- func (a *DaemonAPI) CheckDataSize(ctx echo.Context) (bool, error)
- func (a *DaemonAPI) DeleteClusterLock(ctx echo.Context, params api.DeleteClusterLockParams) error
- func (a *DaemonAPI) DeleteDaemonExecs(ctx echo.Context, nodename string, params api.DeleteDaemonExecsParams) error
- func (a *DaemonAPI) DeleteInstanceFile(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) DeleteNodeCollectorTagAttachment(ctx echo.Context, nodename api.InPathNodeName, name api.InPathCollectorTagName) error
- func (a *DaemonAPI) DeleteNodeComplianceModulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) DeleteNodeComplianceRulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) DeleteNodeDRBDConfig(ctx echo.Context, nodename string, params api.DeleteNodeDRBDConfigParams) error
- func (a *DaemonAPI) DeleteNodeLock(ctx echo.Context, nodename api.InPathNodeName, params api.DeleteNodeLockParams) error
- func (a *DaemonAPI) DeleteObjectCollectorTagAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) DeleteObjectComplianceModulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) DeleteObjectComplianceRulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) DeleteObjectDataKey(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) DeleteStoreSnapshot(ctx echo.Context, params api.DeleteStoreSnapshotParams) error
- func (a *DaemonAPI) GetArray(ctx echo.Context, params api.GetArrayParams) error
- func (a *DaemonAPI) GetAuthInfo(ctx echo.Context) error
- func (a *DaemonAPI) GetAuthWhoAmI(ctx echo.Context) error
- func (a *DaemonAPI) GetClusterCollectorTags(ctx echo.Context) error
- func (a *DaemonAPI) GetClusterConfig(ctx echo.Context, params api.GetClusterConfigParams) error
- func (a *DaemonAPI) GetClusterConfigFile(ctx echo.Context, params api.GetClusterConfigFileParams) error
- func (a *DaemonAPI) GetClusterConfigKeywords(ctx echo.Context, params api.GetClusterConfigKeywordsParams) error
- func (a *DaemonAPI) GetClusterLocks(ctx echo.Context) error
- func (a *DaemonAPI) GetClusterStatus(ctx echo.Context, params api.GetClusterStatusParams) error
- func (a *DaemonAPI) GetClusterTombstones(ctx echo.Context) error
- func (a *DaemonAPI) GetDaemonDNSDump(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) GetDaemonEvents(ctx echo.Context, nodename string, params api.GetDaemonEventsParams) error
- func (a *DaemonAPI) GetDaemonExec(ctx echo.Context, nodename string, execID uuid.UUID, ...) error
- func (a *DaemonAPI) GetDaemonExecs(ctx echo.Context, nodename string, params api.GetDaemonExecsParams) error
- func (a *DaemonAPI) GetDaemonLogControl(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetDaemonOrchestration(ctx echo.Context, nodename string, orchestrationID string, ...) error
- func (a *DaemonAPI) GetDaemonOrchestrations(ctx echo.Context, nodename string, params api.GetDaemonOrchestrationsParams) error
- func (a *DaemonAPI) GetInstance(ctx echo.Context, nodename string, namespace string, kind naming.Kind, ...) error
- func (a *DaemonAPI) GetInstanceComplianceEnv(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) GetInstanceComplianceRules(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) GetInstanceConfigFile(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) GetInstanceConfigValidate(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) GetInstanceContainerLog(ctx echo.Context, nodename string, namespace string, kind naming.Kind, ...) error
- func (a *DaemonAPI) GetInstanceDevices(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) GetInstanceFiles(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetInstanceLogs(ctx echo.Context, nodename string, namespace string, kind naming.Kind, ...) error
- func (a *DaemonAPI) GetInstanceResourceFile(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetInstanceResourceInfo(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) GetInstanceSchedule(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) GetInstanceSyncSnapshots(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetInstances(ctx echo.Context, params api.GetInstancesParams) error
- func (a *DaemonAPI) GetNetworkIP(ctx echo.Context, params api.GetNetworkIPParams) error
- func (a *DaemonAPI) GetNetworkNodes(ctx echo.Context, params api.GetNetworkNodesParams) error
- func (a *DaemonAPI) GetNetworks(ctx echo.Context, params api.GetNetworksParams) error
- func (a *DaemonAPI) GetNodeCapabilities(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) GetNodeCollectorTagAttachments(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeComplianceEnv(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) GetNodeComplianceModules(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeComplianceModulesetTree(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) GetNodeComplianceModulesets(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) GetNodeComplianceRules(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeComplianceRulesets(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) GetNodeConfig(ctx echo.Context, nodename string, params api.GetNodeConfigParams) error
- func (a *DaemonAPI) GetNodeConfigFile(ctx echo.Context, nodename string, params api.GetNodeConfigFileParams) error
- func (a *DaemonAPI) GetNodeConfigKeywords(ctx echo.Context, nodename string, params api.GetNodeConfigKeywordsParams) error
- func (a *DaemonAPI) GetNodeConfigValidate(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) GetNodeDRBDAllocation(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) GetNodeDRBDConfig(ctx echo.Context, nodename string, params api.GetNodeDRBDConfigParams) error
- func (a *DaemonAPI) GetNodeDriver(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeLocks(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeLogs(ctx echo.Context, nodename string, params api.GetNodeLogsParams) error
- func (a *DaemonAPI) GetNodeMetrics(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeMetricsPG(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) GetNodeNetworkReservations(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) GetNodePing(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSSHHostkeys(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) GetNodeSSHKey(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) GetNodeSchedule(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) GetNodeSystemDisk(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemGroup(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemHardware(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemIPAddress(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemPackage(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemProperty(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemSANInitiator(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemSANPath(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodeSystemUser(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) GetNodes(ctx echo.Context, params api.GetNodesParams) error
- func (a *DaemonAPI) GetNodesInfo(ctx echo.Context) error
- func (a *DaemonAPI) GetObject(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) GetObjectCollectorTagAttachments(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) GetObjectComplianceModules(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) GetObjectComplianceModulesetTree(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) GetObjectComplianceModulesets(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) GetObjectComplianceRulesets(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) GetObjectConfig(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetObjectConfigFile(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetObjectConfigKeywords(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetObjectData(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetObjectDataKey(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetObjectDataKeys(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) GetObjectPaths(ctx echo.Context, params api.GetObjectPathsParams) error
- func (a *DaemonAPI) GetObjectResourceInfo(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) GetObjectSchedule(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) GetObjects(ctx echo.Context, params api.GetObjectsParams) error
- func (a *DaemonAPI) GetPoolVolumes(ctx echo.Context, params api.GetPoolVolumesParams) error
- func (a *DaemonAPI) GetPools(ctx echo.Context, params api.GetPoolsParams) error
- func (a *DaemonAPI) GetRelayMessage(ctx echo.Context, params api.GetRelayMessageParams) error
- func (a *DaemonAPI) GetRelayStatus(ctx echo.Context, params api.GetRelayStatusParams) error
- func (a *DaemonAPI) GetResources(ctx echo.Context, params api.GetResourcesParams) error
- func (a *DaemonAPI) GetStoreObjects(ctx echo.Context, params api.GetStoreObjectsParams) error
- func (a *DaemonAPI) GetStoreSnapshots(ctx echo.Context, params api.GetStoreSnapshotsParams) error
- func (a *DaemonAPI) GetStores(ctx echo.Context) error
- func (a *DaemonAPI) GetSwagger(ctx echo.Context) error
- func (a *DaemonAPI) PatchClusterConfig(ctx echo.Context, params api.PatchClusterConfigParams) error
- func (a *DaemonAPI) PatchNodeConfig(ctx echo.Context, nodename string, params api.PatchNodeConfigParams) error
- func (a *DaemonAPI) PatchObjectConfig(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PatchObjectData(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostAuthRefresh(ctx echo.Context, params api.PostAuthRefreshParams) error
- func (a *DaemonAPI) PostAuthToken(ctx echo.Context, params api.PostAuthTokenParams) error
- func (a *DaemonAPI) PostClusterAction(eCtx echo.Context, globalExpect node.MonitorGlobalExpect) error
- func (a *DaemonAPI) PostClusterActionAbort(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterActionFreeze(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterActionUnfreeze(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterActionUpdatePkg(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterCollectorTag(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterEnroll(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterEvict(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterHeartbeatRotate(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterJoin(ctx echo.Context, params api.PostClusterJoinParams) error
- func (a *DaemonAPI) PostClusterJoinRegister(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterLeave(ctx echo.Context, params api.PostClusterLeaveParams) error
- func (a *DaemonAPI) PostClusterLock(ctx echo.Context) error
- func (a *DaemonAPI) PostClusterRegister(ctx echo.Context) error
- func (a *DaemonAPI) PostComputeClaim(ctx echo.Context) error
- func (a *DaemonAPI) PostDaemonAudit(ctx echo.Context, nodename string, params api.PostDaemonAuditParams) error
- func (a *DaemonAPI) PostDaemonHeartbeatRestart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName) error
- func (a *DaemonAPI) PostDaemonHeartbeatSign(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName, ...) error
- func (a *DaemonAPI) PostDaemonHeartbeatStart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName) error
- func (a *DaemonAPI) PostDaemonHeartbeatStop(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName) error
- func (a *DaemonAPI) PostDaemonHeartbeatWipe(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName, ...) error
- func (a *DaemonAPI) PostDaemonJoin(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) PostDaemonLeave(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) PostDaemonListenerRestart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathListenerName) error
- func (a *DaemonAPI) PostDaemonListenerStart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathListenerName) error
- func (a *DaemonAPI) PostDaemonListenerStop(ctx echo.Context, nodename api.InPathNodeName, name api.InPathListenerName) error
- func (a *DaemonAPI) PostDaemonLogControl(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PostDaemonRestart(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PostDaemonShutdown(ctx echo.Context, nodename string, params api.PostDaemonShutdownParams) error
- func (a *DaemonAPI) PostDaemonStop(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PostInstanceActionBoot(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionDelete(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionFreeze(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionFull(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionInfo(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionIngest(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionInstall(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionKeyInstall(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) PostInstanceActionPGReset(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionPGUpdate(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionPRStart(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionPRStop(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionProvision(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionRestart(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionRestore(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionResync(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionRun(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionShutdown(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionSplit(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionStart(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionStartStandby(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionStatus(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionStop(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionUnfreeze(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionUnprovision(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionUnstop(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceActionUpdate(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceClear(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostInstanceCollectorAction(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostInstanceComplianceActionAuto(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) PostInstanceComplianceActionCheck(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) PostInstanceComplianceActionFix(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) PostInstanceComplianceActionFixable(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, ...) error
- func (a *DaemonAPI) PostInstanceFile(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceFileDirectory(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceFileDownload(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceProgress(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostInstanceResourceConsole(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceResourceInfo(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostInstanceStateFile(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostInstanceStatus(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostNetworkClaim(ctx echo.Context) error
- func (a *DaemonAPI) PostNodeActionChecks(ctx echo.Context, nodename api.InPathNodeName) error
- func (a *DaemonAPI) PostNodeActionClear(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PostNodeActionPushAsset(ctx echo.Context, nodename string, params api.PostNodeActionPushAssetParams) error
- func (a *DaemonAPI) PostNodeActionPushDisk(ctx echo.Context, nodename string, params api.PostNodeActionPushDiskParams) error
- func (a *DaemonAPI) PostNodeActionPushPkg(ctx echo.Context, nodename string, params api.PostNodeActionPushPkgParams) error
- func (a *DaemonAPI) PostNodeActionRegister(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeActionSCSIScan(ctx echo.Context, nodename string, params api.PostNodeActionSCSIScanParams) error
- func (a *DaemonAPI) PostNodeActionScanCapabilities(ctx echo.Context, nodename string, ...) error
- func (a *DaemonAPI) PostNodeActionSysreport(ctx echo.Context, nodename string, params api.PostNodeActionSysreportParams) error
- func (a *DaemonAPI) PostNodeCollectorTagAttachment(ctx echo.Context, nodename api.InPathNodeName, name api.InPathCollectorTagName) error
- func (a *DaemonAPI) PostNodeComplianceActionAuto(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeComplianceActionCheck(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeComplianceActionFix(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeComplianceActionFixable(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeComplianceModulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeComplianceRulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeConsole(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PostNodeDRBDConfig(ctx echo.Context, nodename string, params api.PostNodeDRBDConfigParams) error
- func (a *DaemonAPI) PostNodeDRBDConnect(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeDRBDPrimary(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeDRBDSecondary(ctx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostNodeNetworkSetup(eCtx echo.Context, nodename api.InPathNodeName, ...) error
- func (a *DaemonAPI) PostObjectActionAbort(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectActionCap(eCtx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectActionDelete(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectActionFreeze(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectActionGiveback(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectActionProvision(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectActionPurge(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectActionResize(eCtx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectActionRestart(eCtx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectActionStart(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectActionStop(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectActionSwitch(eCtx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectActionUnfreeze(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectActionUnprovision(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectCertificateCreate(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectCertificateRenew(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectCollectorTagAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) PostObjectComplianceModulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) PostObjectComplianceRulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, ...) error
- func (a *DaemonAPI) PostObjectConfigFile(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostObjectConfigValidate(ctx echo.Context, namespace string, kind naming.Kind, name string) error
- func (a *DaemonAPI) PostObjectDataKey(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PostPeerActionAbort(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PostPeerActionDequeue(ctx echo.Context, nodename string, params api.PostPeerActionDequeueParams) error
- func (a *DaemonAPI) PostPeerActionDrain(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PostPeerActionFreeze(ctx echo.Context, nodename string, params api.PostPeerActionFreezeParams) error
- func (a *DaemonAPI) PostPeerActionUnfreeze(ctx echo.Context, nodename string, params api.PostPeerActionUnfreezeParams) error
- func (a *DaemonAPI) PostPoolClaim(ctx echo.Context) error
- func (a *DaemonAPI) PostRelayMessage(ctx echo.Context) error
- func (a *DaemonAPI) PostSvcDisable(ctx echo.Context, namespace string, name string, ...) error
- func (a *DaemonAPI) PostSvcEnable(ctx echo.Context, namespace string, name string, ...) error
- func (a *DaemonAPI) PutClusterConfigFile(ctx echo.Context) error
- func (a *DaemonAPI) PutNodeConfigFile(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PutNodeSSHTrust(ctx echo.Context, nodename string) error
- func (a *DaemonAPI) PutObjectConfigFile(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- func (a *DaemonAPI) PutObjectDataKey(ctx echo.Context, namespace string, kind naming.Kind, name string, ...) error
- type DataFilter
- type DataFilters
- type Filter
- type JWTCreater
- type Meta
Constants ¶
This section is empty.
Variables ¶
var ErrClaimOverrun = errors.New("claim overrun")
ErrClaimOverrun is a configuration write taking the namespace over what it claimed of a cluster resource.
var ErrConfigChanged = xconfig.ErrConfigChanged
ErrConfigChanged is a configuration write refused because the file changed after the write was checked against it.
var ErrDenied = errors.New("denied")
ErrDenied heads every refusal the keyword policy makes, so a caller deep enough to have lost sight of why an update failed can still answer with the forbidden it is rather than an internal error.
var ErrDiscovering = errors.New("the daemon is starting: the local objects are not discovered yet")
ErrDiscovering is the error of an object listing asked while the daemon has not discovered the objects of its configuration files yet: an empty list would say there are none (card 308).
var ErrHoldConflict = errors.New("held by another object")
ErrHoldConflict is the refusal of a configuration whose resources would hold a value another object's resources hold on the same node.
var ErrInvalidConfig = errors.New("invalid configuration")
ErrInvalidConfig is what a configuration update the validation refuses is, so a caller answers with the bad request it is rather than an internal error. The message is the validation's, naming the keywords refused.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(parent context.Context) echo.MiddlewareFunc
func GetClusterIPs ¶
func JSONForbiddenStrategy ¶
func JSONFromSetInstanceMonitorError ¶
func JSONFromSetInstanceMonitorError(eCtx echo.Context, p naming.Path, node string, value *instance.MonitorUpdate, err error) error
JSONFromSetInstanceMonitorError sends a JSON response where status code depends on SetMonitorUpdate error value.
- StatusOK: expectation value accepted, or queued to an instance monitor not reading it in time, as one running an action
- StatusRequestTimeout: the client gone
- StatusConflict: expectation value refused
func JSONFromSetNodeMonitorError ¶
func JSONFromSetNodeMonitorError(eCtx echo.Context, nodename string, value *node.MonitorUpdate, err error) error
JSONFromSetNodeMonitorError sends a JSON response where status code depends on SetNodeMonitor error value.
- StatusOK: expectation value accepted, or queued to a node monitor not reading it in time
- StatusRequestTimeout: the client gone
- StatusConflict: expectation value refused
func JSONProblemExpand ¶
JSONProblemExpand answers the error of a selection expansion: a 503 while the objects are not discovered, the client to ask again or to read its local files, a 500 otherwise.
func JSONProblemf ¶
func LogMiddleware ¶
func LogMiddleware(parent context.Context) echo.MiddlewareFunc
func LogRequestMiddleWare ¶
func LogRequestMiddleWare(parent context.Context) echo.MiddlewareFunc
func LogUserMiddleware ¶
func LogUserMiddleware(parent context.Context) echo.MiddlewareFunc
func RateLimiterWithConfig ¶
func RateLimiterWithConfig(parent context.Context) echo.MiddlewareFunc
func RequireRootOn ¶
func RequireRootOn(prefix string) echo.MiddlewareFunc
RequireRootOn answers a caller without the root grant with a 403 on the routes under prefix, whatever their method: for the routes a library registers, which take no middleware of their own.
func RequireScraper ¶
func RequireScraper(next echo.HandlerFunc) echo.HandlerFunc
RequireScraper answers a caller without the scraper or the root grant with a 403, as the metrics pages do, which are served out of the api, unfiltered. A page isPublic let through needs no grant.
func SubQS ¶
func SubQS(ctx context.Context) pubsub.QueueSizer
SubQS function returns api pubsub.QueueSizer from context
func UIMiddleware ¶
Types ¶
type DaemonAPI ¶
type DaemonAPI struct {
AuditRegistry *auditstate.Registry
Bus pubsub.Buser
Daemondata *daemondata.T
JWTcreator JWTCreater
LabelLocalhost pubsub.Label
SubQS pubsub.QueueSizer
// contains filtered or unexported fields
}
func (*DaemonAPI) DeleteClusterLock ¶
DeleteClusterLock releases a cluster lock.
A release does not depend on the table of the node speaking. Every node forgets a lock it is told was released, from its table too, and keeps its id from the rebuilds to come. So a release the node speaking cannot answer, its table not rebuilt or itself out of reach, is done by telling every node to forget the lock, and answered done: the client let go of it, and a release that failed would leave it held by nobody until its lease ends.
func (*DaemonAPI) DeleteDaemonExecs ¶
func (*DaemonAPI) DeleteInstanceFile ¶
func (a *DaemonAPI) DeleteInstanceFile(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, params api.DeleteInstanceFileParams) error
DeleteInstanceFile removes an entry of a directory of a volume.
func (*DaemonAPI) DeleteNodeCollectorTagAttachment ¶
func (a *DaemonAPI) DeleteNodeCollectorTagAttachment(ctx echo.Context, nodename api.InPathNodeName, name api.InPathCollectorTagName) error
DeleteNodeCollectorTagAttachment detaches a tag from the node, on the collector.
func (*DaemonAPI) DeleteNodeComplianceModulesetAttachment ¶
func (a *DaemonAPI) DeleteNodeComplianceModulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, params api.DeleteNodeComplianceModulesetAttachmentParams) error
DeleteNodeComplianceModulesetAttachment detaches a moduleset from the node.
func (*DaemonAPI) DeleteNodeComplianceRulesetAttachment ¶
func (a *DaemonAPI) DeleteNodeComplianceRulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, params api.DeleteNodeComplianceRulesetAttachmentParams) error
DeleteNodeComplianceRulesetAttachment detaches a ruleset from the node.
func (*DaemonAPI) DeleteNodeDRBDConfig ¶
func (*DaemonAPI) DeleteNodeLock ¶
func (a *DaemonAPI) DeleteNodeLock(ctx echo.Context, nodename api.InPathNodeName, params api.DeleteNodeLockParams) error
DeleteNodeLock forgets a cluster lock the clients of a node hold, or that the node granted while it spoke.
func (*DaemonAPI) DeleteObjectCollectorTagAttachment ¶
func (a *DaemonAPI) DeleteObjectCollectorTagAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, tag api.InPathCollectorTagName) error
DeleteObjectCollectorTagAttachment detaches a tag from the object, on the collector: admin of the namespace.
func (*DaemonAPI) DeleteObjectComplianceModulesetAttachment ¶
func (a *DaemonAPI) DeleteObjectComplianceModulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.DeleteObjectComplianceModulesetAttachmentParams) error
DeleteObjectComplianceModulesetAttachment detaches a moduleset from the object: admin of the namespace.
func (*DaemonAPI) DeleteObjectComplianceRulesetAttachment ¶
func (a *DaemonAPI) DeleteObjectComplianceRulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.DeleteObjectComplianceRulesetAttachmentParams) error
DeleteObjectComplianceRulesetAttachment detaches a ruleset from the object: admin of the namespace.
func (*DaemonAPI) DeleteObjectDataKey ¶
func (*DaemonAPI) DeleteStoreSnapshot ¶
func (a *DaemonAPI) DeleteStoreSnapshot(ctx echo.Context, params api.DeleteStoreSnapshotParams) error
DeleteStoreSnapshot removes a run from a store, protected or not: the retention never removes a protected one. The run is one of an object of a namespace the requester is an administrator of.
func (*DaemonAPI) GetClusterCollectorTags ¶
GetClusterCollectorTags answers the tags of the collector, as it answers them to the node serving the request. The tags belong to no namespace: a guest of all of them.
func (*DaemonAPI) GetClusterConfig ¶
func (*DaemonAPI) GetClusterConfigFile ¶
func (*DaemonAPI) GetClusterConfigKeywords ¶
func (*DaemonAPI) GetClusterLocks ¶
GetClusterLocks returns the cluster locks held, as the node speaking for the cluster granted them.
func (*DaemonAPI) GetClusterStatus ¶
GetDaemonStatus returns daemon data status
Serve 2s cached data.
func (*DaemonAPI) GetClusterTombstones ¶
GetClusterTombstones returns the tombstones the nodes publish, a record per node deleting its instance, every node holding them all, with the nodes still publishing the version of the config deleted. A user other than root sees the ones of the namespaces it is guest of.
func (*DaemonAPI) GetDaemonDNSDump ¶
GetDaemonDNSDump returns the DNS zone content.
func (*DaemonAPI) GetDaemonEvents ¶
func (a *DaemonAPI) GetDaemonEvents(ctx echo.Context, nodename string, params api.GetDaemonEventsParams) error
GetDaemonEvents feeds node daemon event publications in rss format.
func (*DaemonAPI) GetDaemonExec ¶
func (*DaemonAPI) GetDaemonExecs ¶
func (*DaemonAPI) GetDaemonLogControl ¶
GetDaemonLogControl reports the level the daemon logs are emitted at.
func (*DaemonAPI) GetDaemonOrchestration ¶
func (*DaemonAPI) GetDaemonOrchestrations ¶
func (*DaemonAPI) GetInstance ¶
func (*DaemonAPI) GetInstanceComplianceEnv ¶
func (a *DaemonAPI) GetInstanceComplianceEnv(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.GetInstanceComplianceEnvParams) error
GetInstanceComplianceEnv answers the environment the modules of the object are executed with on the node: a read, as the resource info of an instance.
func (*DaemonAPI) GetInstanceComplianceRules ¶
func (a *DaemonAPI) GetInstanceComplianceRules(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName) error
GetInstanceComplianceRules answers the rulesets exposed to the modules of the object on the node: a read, as the resource info of an instance.
func (*DaemonAPI) GetInstanceConfigFile ¶
func (*DaemonAPI) GetInstanceConfigValidate ¶
func (a *DaemonAPI) GetInstanceConfigValidate(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
GetInstanceConfigValidate validates the configuration of the object on the node, as om validate config does there: the keywords, and the checks the drivers make loading the resources, on the node. The alerts may quote the values of the keywords, the ones declared secret included, so it is the administrators' of the namespace and root's, who read them.
func (*DaemonAPI) GetInstanceContainerLog ¶
func (a *DaemonAPI) GetInstanceContainerLog(ctx echo.Context, nodename string, namespace string, kind naming.Kind, name string, params api.GetInstanceContainerLogParams) error
GetNodeInstanceContainerLog serves container logs
func (*DaemonAPI) GetInstanceDevices ¶
func (a *DaemonAPI) GetInstanceDevices(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.GetInstanceDevicesParams) error
GetInstanceDevices answers the devices of the resources of the instance on the node: a read, as the resource info of an instance.
func (*DaemonAPI) GetInstanceFiles ¶
func (a *DaemonAPI) GetInstanceFiles(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, params api.GetInstanceFilesParams) error
GetInstanceFiles lists the entries of a directory of a volume.
func (*DaemonAPI) GetInstanceLogs ¶
func (*DaemonAPI) GetInstanceResourceFile ¶
func (*DaemonAPI) GetInstanceResourceInfo ¶
func (*DaemonAPI) GetInstanceSchedule ¶
func (*DaemonAPI) GetInstanceSyncSnapshots ¶
func (*DaemonAPI) GetInstances ¶
func (*DaemonAPI) GetNetworkIP ¶
GetNetworkIP returns network status list: the root and inspector grants read it.
func (*DaemonAPI) GetNetworkNodes ¶
GetNetworkNodes returns what the last setup of each network made on each node, as the nodes published it: the root and inspector grants read it, as it exposes the addresses the nodes reach each other at.
func (*DaemonAPI) GetNetworks ¶
GetNetworks returns network status list: the root and inspector grants read it.
func (*DaemonAPI) GetNodeCapabilities ¶
func (*DaemonAPI) GetNodeCollectorTagAttachments ¶
func (a *DaemonAPI) GetNodeCollectorTagAttachments(ctx echo.Context, nodename api.InPathNodeName) error
GetNodeCollectorTagAttachments answers the tags attached to the node, as the collector answers them to the node. Root only, as the other reads of the node.
func (*DaemonAPI) GetNodeComplianceEnv ¶
func (a *DaemonAPI) GetNodeComplianceEnv(ctx echo.Context, nodename api.InPathNodeName, params api.GetNodeComplianceEnvParams) error
GetNodeComplianceEnv answers the environment the modules are executed with. It carries the rules, root only as the other reads of the node.
func (*DaemonAPI) GetNodeComplianceModules ¶
GetNodeComplianceModules answers the modules installed on the node. No collector is asked, none is needed.
func (*DaemonAPI) GetNodeComplianceModulesetTree ¶
func (a *DaemonAPI) GetNodeComplianceModulesetTree(ctx echo.Context, nodename api.InPathNodeName, params api.GetNodeComplianceModulesetTreeParams) error
GetNodeComplianceModulesetTree answers the modulesets attached to the node, or the ones selected, with their modules.
func (*DaemonAPI) GetNodeComplianceModulesets ¶
func (a *DaemonAPI) GetNodeComplianceModulesets(ctx echo.Context, nodename api.InPathNodeName, params api.GetNodeComplianceModulesetsParams) error
GetNodeComplianceModulesets answers the modulesets the collector makes available to the node.
func (*DaemonAPI) GetNodeComplianceRules ¶
GetNodeComplianceRules answers the rulesets exposed to the modules of the node, their rules contextualized for the node.
func (*DaemonAPI) GetNodeComplianceRulesets ¶
func (a *DaemonAPI) GetNodeComplianceRulesets(ctx echo.Context, nodename api.InPathNodeName, params api.GetNodeComplianceRulesetsParams) error
GetNodeComplianceRulesets answers the rulesets the collector makes available to the node.
func (*DaemonAPI) GetNodeConfig ¶
func (*DaemonAPI) GetNodeConfigFile ¶
func (*DaemonAPI) GetNodeConfigKeywords ¶
func (*DaemonAPI) GetNodeConfigValidate ¶
GetNodeConfigValidate validates the configuration of the node on the node, for root, who reads the configuration file.
func (*DaemonAPI) GetNodeDRBDAllocation ¶
func (*DaemonAPI) GetNodeDRBDConfig ¶
func (*DaemonAPI) GetNodeDriver ¶
GetNodeDriver lists the drivers of a node.
Any user may read it: it says what the binary ships, as the documentation does, and nothing of the node. The capabilities do, and stay root's.
func (*DaemonAPI) GetNodeLocks ¶
GetNodeLocks returns the cluster locks the clients of a node hold.
func (*DaemonAPI) GetNodeLogs ¶
func (a *DaemonAPI) GetNodeLogs(ctx echo.Context, nodename string, params api.GetNodeLogsParams) error
GetNodeLogs feeds publications in rss format.
Root reads every entry. A caller granted a role on some namespaces reads the entries of the objects of these namespaces only, as the entries of an action it asked with --follow, the node entries being root's.
func (*DaemonAPI) GetNodeMetrics ¶
GetNodeMetrics proxies to the node's /metrics endpoint and filters the metrics based on the requester's RBAC grants.
Access rules: - Guest role on the namespace or all namespaces or better is sufficient to access object metrics. - Scraper or root role is necessary to access daemon metrics.
func (*DaemonAPI) GetNodeMetricsPG ¶
func (a *DaemonAPI) GetNodeMetricsPG(ctx echo.Context, nodename api.InPathNodeName, params api.GetNodeMetricsPGParams) error
GetNodeMetricsPG proxies to the node's /metrics/pg endpoint, the cgroup usage of the objects on that node, and filters the metrics based on the requester's RBAC grants.
Access rules:
- Guest role on the namespace or all namespaces or better is sufficient to access the metrics of the objects of the namespace.
The subsets and the resources of the objects named by params.Path are reported too.
func (*DaemonAPI) GetNodeNetworkReservations ¶
func (a *DaemonAPI) GetNodeNetworkReservations(ctx echo.Context, nodename api.InPathNodeName, params api.GetNodeNetworkReservationsParams) error
GetNodeNetworkReservations returns the addresses a node reserved in its networks.
It reads the reservation store of the node, where an address is the moment it is drawn, while the status of the object holding it says so only once the action drawing it is over. A node drawing an address of a network the cluster shares reads every node this way, under the lock of the network, and so sees what the node holding the lock before it drew.
func (*DaemonAPI) GetNodePing ¶
func (*DaemonAPI) GetNodeSSHHostkeys ¶
func (*DaemonAPI) GetNodeSSHKey ¶
func (*DaemonAPI) GetNodeSchedule ¶
func (*DaemonAPI) GetNodeSystemDisk ¶
func (*DaemonAPI) GetNodeSystemGroup ¶
func (*DaemonAPI) GetNodeSystemHardware ¶
func (*DaemonAPI) GetNodeSystemIPAddress ¶
func (*DaemonAPI) GetNodeSystemPackage ¶
func (*DaemonAPI) GetNodeSystemProperty ¶
func (*DaemonAPI) GetNodeSystemSANInitiator ¶
func (*DaemonAPI) GetNodeSystemSANPath ¶
func (*DaemonAPI) GetNodeSystemUser ¶
func (*DaemonAPI) GetObjectCollectorTagAttachments ¶
func (a *DaemonAPI) GetObjectCollectorTagAttachments(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName) error
GetObjectCollectorTagAttachments answers the tags attached to the object, as the collector answers them to the node serving the request: a read, guest.
func (*DaemonAPI) GetObjectComplianceModules ¶
func (a *DaemonAPI) GetObjectComplianceModules(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName) error
GetObjectComplianceModules answers the modules installed on the node serving the request, which no collector is asked for: a read, guest.
func (*DaemonAPI) GetObjectComplianceModulesetTree ¶
func (a *DaemonAPI) GetObjectComplianceModulesetTree(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.GetObjectComplianceModulesetTreeParams) error
GetObjectComplianceModulesetTree answers the modulesets attached to the object, or the ones selected, with their modules: a read, guest.
func (*DaemonAPI) GetObjectComplianceModulesets ¶
func (a *DaemonAPI) GetObjectComplianceModulesets(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.GetObjectComplianceModulesetsParams) error
GetObjectComplianceModulesets answers the modulesets the collector makes available to the object: a read, guest.
func (*DaemonAPI) GetObjectComplianceRulesets ¶
func (a *DaemonAPI) GetObjectComplianceRulesets(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.GetObjectComplianceRulesetsParams) error
GetObjectComplianceRulesets answers the rulesets the collector makes available to the object: a read, guest.
func (*DaemonAPI) GetObjectConfig ¶
func (*DaemonAPI) GetObjectConfigFile ¶
func (*DaemonAPI) GetObjectConfigKeywords ¶
func (*DaemonAPI) GetObjectData ¶
func (*DaemonAPI) GetObjectDataKey ¶
func (*DaemonAPI) GetObjectDataKeys ¶
func (*DaemonAPI) GetObjectPaths ¶
func (*DaemonAPI) GetObjectResourceInfo ¶
func (*DaemonAPI) GetObjectSchedule ¶
func (*DaemonAPI) GetObjects ¶
func (*DaemonAPI) GetPoolVolumes ¶
func (*DaemonAPI) GetRelayMessage ¶
func (*DaemonAPI) GetRelayStatus ¶
func (*DaemonAPI) GetResources ¶
func (*DaemonAPI) GetStoreObjects ¶
GetStoreObjects lists the objects a store holds runs of, with their figures, from the stats the daemon keeps of the store: the objects of the namespaces the requester holds a role on, as for the snapshots.
func (*DaemonAPI) GetStoreSnapshots ¶
GetStoreSnapshots lists the runs the stores the requester may see hold, of the objects of the namespaces it holds a role on. A store keeping its runs in a directory of each node is read on every node, over ssh.
A store not readable is logged and skipped, so one store down does not hide the runs of the others, unless it is the one store asked.
func (*DaemonAPI) GetStores ¶
GetStores lists the stores the requester may see: the stores of the cluster configuration, which every namespace may use, to a requester with a role on a namespace, and the stores of a sec to the ones holding a role on a namespace it shares with.
func (*DaemonAPI) PatchClusterConfig ¶
func (*DaemonAPI) PatchNodeConfig ¶
func (*DaemonAPI) PatchObjectConfig ¶
func (*DaemonAPI) PatchObjectData ¶
func (*DaemonAPI) PostAuthRefresh ¶
PostAuthRefresh create a new token for the refresh token user
func (*DaemonAPI) PostAuthToken ¶
PostAuthToken create a new token for a user
When role parameter exists a new user is created with grants from role and extra claims may be added to token
func (*DaemonAPI) PostClusterAction ¶
func (*DaemonAPI) PostClusterActionAbort ¶
func (*DaemonAPI) PostClusterActionFreeze ¶
func (*DaemonAPI) PostClusterActionUnfreeze ¶
func (*DaemonAPI) PostClusterActionUpdatePkg ¶
PostClusterActionUpdatePkg asks the nodes to upgrade their opensvc packages, one at a time. Every node of the cluster has to be heard first: the nodes take turns, each waiting for the whole cluster to be live and idle, so one not heard would hold the upgrade from the start, and an upgrade run with a node down is not one to start by itself.
func (*DaemonAPI) PostClusterCollectorTag ¶
PostClusterCollectorTag creates a tag on the collector, as the node serving the request. The tag belongs to no namespace: an admin of all of them.
func (*DaemonAPI) PostClusterEnroll ¶
PostClusterEnroll orders a foreign node to leave its cluster and join ours.
The candidate node is only reachable with the credentials the requester provides: an access token with the join role, created on that node. Its ca claim is the trust anchor for its listener certificate, and only a token carrying that role holds the claim.
The candidate node must be a single node cluster. Enrolling a node that still has peers is refused: nothing in the join flow tells them to drop it from their cluster.nodes, so they would keep it forever.
func (*DaemonAPI) PostClusterEvict ¶
PostClusterEvict removes a node from our cluster nodes.
The node to evict is ordered to leave: it is the one that asks a peer to drop it from the cluster nodes, then restarts alone. This handler is the entry point an operator uses from any other node of the cluster.
The node to evict must be drained. Nothing in the leave flow stops what it still runs, so evicting a node with live instances would leave them running on a node the cluster no longer knows about, free to start a second time elsewhere.
func (*DaemonAPI) PostClusterHeartbeatRotate ¶
func (*DaemonAPI) PostClusterJoin ¶
PostClusterJoin publishes msgbus.JoinRequest{Node: node} with label node=<apinode>. It requires non empty params.Node
func (*DaemonAPI) PostClusterJoinRegister ¶
PostClusterJoinRegister registers on the collector a node joining the cluster, on its behalf.
The join moves the joining node configuration aside, its registration id included, so it can't register itself before its daemon starts. This node, authenticated on the collector by its own registration id, registers it with the registration id it held before the join, and returns the new one for the joining node to store. The collector moves the joining node to the app and the cluster of this node.
func (*DaemonAPI) PostClusterLeave ¶
PostClusterLeave publishes msgbus.LeaveRequest{Node: node} with label node=<apinode>. It requires non empty params.Node
func (*DaemonAPI) PostClusterLock ¶
PostClusterLock acquires a cluster lock.
Every lock is granted by the node speaking for the cluster, so that two asked at once on two nodes are weighed against each other. A node that is not it hands the request over, and records the lock its client was granted: it is what a node taking the speaking over rebuilds its table from.
A request handed over is never handed over again. The node it was handed to was the speaker for the node handing it, and two nodes disagreeing on who speaks is a moment to answer "ask again", not a ring to send it around.
func (*DaemonAPI) PostClusterRegister ¶
PostClusterRegister registers every cluster node on the collector, by forking a 'om cluster register' in the background.
The command posts to the register endpoint of every cluster node, so each node registers itself: the collector mints a registration id for a nodename, and a node cannot register on behalf of another.
The processing is asynchronous, as the registration of a node covers the initial asset, package and disk push it sends, and the command does that for every node in turn.
func (*DaemonAPI) PostComputeClaim ¶
PostComputeClaim answers whether a namespace may have an object claim what it asks of the cpu and memory, and counts the answer until the configuration saying so is seen.
It is answered on the node speaking for the cluster, for the reason a pool claim is: what a namespace holds is read from the configurations the cluster shares, which a write reaches a moment after it is made, and claims answered from that reading alone all fit where together they do not.
What each object claims is read from the instance configurations this node holds of every node, so answering asks no peer anything.
func (*DaemonAPI) PostDaemonAudit ¶
func (*DaemonAPI) PostDaemonHeartbeatRestart ¶
func (a *DaemonAPI) PostDaemonHeartbeatRestart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName) error
func (*DaemonAPI) PostDaemonHeartbeatSign ¶
func (a *DaemonAPI) PostDaemonHeartbeatSign(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName, params api.PostDaemonHeartbeatSignParams) error
func (*DaemonAPI) PostDaemonHeartbeatStart ¶
func (a *DaemonAPI) PostDaemonHeartbeatStart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName) error
func (*DaemonAPI) PostDaemonHeartbeatStop ¶
func (a *DaemonAPI) PostDaemonHeartbeatStop(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName) error
func (*DaemonAPI) PostDaemonHeartbeatWipe ¶
func (a *DaemonAPI) PostDaemonHeartbeatWipe(ctx echo.Context, nodename api.InPathNodeName, name api.InPathHeartbeatName, params api.PostDaemonHeartbeatWipeParams) error
func (*DaemonAPI) PostDaemonJoin ¶
PostDaemonJoin orders the daemon to join the cluster of the node given in the body, and forks the join in the background.
The requester is granted the join role, like the one adding a node to our own cluster nodes: both are cluster membership operations, and the token carrying that role is the only one holding the ca claim a foreign cluster needs to reach us.
The join stops this daemon, moves its configuration aside and restarts it with the target cluster configuration, so it can not run in this handler: the response would never be written.
func (*DaemonAPI) PostDaemonLeave ¶
PostDaemonLeave orders the daemon to leave its cluster, and forks the leave in the background.
The requester is granted the leave role, like the one dropping a node from our own cluster nodes: both are cluster membership operations.
The leave stops this daemon, moves its configuration aside and restarts it alone, so it cannot run in this handler: the response would never be written.
func (*DaemonAPI) PostDaemonListenerRestart ¶
func (a *DaemonAPI) PostDaemonListenerRestart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathListenerName) error
func (*DaemonAPI) PostDaemonListenerStart ¶
func (a *DaemonAPI) PostDaemonListenerStart(ctx echo.Context, nodename api.InPathNodeName, name api.InPathListenerName) error
func (*DaemonAPI) PostDaemonListenerStop ¶
func (a *DaemonAPI) PostDaemonListenerStop(ctx echo.Context, nodename api.InPathNodeName, name api.InPathListenerName) error
func (*DaemonAPI) PostDaemonLogControl ¶
func (*DaemonAPI) PostDaemonRestart ¶
func (*DaemonAPI) PostDaemonShutdown ¶
func (*DaemonAPI) PostDaemonStop ¶
func (*DaemonAPI) PostInstanceActionBoot ¶
func (*DaemonAPI) PostInstanceActionDelete ¶
func (*DaemonAPI) PostInstanceActionFreeze ¶
func (*DaemonAPI) PostInstanceActionFull ¶
func (*DaemonAPI) PostInstanceActionInfo ¶
func (*DaemonAPI) PostInstanceActionIngest ¶
func (*DaemonAPI) PostInstanceActionInstall ¶
func (*DaemonAPI) PostInstanceActionKeyInstall ¶
func (a *DaemonAPI) PostInstanceActionKeyInstall(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.PostInstanceActionKeyInstallParams) error
PostInstanceActionKeyInstall installs again the keys of a datastore in the volumes of the node projecting them, as the daemon does when a key changes. It writes no key, and refreshes what the instances of the node install, as an instance install does: operator.
func (*DaemonAPI) PostInstanceActionPGReset ¶
func (*DaemonAPI) PostInstanceActionPGUpdate ¶
func (*DaemonAPI) PostInstanceActionPRStart ¶
func (*DaemonAPI) PostInstanceActionPRStop ¶
func (*DaemonAPI) PostInstanceActionProvision ¶
func (*DaemonAPI) PostInstanceActionRestart ¶
func (*DaemonAPI) PostInstanceActionRestore ¶
func (*DaemonAPI) PostInstanceActionResync ¶
func (*DaemonAPI) PostInstanceActionRun ¶
func (*DaemonAPI) PostInstanceActionShutdown ¶
func (*DaemonAPI) PostInstanceActionSplit ¶
func (*DaemonAPI) PostInstanceActionStart ¶
func (*DaemonAPI) PostInstanceActionStartStandby ¶
func (*DaemonAPI) PostInstanceActionStatus ¶
func (*DaemonAPI) PostInstanceActionStop ¶
func (*DaemonAPI) PostInstanceActionUnfreeze ¶
func (*DaemonAPI) PostInstanceActionUnprovision ¶
func (*DaemonAPI) PostInstanceActionUnstop ¶
func (a *DaemonAPI) PostInstanceActionUnstop(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, params api.PostInstanceActionUnstopParams) error
PostInstanceActionUnstop lowers the flags a stop raised on the instance, as a start does, and starts nothing. It asks what a start asks.
func (*DaemonAPI) PostInstanceActionUpdate ¶
func (*DaemonAPI) PostInstanceClear ¶
func (*DaemonAPI) PostInstanceCollectorAction ¶
func (a *DaemonAPI) PostInstanceCollectorAction(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
PostInstanceCollectorAction is called by the local action process after it wrote the begin or the end of an instance action to report to the collector. It publishes the InstanceActionPending the collector speaker subscribes to.
The request names the pending file, it does not carry it: the file is read here, so the announce is the same as the one the collector goroutine repeats until the speaker acknowledges it.
func (*DaemonAPI) PostInstanceComplianceActionAuto ¶
func (a *DaemonAPI) PostInstanceComplianceActionAuto(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.PostInstanceComplianceActionAutoParams) error
PostInstanceComplianceActionAuto runs the compliance auto of the object on the node.
func (*DaemonAPI) PostInstanceComplianceActionCheck ¶
func (a *DaemonAPI) PostInstanceComplianceActionCheck(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.PostInstanceComplianceActionCheckParams) error
PostInstanceComplianceActionCheck runs the compliance check of the object on the node.
func (*DaemonAPI) PostInstanceComplianceActionFix ¶
func (a *DaemonAPI) PostInstanceComplianceActionFix(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.PostInstanceComplianceActionFixParams) error
PostInstanceComplianceActionFix runs the compliance fix of the object on the node.
func (*DaemonAPI) PostInstanceComplianceActionFixable ¶
func (a *DaemonAPI) PostInstanceComplianceActionFixable(ctx echo.Context, nodename api.InPathNodeName, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.PostInstanceComplianceActionFixableParams) error
PostInstanceComplianceActionFixable runs the compliance fixable of the object on the node.
func (*DaemonAPI) PostInstanceFile ¶
func (a *DaemonAPI) PostInstanceFile(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, params api.PostInstanceFileParams) error
PostInstanceFile issues the ticket a file of a volume is uploaded with.
The api decides who may upload, and the transfer is not served through it: the ticket is presented to the console listener, which hands the connection to a process of its own. A transfer lasts as long as its client takes, which is no reason to have the daemon decrypt it, nor to lose it when it restarts.
func (*DaemonAPI) PostInstanceFileDirectory ¶
func (a *DaemonAPI) PostInstanceFileDirectory(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, params api.PostInstanceFileDirectoryParams) error
PostInstanceFileDirectory makes a directory of a volume.
func (*DaemonAPI) PostInstanceFileDownload ¶
func (a *DaemonAPI) PostInstanceFileDownload(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, params api.PostInstanceFileDownloadParams) error
PostInstanceFileDownload issues the ticket a file of a volume is read with, through the console listener, as an upload sends one: a volume holds files of several GiB, which are no reason to have the daemon read them.
func (*DaemonAPI) PostInstanceProgress ¶
func (*DaemonAPI) PostInstanceResourceConsole ¶
func (a *DaemonAPI) PostInstanceResourceConsole(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string, params api.PostInstanceResourceConsoleParams) error
PostInstanceResourceConsole issues the ticket a console session of the resource is opened with.
The api decides who may open a console, and the session is not served through it: the ticket is presented to the console listener, which hands the session to a process of its own.
func (*DaemonAPI) PostInstanceResourceInfo ¶
func (a *DaemonAPI) PostInstanceResourceInfo(ctx echo.Context, nodename, namespace string, kind naming.Kind, name string) error
PostInstanceResourceInfo is called by the local `om <path> resource info -r` after it refreshed the resource info cache. It publishes the InstanceResourceInfoUpdated signal the collector speaker subscribes to.
The request has no body: the refreshed cache is read here to checksum it, so the signal stays small and the key-values are only fetched by the speaker, with GetInstanceResourceInfo, when it reports them.
func (*DaemonAPI) PostInstanceStateFile ¶
func (*DaemonAPI) PostInstanceStatus ¶
func (*DaemonAPI) PostNetworkClaim ¶
PostNetworkClaim answers whether a namespace may take one more address of a network, and counts the answer until the cluster reports the address.
Every claim of the cluster is answered here, on the node speaking for it, for the reason a pool claim is: what a namespace holds is read from what the objects publish, an object publishes its address after it has taken it, and claims answered from that reading alone all fit where together they do not.
func (*DaemonAPI) PostNodeActionChecks ¶
PostNodeActionChecks runs the checks of the node, pushes their results to the collector, and answers them: also when the push failed, which the answer then says, as "om node checks" lists them and says so.
func (*DaemonAPI) PostNodeActionClear ¶
func (*DaemonAPI) PostNodeActionPushAsset ¶
func (*DaemonAPI) PostNodeActionPushDisk ¶
func (*DaemonAPI) PostNodeActionPushPkg ¶
func (*DaemonAPI) PostNodeActionRegister ¶
func (a *DaemonAPI) PostNodeActionRegister(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeActionRegisterParams) error
PostNodeActionRegister registers the node named in the path on the collector.
The collector mints a registration id for a nodename, so a node cannot register on behalf of another: the credentials travel to the node, which registers itself, and a request for a peer is proxied to it.
func (*DaemonAPI) PostNodeActionSCSIScan ¶
func (*DaemonAPI) PostNodeActionScanCapabilities ¶
func (*DaemonAPI) PostNodeActionSysreport ¶
func (*DaemonAPI) PostNodeCollectorTagAttachment ¶
func (a *DaemonAPI) PostNodeCollectorTagAttachment(ctx echo.Context, nodename api.InPathNodeName, name api.InPathCollectorTagName) error
PostNodeCollectorTagAttachment attaches a tag to the node, on the collector: root only, as the other actions of the node.
func (*DaemonAPI) PostNodeComplianceActionAuto ¶
func (a *DaemonAPI) PostNodeComplianceActionAuto(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeComplianceActionAutoParams) error
PostNodeComplianceActionAuto runs the fixes of the autofix modules, and the checks of the others. A fix changes the node: root only, as the other actions of the node.
func (*DaemonAPI) PostNodeComplianceActionCheck ¶
func (a *DaemonAPI) PostNodeComplianceActionCheck(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeComplianceActionCheckParams) error
PostNodeComplianceActionCheck runs the checks of the modules. A check executes the modules as root, and pushes its results to the collector: root only, as the other reads and actions of the node.
func (*DaemonAPI) PostNodeComplianceActionFix ¶
func (a *DaemonAPI) PostNodeComplianceActionFix(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeComplianceActionFixParams) error
PostNodeComplianceActionFix runs the fixes of the modules.
func (*DaemonAPI) PostNodeComplianceActionFixable ¶
func (a *DaemonAPI) PostNodeComplianceActionFixable(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeComplianceActionFixableParams) error
PostNodeComplianceActionFixable runs the fixable tests of the modules.
func (*DaemonAPI) PostNodeComplianceModulesetAttachment ¶
func (a *DaemonAPI) PostNodeComplianceModulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeComplianceModulesetAttachmentParams) error
PostNodeComplianceModulesetAttachment attaches a moduleset to the node, which changes what the node runs: root only, as the other actions of the node.
func (*DaemonAPI) PostNodeComplianceRulesetAttachment ¶
func (a *DaemonAPI) PostNodeComplianceRulesetAttachment(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeComplianceRulesetAttachmentParams) error
PostNodeComplianceRulesetAttachment attaches a ruleset to the node, which changes the rules its modules apply.
func (*DaemonAPI) PostNodeConsole ¶
PostNodeConsole issues the ticket a session of a shell of the node is opened with. A hypervisor is root on its guests, and asks it through vsock: no other client may, so a root grant does not become a shell over the network.
func (*DaemonAPI) PostNodeDRBDConfig ¶
func (*DaemonAPI) PostNodeDRBDConnect ¶
func (a *DaemonAPI) PostNodeDRBDConnect(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeDRBDConnectParams) error
func (*DaemonAPI) PostNodeDRBDPrimary ¶
func (a *DaemonAPI) PostNodeDRBDPrimary(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeDRBDPrimaryParams) error
func (*DaemonAPI) PostNodeDRBDSecondary ¶
func (a *DaemonAPI) PostNodeDRBDSecondary(ctx echo.Context, nodename api.InPathNodeName, params api.PostNodeDRBDSecondaryParams) error
func (*DaemonAPI) PostNodeNetworkSetup ¶
func (a *DaemonAPI) PostNodeNetworkSetup(eCtx echo.Context, nodename api.InPathNodeName, params api.PostNodeNetworkSetupParams) error
PostNodeNetworkSetup sets up the networks on the node, by its node monitor, which runs one setup at a time.
func (*DaemonAPI) PostObjectActionAbort ¶
func (*DaemonAPI) PostObjectActionCap ¶
func (a *DaemonAPI) PostObjectActionCap(eCtx echo.Context, namespace string, kind naming.Kind, name string, params api.PostObjectActionCapParams) error
PostObjectActionCap sets the process group caps of an object and applies them to its running instances.
The caps are written as the pg_* keywords of the configuration, through the checks of a configuration update, so the rbac policy, the validation and the claim checks weigh them, and the caps hold through a start, a failover and a reboot. The orchestration is queued between the checks and the write, so a cap the orchestration refuses is not written. It applies the configuration written on every node running an instance, and names it, so a node holding an older one waits for it rather than applying the caps it replaces.
A request naming no cap applies the ones the configuration holds, which is how caps lifted or changed by hand are put back.
func (*DaemonAPI) PostObjectActionDelete ¶
func (*DaemonAPI) PostObjectActionFreeze ¶
func (*DaemonAPI) PostObjectActionGiveback ¶
func (*DaemonAPI) PostObjectActionProvision ¶
func (*DaemonAPI) PostObjectActionPurge ¶
func (*DaemonAPI) PostObjectActionResize ¶
func (a *DaemonAPI) PostObjectActionResize(eCtx echo.Context, namespace string, kind naming.Kind, name string, params api.PostObjectActionResizeParams) error
PostObjectActionResize grows an object on every node holding an instance.
The size asked for is written to the object configuration, which is the size every node converges to, and only then is the orchestration queued. Both happen here rather than in the client: the configuration is on the cluster nodes, and writing it is what takes the namespace's claim on the pool, which is the cluster's to ration.
A request naming no size asks for the size already configured, which is how a resize that stopped part way is finished. It writes nothing, so it takes no more of the pool than the configuration already promised, and it names the configuration it read all the same: what it asks for is a size that configuration holds, and a node holding an older one has a different answer to give.
func (*DaemonAPI) PostObjectActionRestart ¶
func (*DaemonAPI) PostObjectActionStart ¶
func (*DaemonAPI) PostObjectActionStop ¶
func (*DaemonAPI) PostObjectActionSwitch ¶
func (*DaemonAPI) PostObjectActionUnfreeze ¶
func (*DaemonAPI) PostObjectActionUnprovision ¶
func (*DaemonAPI) PostObjectCertificateCreate ¶
func (a *DaemonAPI) PostObjectCertificateCreate(ctx echo.Context, namespace string, kind naming.Kind, name string) error
PostObjectCertificateCreate creates the certificate of a sec, as the certificate create command does.
func (*DaemonAPI) PostObjectCertificateRenew ¶
func (a *DaemonAPI) PostObjectCertificateRenew(ctx echo.Context, namespace string, kind naming.Kind, name string, params api.PostObjectCertificateRenewParams) error
PostObjectCertificateRenew renews the certificate of a sec when it is due, as the certificate renew command does.
func (*DaemonAPI) PostObjectCollectorTagAttachment ¶
func (a *DaemonAPI) PostObjectCollectorTagAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, tag api.InPathCollectorTagName) error
PostObjectCollectorTagAttachment attaches a tag to the object, on the collector: admin of the namespace.
func (*DaemonAPI) PostObjectComplianceModulesetAttachment ¶
func (a *DaemonAPI) PostObjectComplianceModulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.PostObjectComplianceModulesetAttachmentParams) error
PostObjectComplianceModulesetAttachment attaches a moduleset to the object, which changes what its instances run: admin of the namespace.
func (*DaemonAPI) PostObjectComplianceRulesetAttachment ¶
func (a *DaemonAPI) PostObjectComplianceRulesetAttachment(ctx echo.Context, namespace api.InPathNamespace, kind api.InPathKind, name api.InPathName, params api.PostObjectComplianceRulesetAttachmentParams) error
PostObjectComplianceRulesetAttachment attaches a ruleset to the object, which changes the rules its modules apply: admin of the namespace.
func (*DaemonAPI) PostObjectConfigFile ¶
func (*DaemonAPI) PostObjectConfigValidate ¶
func (a *DaemonAPI) PostObjectConfigValidate(ctx echo.Context, namespace string, kind naming.Kind, name string) error
PostObjectConfigValidate validates a draft of the configuration of an object, the request body, and writes nothing: the answer is the alerts of every check a write of it runs, as a dry run of that write answers them.
The write is the one the draft would be: a replace, PUT, for an object that exists, its keywords judged by what the draft changes of the configuration, and a create, POST, for one that does not, every keyword answering for itself. So the caller is one allowed to make that write: an administrator of the namespace, who may create objects there.
func (*DaemonAPI) PostObjectDataKey ¶
func (*DaemonAPI) PostPeerActionAbort ¶
func (*DaemonAPI) PostPeerActionDequeue ¶
func (*DaemonAPI) PostPeerActionDrain ¶
func (*DaemonAPI) PostPeerActionFreeze ¶
func (*DaemonAPI) PostPeerActionUnfreeze ¶
func (*DaemonAPI) PostPoolClaim ¶
PostPoolClaim answers whether a namespace may have an object hold a size of a pool, and counts the answer until the configuration saying so is seen.
Every claim of the cluster is answered here, on one node, so that two of them asked at once are weighed against each other: what a namespace holds is read from the configurations the cluster shares, which a write reaches a moment after it is made, and claims answered from that reading alone all fit where together they do not.
The node answering is the one speaking for the cluster, the first alive node of the cluster nodes, which every node agrees on and which already speaks for the cluster elsewhere. A node that is not it hands the question over. When the cluster has no speaker, which is a node that has not yet found its peers, the question is answered here: a claim nobody can broker is one the node weighs alone, as it did before there was a broker.
func (*DaemonAPI) PostSvcDisable ¶
func (*DaemonAPI) PostSvcEnable ¶
func (*DaemonAPI) PutClusterConfigFile ¶
func (*DaemonAPI) PutNodeConfigFile ¶
func (*DaemonAPI) PutNodeSSHTrust ¶
func (*DaemonAPI) PutObjectConfigFile ¶
type DataFilter ¶
DataFilter represents a filtering data condition based on a key, value, and an operator.
type DataFilters ¶
type DataFilters []DataFilter
DataFilters is a slice of DataFilter used to define a collection of filtering data conditions.
type Filter ¶
type Filter struct {
Kind any
Labels []pubsub.Label
// DataFilters is a slice of DataFilter used to define filtering data conditions
// based on key, value, and operator.
DataFilters DataFilters
}
type JWTCreater ¶
Source Files
¶
- cluster_collector_tag.go
- cluster_lock.go
- delete_exec.go
- delete_node_drbd_config.go
- delete_object_data_key.go
- delete_store_snapshot.go
- get_array.go
- get_auth_info.go
- get_cluster_config.go
- get_cluster_config_file.go
- get_cluster_config_keywords.go
- get_cluster_tombstones.go
- get_config_validate.go
- get_daemon_events.go
- get_daemon_status.go
- get_dns_dump.go
- get_exec.go
- get_instance.go
- get_instance_config_file.go
- get_instance_container_log.go
- get_instance_devices.go
- get_instance_resource_file.go
- get_instance_resource_info.go
- get_instance_schedule.go
- get_instance_sync_snapshots.go
- get_instances_logs.go
- get_network.go
- get_network_ip.go
- get_network_node.go
- get_node.go
- get_node_capabilities.go
- get_node_compliance.go
- get_node_config.go
- get_node_config_file.go
- get_node_config_keywords.go
- get_node_drbd_allocation.go
- get_node_drbd_config.go
- get_node_drivers.go
- get_node_logs.go
- get_node_metrics.go
- get_node_network_reservation.go
- get_node_ping.go
- get_node_schedule.go
- get_node_ssh_hostkeys.go
- get_node_ssh_key.go
- get_node_system_disk.go
- get_node_system_group.go
- get_node_system_hardware.go
- get_node_system_ipaddress.go
- get_node_system_package.go
- get_node_system_property.go
- get_node_system_san_initiator.go
- get_node_system_san_path.go
- get_node_system_user.go
- get_nodes_info.go
- get_object.go
- get_object_config.go
- get_object_config_file.go
- get_object_config_keywords.go
- get_object_data.go
- get_object_data_key.go
- get_object_data_keys.go
- get_object_resource_info.go
- get_object_schedule.go
- get_object_selector.go
- get_openapi.go
- get_orchestration.go
- get_pool.go
- get_pool_volume.go
- get_relay_message.go
- get_relay_status.go
- get_resource.go
- get_store_objects.go
- get_store_snapshots.go
- get_stores.go
- get_who_am_i.go
- instance_compliance.go
- lib_auth.go
- lib_auth_refusal.go
- lib_catoken.go
- lib_claim.go
- lib_claim_seed.go
- lib_claim_start.go
- lib_client.go
- lib_cluster_lock.go
- lib_config_base.go
- lib_config_file_written.go
- lib_config_propagation.go
- lib_config_read.go
- lib_config_updated_at.go
- lib_discovering.go
- lib_handlers.go
- lib_heartbeat.go
- lib_holds.go
- lib_instance_action.go
- lib_leader_node.go
- lib_listener.go
- lib_meta.go
- lib_middleware.go
- lib_node_action.go
- lib_node_compliance.go
- lib_nodename.go
- lib_object_action.go
- lib_object_config_check.go
- lib_object_config_file.go
- lib_object_config_update.go
- lib_object_known.go
- lib_post_daemon_sub_action.go
- lib_pubsub.go
- lib_rbac.go
- lib_rootless.go
- lib_schedule.go
- lib_store_stats.go
- lib_volume_file.go
- lib_wait.go
- node_collector_tag.go
- node_compliance_attachment.go
- object_collector_tag.go
- object_compliance.go
- patch_cluster_config.go
- patch_node_config.go
- patch_object_config.go
- patch_object_data.go
- post_auth_refresh.go
- post_auth_token.go
- post_cluster_action.go
- post_cluster_enroll.go
- post_cluster_evict.go
- post_cluster_heartbeat_rotate.go
- post_cluster_join.go
- post_cluster_join_register.go
- post_cluster_leave.go
- post_cluster_register.go
- post_compute_claim.go
- post_daemon_audit.go
- post_daemon_hb_restart.go
- post_daemon_hb_sign.go
- post_daemon_hb_start.go
- post_daemon_hb_stop.go
- post_daemon_hb_wipe.go
- post_daemon_join.go
- post_daemon_leave.go
- post_daemon_listener_restart.go
- post_daemon_listener_start.go
- post_daemon_listener_stop.go
- post_daemon_log_control.go
- post_daemon_restart.go
- post_daemon_shutdown.go
- post_daemon_stop.go
- post_instance_action_boot.go
- post_instance_action_delete.go
- post_instance_action_freeze.go
- post_instance_action_full.go
- post_instance_action_info.go
- post_instance_action_ingest.go
- post_instance_action_install.go
- post_instance_action_key_install.go
- post_instance_action_pg_reset.go
- post_instance_action_pg_update.go
- post_instance_action_provision.go
- post_instance_action_prstart.go
- post_instance_action_prstop.go
- post_instance_action_restart.go
- post_instance_action_restore.go
- post_instance_action_resync.go
- post_instance_action_run.go
- post_instance_action_shutdown.go
- post_instance_action_split.go
- post_instance_action_start.go
- post_instance_action_startstandby.go
- post_instance_action_status.go
- post_instance_action_stop.go
- post_instance_action_unfreeze.go
- post_instance_action_unprovision.go
- post_instance_action_unstop.go
- post_instance_action_update.go
- post_instance_clear.go
- post_instance_collector_action.go
- post_instance_progress.go
- post_instance_resource_console.go
- post_instance_resource_info.go
- post_instance_state_file.go
- post_instance_status.go
- post_network_claim.go
- post_node_action_abort.go
- post_node_action_checks.go
- post_node_action_clear.go
- post_node_action_dequeue.go
- post_node_action_drain.go
- post_node_action_freeze.go
- post_node_action_push_asset.go
- post_node_action_push_disk.go
- post_node_action_push_pkg.go
- post_node_action_register.go
- post_node_action_scan_capabilities.go
- post_node_action_scsi_scan.go
- post_node_action_sysreport.go
- post_node_action_unfreeze.go
- post_node_compliance_action.go
- post_node_console.go
- post_node_drbd_config.go
- post_node_drbd_connect.go
- post_node_drbd_primary.go
- post_node_drbd_secondary.go
- post_node_network_setup.go
- post_object_action_abort.go
- post_object_action_cap.go
- post_object_action_delete.go
- post_object_action_freeze.go
- post_object_action_giveback.go
- post_object_action_provision.go
- post_object_action_purge.go
- post_object_action_resize.go
- post_object_action_restart.go
- post_object_action_start.go
- post_object_action_stop.go
- post_object_action_switch.go
- post_object_action_unfreeze.go
- post_object_action_unprovision.go
- post_object_certificate.go
- post_object_config_file.go
- post_object_config_file_store.go
- post_object_config_validate.go
- post_object_data_key.go
- post_pool_claim.go
- post_relay_message.go
- post_svc_disable.go
- post_svc_enable.go
- put_cluster_config_file.go
- put_node_config_file.go
- put_node_ssh_trust.go
- put_object_config_file.go
- put_object_data_key.go