{"modulePath":"github.phpd.cn/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Types\n\n```go\ntype MCSAllocationFunc func(uid.Block) *mcs.Label\n```\n\n```go\nfunc DefaultMCSAllocation(from *uid.Range, to *mcs.Range, blockSize int) MCSAllocationFunc\n```\nDefaultMCSAllocation returns a label from the MCS range that matches the offset within the overall range. blockSize must be a positive integer representing the number of labels to jump past in the category space (if 1, range == label, if 2 each range will have two labels).\n\n```go\ntype NamespaceSCCAllocationController struct {\n\t// contains filtered or unexported fields\n}\n```\nNamespaceSCCAllocationController allocates uids/labels for namespaces\n\n```go\nfunc NewNamespaceSCCAllocationController(\n\tnamespaceInformer corev1informers.NamespaceInformer,\n\tclient corev1client.NamespaceInterface,\n\trangeAllocationClient securityv1client.RangeAllocationsGetter,\n\trequiredUIDRange *uid.Range,\n\tmcs MCSAllocationFunc,\n) *NamespaceSCCAllocationController\n```\n\n```go\nfunc (c *NamespaceSCCAllocationController) Repair() error\n```\n\n```go\nfunc (c *NamespaceSCCAllocationController) Run(stopCh \u003c-chan struct{})\n```\nRun starts the workers for this controller.\n\n```go\nfunc (c *NamespaceSCCAllocationController) WaitForRepair(stopCh \u003c-chan struct{}) error\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/security/controller","name":"controller","synopsis":"","isRedistributable":true}
