{"modulePath":"github.com/nutanix-cloud-native/openshift-machine-api-operator","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Constants\n\n```go\nconst (\n\t// LeaseDuration is the default duration for the leader election lease.\n\tLeaseDuration = 90 * time.Second\n\t// RenewDeadline is the default duration for the leader renewal.\n\tRenewDeadline = 60 * time.Second\n\t// RetryPeriod is the default duration for the leader electrion retrial.\n\tRetryPeriod = 30 * time.Second\n)\n```\n\n## Functions\n\n```go\nfunc CreateResourceLock(cb *ClientBuilder, componentNamespace, componentName string) resourcelock.Interface\n```\nCreateResourceLock returns an interface for the resource lock.\n\n## Types\n\n```go\ntype ClientBuilder struct {\n\t// contains filtered or unexported fields\n}\n```\nClientBuilder can create a variety of kubernetes client interface with its embeded rest.Config.\n\n```go\nfunc NewClientBuilder(kubeconfig string) (*ClientBuilder, error)\n```\nNewClientBuilder returns a \\*ClientBuilder with the given kubeconfig.\n\n```go\nfunc (cb *ClientBuilder) KubeClientOrDie(name string) kubernetes.Interface\n```\nKubeClientOrDie returns the kubernetes client interface for general kubernetes objects.\n\n```go\nfunc (cb *ClientBuilder) OpenshiftClientOrDie(name string) osclientset.Interface\n```\nOpenshiftClientOrDie returns the kubernetes client interface for Openshift objects.\n\n```go\ntype ControllerContext struct {\n\tClientBuilder *ClientBuilder\n\n\tKubeNamespacedInformerFactory informers.SharedInformerFactory\n\n\tAvailableResources map[schema.GroupVersionResource]bool\n\n\tStop \u003c-chan struct{}\n\n\tInformersStarted chan struct{}\n\n\tResyncPeriod func() time.Duration\n}\n```\nControllerContext stores all the informers for a variety of kubernetes objects.\n\n```go\nfunc CreateControllerContext(cb *ClientBuilder, stop \u003c-chan struct{}, targetNamespace string) *ControllerContext\n```\nCreateControllerContext creates the ControllerContext with the ClientBuilder.\n\n","path":"github.com/nutanix-cloud-native/openshift-machine-api-operator/cmd/machine-api-operator","name":"main","synopsis":"","isRedistributable":true}
